Open ebrelsford opened 10 years ago
My workaround for this to attach Leaflet.loading's own _show/_hideIndicator functions to each tileLayer's "loading"/"load" (i.e. started/finished loading tiles) event :-
myLayer.on('loading', function(e) { loadingControl._showIndicator() }); myLayer.on('load', function(e) { loadingControl._hideIndicator() });
That's a nice enough solution, we should document this.
See discussion in #15. Needs: