From d8c6f0e3757bc470a0868bfe50ed7795966e60fc Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 23 Apr 2019 14:41:09 +0100 Subject: [PATCH] Return correct base layer ID --- app/assets/javascripts/leaflet.map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/leaflet.map.js b/app/assets/javascripts/leaflet.map.js index d3588ac53..0cee211ce 100644 --- a/app/assets/javascripts/leaflet.map.js +++ b/app/assets/javascripts/leaflet.map.js @@ -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) { -- 2.39.5