Skip to content
Snippets Groups Projects
Commit 6ee3906a authored by DESPRES Damien's avatar DESPRES Damien
Browse files

fix #12662

parent 6ec8fd72
No related branches found
No related tags found
1 merge request!2132.3.2-rc1
...@@ -49,7 +49,7 @@ L.TileLayer.BetterWMS = L.TileLayer.WMS.extend({ ...@@ -49,7 +49,7 @@ L.TileLayer.BetterWMS = L.TileLayer.WMS.extend({
getFeatureInfo: function (evt) { getFeatureInfo: function (evt) {
if (this.wmsParams.basemapId != undefined) { 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()) { if (queryableLayerSelected.trim() === this.wmsParams.title.trim()) {
// Make an AJAX request to the server and hope for the best // Make an AJAX request to the server and hope for the best
var params = this.getFeatureInfoUrl(evt.latlng); var params = this.getFeatureInfoUrl(evt.latlng);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment