-
Notifications
You must be signed in to change notification settings - Fork 118
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
gpx layer crams the map when using flyTo() #119
Comments
This is an expected behavior of animations in Leaflet, see Leaflet/Leaflet#3278 (comment) for the decision. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I tried to add a gpx layer then flyTo a place near the gpx layer, using the flyTo function defined by leaflet.
Then I observed that the gpx layer fills up all the map window when the map is zoomed in.
A example code is as follows: https://jsfiddle.net/73945Lcn/2/
Is there a way to avoid this happening? Seems that the gpx layer is also zoomed in or out during the flyto process (which is different from the behaviour of a marker).
Thank you.
The text was updated successfully, but these errors were encountered: