ngx-leaflet-markercluster
ngx-leaflet-markercluster copied to clipboard
zoomToShowLayer not firing callback
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:
- Click the "Jump" button
- Notice it should log out "callback fired!!!" but it does not
- 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.
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?