Skip to content
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

Layers added that load tiles sometimes do not invoke loading indicator #16

Open
ebrelsford opened this issue Feb 8, 2014 · 3 comments

Comments

@ebrelsford
Copy link
Owner

See discussion in #15. Needs:

  • Minimal example of failure. All we have right now is this one
  • Tests to ensure that layers that do not load anything do not invoke the loading indicator, such as this one
@ebrelsford ebrelsford added the bug label Feb 8, 2014
@ebrelsford
Copy link
Owner Author

@jaslee
Copy link

jaslee commented Jul 29, 2015

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() });

@ebrelsford
Copy link
Owner Author

That's a nice enough solution, we should document this.

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

No branches or pull requests

2 participants