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

Tom Hughes notifications at github.com
Wed Jan 4 13:49:34 UTC 2017


tomhughes commented on this pull request.



> @@ -55,6 +55,13 @@ L.OSM.Map = L.Map.extend({
 
     this.dataLayer = new L.OSM.DataLayer(null);
     this.dataLayer.options.code = 'D';
+    
+    this.gpsLayer = new L.OSM.GPS({
+      attribution: copyright,
+      code: "G",
+      keyid: "gps",

Only base layers need `keyid` as there is no support for showing keys for overlays.

The `code` member is fine, but it needs code adding at https://github.com/openstreetmap/openstreetmap-website/blob/master/app/assets/javascripts/index.js#L160 to actually add the layer if that code is present when the page is loaded.

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


More information about the rails-dev mailing list