Skip to content
This repository has been archived by the owner on Sep 20, 2019. It is now read-only.

leaflet event indicating markers are loaded #330

Open
vvavepacket opened this issue Feb 4, 2017 · 1 comment
Open

leaflet event indicating markers are loaded #330

vvavepacket opened this issue Feb 4, 2017 · 1 comment

Comments

@vvavepacket
Copy link

Let's say we have hundreds of markers rendering on the screen. Is there any ui-leaflet event fired which indicates all markers has been rendered/loaded or we can say, the map is ready?

@BAByrne
Copy link

BAByrne commented Feb 15, 2017

ui-leaflet doesn't really make it's own events, afaik. It just relays some of the ones that are sent by leaflet itself. With that being the case, the only event ui-leaflet could tie into is the individual marker-add event. You could keep tabs on the markers that should be loaded with an array and remove them from the array as they fire the marker-add event. When your array is empty, you'll know they're all added.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants