From: Grant Slater Date: Wed, 22 Jul 2020 23:10:04 +0000 (+0100) Subject: imagery: enable worldCopyJump in leaflet X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/10f47e9c11e9d0b2a449b0bda09c597824734bb8?ds=sidebyside imagery: enable worldCopyJump in leaflet --- 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);