Redraw map after setActiveArea()
See original GitHub issueDuring my application lifecycle I have to limit active area multiple times. After I call setActiveArea() some objects must be clipped, but they are still visible. Otherwise, if objects were hidden before setActiveArea() they appear only if I move map by mouse.
Is there any correct way to redraw map programmatically?
The only solution I’ve found is to call setView() with slightly different coordinates, but I’d like to avoid this hack…
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:15 (12 by maintainers)
Top Results From Across the Web
refresh leaflet map: map container is already initialized
After a initial leaflet map load, my problem is when i want to refresh the map. I always get "Map container is already...
Read more >OpenLayers - redrawing map after container resize
How to make the map redraw and adapt to the new size? Calling redraw() on all layers didn't help. Neither did zooming in...
Read more >Сhange the center of the map without the animation ... - GitHub
Map change it's center without animation but with all tiles redrawing. ... and later on I use panTo() to set the new center....
Read more >Force tiles to reload - Google Groups
Trying to figure out how on the onem function to clear and reload the tiles from the server even if the map hasn't...
Read more >Leaflet - a JavaScript library for interactive maps - GitHub Pages
You can subscribe to the following events using these methods. ... viewreset, Event, Fired when the map needs to redraw its content (this...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Sry, but this doesn’t work for me. After changing the ActiveArea w/
map.setActiveArea(view)I fire a ‘movened’ event. But this doesn’t apply the changed ActiveArea to the current map view.I’m closing due to inactivity since last year.