From 10f47e9c11e9d0b2a449b0bda09c597824734bb8 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Thu, 23 Jul 2020 00:10:04 +0100 Subject: [PATCH] imagery: enable worldCopyJump in leaflet --- cookbooks/imagery/templates/default/imagery.js.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.5