Skip to content
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

fix: web example ipyleaflet_advanced #269

Merged
merged 1 commit into from
Sep 4, 2023
Merged

fix: web example ipyleaflet_advanced #269

merged 1 commit into from
Sep 4, 2023

Conversation

hkayabilisim
Copy link
Contributor

Problem:
For basemap variants such as Esri.WorlTopoMap or
Stamen.Watercolor, map url contains {variant} keyword. When you provide such urls directly to ipyleaflet.TileLayer.element, the map is not displayed properly.

Fix:
To resolve the issue, url must first be built
via map.build_url() so the {variant} keyword is evaluated correctly, then the built url is given to TileLayer.

Problem:
For basemap variants such as Esri.WorlTopoMap or
Stamen.Watercolor, map url contains {variant} keyword.
When you provide such urls directly to ipyleaflet.TileLayer.element,
the map is not displayed properly.

Fix:
To resolve the issue, url must first be built
via map.build_url() so the {variant} keyword is evaluated
correctly, then the built url is given to TileLayer.
@maartenbreddels maartenbreddels merged commit 4b54ac8 into widgetti:master Sep 4, 2023
21 checks passed
@maartenbreddels
Copy link
Contributor

Thank you very much!

@hkayabilisim hkayabilisim deleted the fix_web_example branch September 4, 2023 13:34
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