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
This commit is contained in:
Andy Allan 2020-07-22 17:54:10 +02:00
parent cf3c631cdf
commit 56fdf73b65

View file

@ -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) {