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.

worldCopyJump only implemented for dragging

See original GitHub issue

It appears that the option worldCopyJump has only been implemented in L.Map.Drag. It seems to me that keyboard panning and mouse zooming (since zooming to the left/right edges can change the most centered world) should have implementations as well.

http://jsfiddle.net/u9KmM

Update: Just noticed that pan inertia has not been implemented either, and in fact, inertia does not work very well at all with worldCopyJump set to true. It appears that it tries to keep you in the current centered world (like it’s wrapping the end position) instead of freely flowing into the next / previous world. Should I open a separate issue for that as well?

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Reactions:3
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Malvozcommented, Nov 5, 2022
1reaction
joshuakalingcommented, Feb 8, 2019

Can somebody confirm if this issue is fixed? It is open for more than 5 years?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dragging drawings across the date line does not move ...
I tried worldCopyJump and other possible solutions from here: ... I guess the only solution is to locally implement something like ...
Read more >
how to change worldCopyJump value dynamically in leaflet?
If you look at Leaflet's source code, you can see that the worldCopyJump map option is evaluated only once, when the map drag...
Read more >
Leaflet - a JavaScript library for interactive maps - GitHub Pages
Draggable. A class for making DOM elements draggable (including touch support). Used internally for map and marker dragging. Only works for elements that...
Read more >
How to avoid popup open after drag
Solution is to implement your logic of popup opening/closing. ... don't attach popup to the marker, just assign popup text to it through ......
Read more >
leaflet | Yarn - Package Manager
... Ensure worldCopyJump() behavior is consistent when using a keyboard (#8562 ... event during drag (by @yohanboniface) #3632; Implemented L.ImageOverlay.
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