]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/imagery/templates/default/imagery.js.erb
Move promscale tuning to role and tune WAL sizes
[chef.git] / cookbooks / imagery / templates / default / imagery.js.erb
index b42705d70c8c3bdf1f0b42b7a835de8e6c5c3123..bee7747abe4d3190a3ca033084cec4251c3cfc1b 100644 (file)
@@ -1,12 +1,14 @@
 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);
 
   // Add OpenStreetMap layer
-  layers.addBaseLayer(L.tileLayer("//tile-openstreetmap-org.global.ssl.fastly.net/{z}/{x}/{y}.png", {
+  layers.addBaseLayer(L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
     attribution: "© <a target=\"_parent\" href=\"https://www.openstreetmap.org\">OpenStreetMap</a> and contributors, under an <a target=\"_parent\" href=\"https://www.openstreetmap.org/copyright\">open license</a>",
     maxZoom: 19
   }), "OpenStreetMap");