Skip to content

Commit

Permalink
Fix identificationmode active layer, close issue #75
Browse files Browse the repository at this point in the history
  • Loading branch information
uprel committed Dec 6, 2020
1 parent 5ab4b36 commit a8514ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/site/js/FeatureInfoDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,12 @@ function onBeforeGetFeatureInfoClick(evt) {

evt.object.layers[0].setVisibility(thematicLayer.getVisibility());

var queryLayers = selectedQueryableLayers.join(',');
if (identificationMode == 'activeLayers' && selectedQueryableLayers.indexOf(Eqwc.currentSelectedLayerId) > -1) {
queryLayers = Eqwc.currentSelectedLayerId;
}
WMSGetFInfo.vendorParams['QUERY_LAYERS'] = queryLayers;

activateGetFeatureInfo(false);
}

Expand Down

0 comments on commit a8514ba

Please sign in to comment.