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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Issue 1359 #2159

wants to merge 3 commits into from

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
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.

1 participant