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

Tom Hughes notifications at github.com
Wed Jan 4 12:39:02 UTC 2017


tomhughes 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'
+  }
+});
+

As a vendored library this needs to be patched upstream (at https://github.com/jfirebaugh/leaflet-osm) first.

That rule basically applies to anything under the `vendor` directory - you can look in `Vendorfile` to see where they come from.

-- 
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#pullrequestreview-15103286
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170104/9f6d900a/attachment.html>


More information about the rails-dev mailing list