From: Andy Allan Date: Wed, 22 Jul 2020 15:54:10 +0000 (+0200) Subject: Use the worldCopyJump option for leaflet overlays X-Git-Tag: live~2633^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/56fdf73b659e7722a9a4860b3708cbb1ab885897 Use the worldCopyJump option for leaflet overlays This means that if you pan to a 'copy' of the world, the overlays reappear on that copy. Fixes #2040 --- diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 6584864d5..fdba06e98 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -30,7 +30,8 @@ $(document).ready(function () { var map = new L.OSM.Map("map", { zoomControl: false, layerControl: false, - contextmenu: true + contextmenu: true, + worldCopyJump: true }); OSM.loadSidebarContent = function (path, callback) {