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

Support changing url in TileLayer #1047

Merged
merged 2 commits into from Nov 27, 2022
Merged

Conversation

goto-bus-stop
Copy link
Contributor

Hi! I have a use case where I change the URL of a tile layer at runtime to change out query parameters depending on user interactions. With core Leaflet, I use the setUrl() method. I think it would make sense to expose this in react-leaflet.

@PaulLeCam
Copy link
Owner

Good idea, thanks!

@PaulLeCam PaulLeCam merged commit 345d206 into PaulLeCam:master Nov 27, 2022
@davwheat
Copy link

davwheat commented Dec 4, 2022

Big thanks for this PR -- before I was just adding/removing TileLayer components, but this is waaay more performant! Thank you! 🚀

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.

None yet

3 participants