From 6e25e49ee554e3a1b0efb30d7efdb19d8efe9c51 Mon Sep 17 00:00:00 2001 From: rldhont Date: Tue, 10 Oct 2023 14:05:57 +0200 Subject: [PATCH] [Bugfix] lizUrls.service does not exist lizUrls.Service has been introduced in Lizmap Web Client 3.7 2 requests are concren by this: * GetFeatreuInfo * GetFilterToken Funded by WPD France --- assets/src/legacy/map.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/assets/src/legacy/map.js b/assets/src/legacy/map.js index 883ffcb0da..5eda72e990 100644 --- a/assets/src/legacy/map.js +++ b/assets/src/legacy/map.js @@ -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, @@ -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{