Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

fix labels to accommodate new flyTo #129 #130

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stev-0
Copy link

@stev-0 stev-0 commented Oct 1, 2015

This fixes functionality when using the flyTo() method in Leaflet 1.0.1b (#129). Only

  • movestart
  • zoomstart
  • move
  • moveend
  • zoomend

events are registered for the flyTo() method. This just updates the label on the zoomend event - I used this because there was already code in moveend. Not sure if this will regress any other functionality - I'm not sure how it's possible to tell whether the event was caused by flyTo or not.

This means the labels follow the animation on flyTo. Also remove the listener at the end.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant