Skip to content

Conversation

@hansthen
Copy link
Collaborator

This adds a Class.include statement.

This allows users to override methods on the Leaflet level.

This can be used to override the createTile method in Leaflet by adding a Bearer Token to the request. A motivating example can be found in the tests.

hansthen added 2 commits June 9, 2025 21:41
This includes a structural change. I added a Class object with
a include method. This follows leaflet's `L.Class.include`
statement. This allows users to override Leaflet class behavior.

The motivating example for this can be found in the added
`test_include` in `test_map.py`. Using an include, users can
override the `createTile` method of `L.TileLayer` and add
a headers.
Add an include statement, that will allow users to override
specific methods at Leaflet level. This allows users to customize
the "createTile" method using a JsCode object.
@hansthen hansthen requested review from Conengmo and ocefpaf June 10, 2025 06:05
@ocefpaf
Copy link
Member

ocefpaf commented Jun 16, 2025

This PR needed docs, linting/formatting fixes, and I'm not sure why Streamlit tests are not passing.

@hansthen
Copy link
Collaborator Author

This PR needed docs, linting/formatting fixes, and I'm not sure why Streamlit tests are not passing.

Noted. The Streamlit tests I solved while fixing another issue and will be gone after a rebase.

@hansthen hansthen requested a review from ocefpaf June 16, 2025 18:37
@hansthen hansthen merged commit 5c46067 into python-visualization:main Jun 16, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants