Return correct base layer ID
authorTom Hughes <tom@compton.nu>
Tue, 23 Apr 2019 13:41:09 +0000 (14:41 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 23 Apr 2019 13:41:09 +0000 (14:41 +0100)
app/assets/javascripts/leaflet.map.js

index d3588ac..0cee211 100644 (file)
@@ -100,7 +100,7 @@ L.OSM.Map = L.Map.extend({
     this.eachLayer(function (layer) {
       if (layer.options && layer.options.keyid) baseLayer = layer;
     });
-    return baseLayer.keyid;
+    return baseLayer.options.keyid;
   },
 
   getUrl: function (marker) {