bluehalo / ngx-leaflet-markercluster

MIT License
61 stars 23 forks source link

zoomToShowLayer not firing callback #13

Open aharris opened 6 years ago

aharris commented 6 years ago

In certain situations the zoomToShowLayer callback is not fired.

I have created a reproduction of this issue:

https://plnkr.co/edit/PZlXx7gZQXQ9bees6GbB?p=preview

Steps to reproduce:

  1. Click the "Jump" button
  2. Notice it should log out "callback fired!!!" but it does not
  3. Zoom out slowly and eventually the callback will fire.

I have created this same example without angular and the same issue does not exist:

https://jsfiddle.net/aharris/pdt8kq4o/

Clicking jump fires the callback every time.

reblace commented 6 years ago

I briefly looked into this but couldn't figure out what was going on (though I did reproduce it). Have you had any luck tracking this down?