X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/02257f7294c45a2cf0d6a94a9dafd8b2e9242e9c..6094a97ce6297d390e5bbf733f5c2b4cc6b2076c:/app/assets/javascripts/leaflet.map.js?ds=sidebyside diff --git a/app/assets/javascripts/leaflet.map.js b/app/assets/javascripts/leaflet.map.js index f478f4351..02ed318ac 100644 --- a/app/assets/javascripts/leaflet.map.js +++ b/app/assets/javascripts/leaflet.map.js @@ -26,8 +26,6 @@ L.OSM.Map = L.Map.extend({ for (const [property, value] of Object.entries(layerDefinition)) { if (property === "credit") { layerOptions.attribution = makeAttribution(value); - } else if (property === "keyId") { - layerOptions.keyid = value; } else if (property === "nameId") { layerOptions.name = I18n.t(`javascripts.map.base.${value}`); } else if (property === "apiKeyId") { @@ -134,7 +132,7 @@ L.OSM.Map = L.Map.extend({ getMapBaseLayerId: function () { var baseLayerId; this.eachLayer(function (layer) { - if (layer.options && layer.options.keyid) baseLayerId = layer.options.keyid; + if (layer.options && layer.options.layerId) baseLayerId = layer.options.layerId; }); return baseLayerId; },