question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Redraw map after setActiveArea()

See original GitHub issue

During 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:15 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
StephanGeorgcommented, Nov 24, 2016

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.

0reactions
paulgregcommented, Feb 4, 2019

I’m closing due to inactivity since last year.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found