Skip to content

Commit

Permalink
[Bugfix] lizUrls.service does not exist
Browse files Browse the repository at this point in the history
lizUrls.Service has been introduced in Lizmap Web Client 3.7

2 requests are concren by this:
* GetFeatreuInfo
* GetFilterToken

Funded by WPD France
  • Loading branch information
rldhont committed Oct 10, 2023
1 parent c2399f3 commit 6e25e49
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions assets/src/legacy/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -3419,9 +3419,12 @@ window.lizMap = function() {
});

}

var fiurl = OpenLayers.Util.urlAppend(
lizUrls.wms,
OpenLayers.Util.getParameterString(lizUrls.params)
);
var WMSGetFeatureInfo = new OpenLayers.Control.WMSGetFeatureInfo({
url: lizUrls.service,
url: fiurl,
title: 'Identify features by clicking',
type:OpenLayers.Control.TYPE_TOGGLE,
queryVisible: true,
Expand Down Expand Up @@ -3591,7 +3594,7 @@ window.lizMap = function() {
typename: lName,
filter: lConfig['request_params']['filter']
};
$.post(lizUrls.service, sdata, function(){
$.post(surl, sdata, function(){
refreshGetFeatureInfo(evt);
});
}else{
Expand Down

0 comments on commit 6e25e49

Please sign in to comment.