-
Notifications
You must be signed in to change notification settings - Fork 38
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
Refresh map tiles #21
Comments
Hi, I'd like to better understand your need. |
Yes, i would like to refresh all visible tiles on button click. As if on a real map, you would like to go from plan to satellite view for example. |
I see. I do the exact same thing in my own trekking app. Do do that, I destroy the existing MapView and add a new one to the view hierarchy using the same id. This way, new tiles are displayed while the new MapView has its state automatically restored using the state (zoom, pan) of the former MapView. So, what I'm saying is: it's already possible using a not-so-handy technique. |
I used your method, destroying the map and add a new one with the same id works for me. Thank you for your help. |
@aurelientymate |
It works perfectly, exactly what i needed. Great job ! Thanks 👍 |
Thanks for the feedback! |
Hi, is there a way to force refresh the map tiles. Right now, i use
redrawTiles
when i need a refresh. But it's only trigger a refresh on map zoom/dezoom or on map movements.So, is it possible to force redraw tiles when the function is called ?
Thanks
The text was updated successfully, but these errors were encountered: