question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Map.flyTo does not respect Pan options noMoveStart

See original GitHub issue

Map.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:closed
  • Created 7 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
Chivanocommented, Jun 2, 2019

#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.

3reactions
mfainshtein2commented, Apr 19, 2018

Hello, I am new. I would like to know if this is still an ongoing issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found