From 6ee3906a1200d73875c9934a71990712f52467a2 Mon Sep 17 00:00:00 2001 From: DESPRES Damien <ddespres@neogeo.fr> Date: Thu, 16 Dec 2021 14:11:27 +0100 Subject: [PATCH] fix #12662 --- src/assets/js/map-util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/js/map-util.js b/src/assets/js/map-util.js index 007e9207..9a1ed529 100644 --- a/src/assets/js/map-util.js +++ b/src/assets/js/map-util.js @@ -49,7 +49,7 @@ L.TileLayer.BetterWMS = L.TileLayer.WMS.extend({ getFeatureInfo: function (evt) { if (this.wmsParams.basemapId != undefined) { - const queryableLayerSelected = document.getElementById(`queryable-layers-selector-${this.wmsParams.basemapId}`).getElementsByClassName('selected')[0].innerHTML; + const queryableLayerSelected = document.getElementById(`queryable-layers-selector-${this.wmsParams.basemapId}`).getElementsByClassName('selected')[0].textContent; if (queryableLayerSelected.trim() === this.wmsParams.title.trim()) { // Make an AJAX request to the server and hope for the best var params = this.getFeatureInfoUrl(evt.latlng); -- GitLab