Skip to content

Commit

Permalink
Use the worldCopyJump option for leaflet overlays
Browse files Browse the repository at this point in the history
This means that if you pan to a 'copy' of the world, the overlays
reappear on that copy.

Fixes #2040
  • Loading branch information
gravitystorm committed Jul 22, 2020
1 parent cf3c631 commit 56fdf73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/assets/javascripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 56fdf73

Please sign in to comment.