]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/application.js
Boost https tile traffic to 20%
[rails.git] / app / assets / javascripts / application.js
index 7072b7c6be8a40dce9a3262d541f780b07d82b17..5b06876497a0b4dde3e8666c7671c23691a59e0c 100644 (file)
@@ -138,3 +138,7 @@ $(document).ready(function () {
     $("header").toggleClass("closed");
   });
 });
+
+if (Math.random() * 100 < 20) {
+  L.OSM.Mapnik.prototype.options.url = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
+}