You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I think that the loader must be displayed by default. Later when the layer is loaded, the event load will trigger and the event handler will hide the loader.
In fact the event loading is triggred before the method _addLayerListeners is called. so the plugin dosn't handle the first time the map is loading.
I suggest the following fix.
onAdd: function(map){
...
// Create the loading indicatorvarclasses='leaflet-control-loading';
...
}
Yes, this has been on my mind, the only issue is that this solution assumes that a load event will be triggered at some point. That's impossible to ensure if we didn't detect loading initially.
I'd be interested to see if there's a way to add the event listeners early enough to ensure that we get all the loading events.
Hi,
I think that the loader must be displayed by default. Later when the layer is loaded, the event
load
will trigger and the event handler will hide the loader.In fact the event
loading
is triggred before the method_addLayerListeners
is called. so the plugin dosn't handle the first time the map is loading.I suggest the following fix.
becomes
This way the loader appears when the map is loading for the first time.
The text was updated successfully, but these errors were encountered: