]> git.openstreetmap.org Git - chef.git/commitdiff
imagery: switch baselayer to experimental fastly CDN
authorGrant Slater <git@firefishy.com>
Wed, 15 Jul 2020 22:23:23 +0000 (23:23 +0100)
committerGrant Slater <git@firefishy.com>
Wed, 15 Jul 2020 22:23:23 +0000 (23:23 +0100)
cookbooks/imagery/templates/default/imagery.js.erb

index 0f277444b45b0c9f23d16be14bb8718dfd22d394..b42705d70c8c3bdf1f0b42b7a835de8e6c5c3123 100644 (file)
@@ -6,7 +6,7 @@ function createMap(divName) {
   var layers = L.control.layers(null, null, {collapsed:false}).addTo(map);
 
   // Add OpenStreetMap layer
-  layers.addBaseLayer(L.tileLayer("//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
+  layers.addBaseLayer(L.tileLayer("//tile-openstreetmap-org.global.ssl.fastly.net/{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");