From 56fdf73b659e7722a9a4860b3708cbb1ab885897 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 22 Jul 2020 17:54:10 +0200 Subject: [PATCH] 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 --- app/assets/javascripts/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.43.2