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

gpx layer crams the map when using flyTo() #119

Open
ztzthu opened this issue Jun 26, 2021 · 0 comments
Open

gpx layer crams the map when using flyTo() #119

ztzthu opened this issue Jun 26, 2021 · 0 comments

Comments

@ztzthu
Copy link

ztzthu commented Jun 26, 2021

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.

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

No branches or pull requests

1 participant