diff --git a/js/src/mapapi/api_openlayers.js b/js/src/mapapi/api_openlayers.js index 904e44d..2325e26 100644 --- a/js/src/mapapi/api_openlayers.js +++ b/js/src/mapapi/api_openlayers.js @@ -362,7 +362,11 @@ export default class OpenLayersApi { } layerRadio.name = 'layer'; layerRadio.value = _layer.get('name'); - layerRadio.onclick = (e) => this.switchLayer(e.value); + layerRadio.onclick = (e) => { + /** @type {HTMLInputElement} */ + const el = e.target; + this.switchLayer(el.value); + }; if (_layer.getVisible()) { layerRadio.checked = true; }