-
Notifications
You must be signed in to change notification settings - Fork 126
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
The mini map shows the wrong area after fullscreen #131
Comments
Same issue today. |
Well, this sounds like some sort of bug in the interaction between the two plugins, probably that the fullscreen plugin doesn't fire some event that the minimap is waiting for to reorient itself. I assume it fixes itself if you move the main map around in fullscreen? |
No :( |
That sounds more difficult to fix; without having looked at the code for the other plugin I'm guessing that it somehow swaps out the map object the the minimap is listening to for changes. Any chance you could make a quick JSFiddle or similar that reproduces the problem? |
Hi robpvn, Here is the JSFiddle https://jsfiddle.net/ringoswy/tLd1vqnc/ Thanks a lot~ |
Wow, that's some interesting breakage - the minimap still tracks the main map, just offset with whatever distance there is between what it was looking at before being minmised. |
If anyone is still struggling with this issue in 2022, this will reset the minimap after restoring the minimap from the minimized state. mainMap is your main map
|
I use http://brunob.github.com/leaflet.fullscreen/ to add the fullscreen feature on my map.
When minimize the mini map, and set the page to full screen, the mini map shows the wrong area after restore the mini map again.
The text was updated successfully, but these errors were encountered: