]> git.openstreetmap.org Git - rails.git/commitdiff
Use the worldCopyJump option for leaflet overlays
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 22 Jul 2020 15:54:10 +0000 (17:54 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 22 Jul 2020 15:54:10 +0000 (17:54 +0200)
This means that if you pan to a 'copy' of the world, the overlays
reappear on that copy.

Fixes #2040

app/assets/javascripts/index.js

index 6584864d544a4e05c92cb2f73bed1dd6a9b1f4d6..fdba06e98eb8facdc9aa3d1cfdb90cf22a858d9a 100644 (file)
@@ -30,7 +30,8 @@ $(document).ready(function () {
   var map = new L.OSM.Map("map", {
     zoomControl: false,
     layerControl: false,
   var map = new L.OSM.Map("map", {
     zoomControl: false,
     layerControl: false,
-    contextmenu: true
+    contextmenu: true,
+    worldCopyJump: true
   });
 
   OSM.loadSidebarContent = function (path, callback) {
   });
 
   OSM.loadSidebarContent = function (path, callback) {