leaflet-gpx icon indicating copy to clipboard operation
leaflet-gpx copied to clipboard

gpx layer crams the map when using flyTo()

Open ztzthu opened this issue 3 years ago • 0 comments

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.

ztzthu avatar Jun 26 '21 11:06 ztzthu