[openstreetmap/openstreetmap-website] fix for #1239 add public gps tiles layer for debugging purposes (#1406)

Derick Rethans notifications at github.com
Wed Jan 4 12:51:03 UTC 2017


derickr commented on this pull request.



> @@ -64,6 +64,16 @@ L.OSM.HOT = L.OSM.TileLayer.extend({
   }
 });
 
+L.OSM.GPS = L.OSM.TileLayer.extend({
+  options: {
+    url: document.location.protocol === 'https:' ?
+      'https://{s}.gps-tile.openstreetmap.org/lines/{z}/{x}/{y}.png' :
+      'http://{s}.gps-tile.openstreetmap.org/lines/{z}/{x}/{y}.png',
+    maxZoom: 20,
+    subdomains: 'abc'
+  }
+});
+

Could it theoretically also be rolled up with the usage in https://github.com/openstreetmap/openstreetmap-website/pull/1406/files#diff-14dc1f5c2800c4a4d2accb07b96c97a0R59 though?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1406
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170104/5e428e1b/attachment-0001.html>


More information about the rails-dev mailing list