-
Notifications
You must be signed in to change notification settings - Fork 125
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
miniMap.removeFrom(map) && miniMap.addTo(map) #7
Comments
You know, I've never actually tried doing that. It's quite probable something is wrong with the method for removing it from the map. I'll investigate! |
It works perfectly now! Thank you very much! |
Hi @robpvn i've got a small problem with the L.Util.clone() method added here when i'm using leaflet providers plugin. I describe this bug here : https://github.com/seelmann/leaflet-providers/pull/6#issuecomment-13719902 I'm not sure if the bug should be fixed in leaflet providers or in the clone() method of leaflet minimap... |
There's an error in your example: You reused defaultLayer in the minimap after you added it to the main map. Like it says in the readme and examples, you can't do that because the layer object will already have been initialised by the main map. I checked and fixing that still doesn't fix the problem though. 👎 I opened a new issue, #15 , to deal with this. |
Hi there!
Is there a way to re-initialize minimap after first time loading?
I have a simple toggle, that shows and hide miniMap. I tried to do so by adding and removing miniMap to and from the main map. It seems it's not working however after the first hide/show cycle!
I may be missing something, could you help me out?
Thanks for the great work!
Andrea
The text was updated successfully, but these errors were encountered: