]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.map.js
Add public gps tiles layer for debugging purposes
[rails.git] / app / assets / javascripts / leaflet.map.js
index 4f3c7bc25d711561e9c1432b5a3c10a88faf5ca8..5a0c5521d2a8942ffdb985ca509781e1ac6018a0 100644 (file)
@@ -55,6 +55,11 @@ L.OSM.Map = L.Map.extend({
 
     this.dataLayer = new L.OSM.DataLayer(null);
     this.dataLayer.options.code = 'D';
+
+    this.gpsLayer = new L.OSM.GPS({
+      code: "G",
+      name: I18n.t("javascripts.map.base.gps")
+    });
   },
 
   updateLayers: function(layerParam) {