Map.flyTo does not respect Pan options noMoveStart
See original GitHub issueMap.flyTo does not respect Pan options noMoveStart
map.on('movestart', function () { console.log('should not be called') })
map.flyTo([1,1],16, {noStartMove: true})
when map is valid, console the event will be triggered and log to the console.
https://github.com/Leaflet/Leaflet/blob/b997839fe73397330c292dcac1e5a65cb3ea8fdb/src/map/Map.js#L417 is the offending line, should check the options first.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
L.Map - WRLD3D
Pans the map to the closest view that would lie inside the given bounds (if it's not already), controlling the animation using the...
Read more >MapBox map.flyTo does not center - Stack Overflow
I currently have two solutions 1) Start your map zoom at a larger zoom lever so your coordinates are more accurate 2) Zoom...
Read more >Leaflet - a JavaScript library for interactive maps - GitHub Pages
If options.pan is false , panning will not occur. ... this, Sets the view of the map with a smooth animation like flyTo,...
Read more >Slowly fly to a location | Mapbox GL JS
This example uses flyTo with flyOptions to slowly zoom to a location, and creates a custom atmosphere effect using setFog .
Read more >Lea et API reference
value and for keys that do not produce a character value. ... renderer options of the map and paths are respected, ... noMoveStart....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
#6685 i posted a PR for the problem with Map.panTo not respecting the option “noStartMove”. The panTo function uses setView so it will hopefully solve @bringkings comment aswell.
Hello, I am new. I would like to know if this is still an ongoing issue.