X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/c7dae1efb8bf82fc9c8ebded662fc0101f7c8d2d..df246797e4b8705a0912158c7aa46e4da3138e01:/cookbooks/imagery/templates/default/imagery.js.erb diff --git a/cookbooks/imagery/templates/default/imagery.js.erb b/cookbooks/imagery/templates/default/imagery.js.erb index b42705d70..607e6e8fe 100644 --- a/cookbooks/imagery/templates/default/imagery.js.erb +++ b/cookbooks/imagery/templates/default/imagery.js.erb @@ -1,6 +1,8 @@ function createMap(divName) { // Create a map - var map = L.map(divName).fitBounds(<%= @bbox.to_json %>); + var map = L.map(divName, { + worldCopyJump: true + }).fitBounds(<%= @bbox.to_json %>); // Create a layer switcher var layers = L.control.layers(null, null, {collapsed:false}).addTo(map);