Skip to content

Commit

Permalink
Remove calls to getLayerByTypeName()
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Jul 21, 2023
1 parent 356b029 commit e65221e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assets/src/legacy/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -2254,8 +2254,8 @@ window.lizMap = function() {
pcontent = '<div class="lizmapPopupContent noContent"><h4>'+lizDict['popup.msg.no.result']+'</h4></div>';
$('#popupcontent div.menu-content').html(pcontent);
window.setTimeout(function(){
if ( $('#mapmenu .nav-list > li.popupcontent').hasClass('active') &&
$('#popupcontent .lizmapPopupContent').hasClass('noContent') &&
if ( $('#mapmenu .nav-list > li.popupcontent').hasClass('active') &&
$('#popupcontent .lizmapPopupContent').hasClass('noContent') &&
config.options.popupLocation != 'right-dock'){
$('#button-popupcontent').click();
}
Expand Down Expand Up @@ -4599,7 +4599,7 @@ window.lizMap = function() {
}else{
var lfilter = layerWmsName + ':' + filter;
}
wmsParams['FILTER'] = lfilter;

if( !('request_params' in config.layers[layername]) ){
config.layers[layername]['request_params'] = {};
}
Expand Down Expand Up @@ -4629,7 +4629,7 @@ window.lizMap = function() {
token: result.token
};


// Tell popup to be aware of the filter
lizMap.events.triggerEvent("layerFilterParamChanged",
{
Expand Down

0 comments on commit e65221e

Please sign in to comment.