Skip to content

Issue 1359 #2159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 16, 2025
Merged

Issue 1359 #2159

merged 9 commits into from
Jun 16, 2025

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 ocefpaf and Conengmo 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