From 63da46d960c68830a3689506c9caff9c4d6fd9a3 Mon Sep 17 00:00:00 2001 From: sethg Date: Fri, 17 Jul 2026 14:29:07 +0200 Subject: [PATCH 1/2] Allow extraParams to be added to the store requests --- app/store/WfsFeatures.js | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/app/store/WfsFeatures.js b/app/store/WfsFeatures.js index 34cb7cc58..f5511a011 100644 --- a/app/store/WfsFeatures.js +++ b/app/store/WfsFeatures.js @@ -29,5 +29,28 @@ Ext.define('CpsiMapview.store.WfsFeatures', { outputFormat: 'geojson', startIndex: 0, count: 20, - format: new ol.format.GeoJSON() + format: new ol.format.GeoJSON(), + /** + * Additional parameters to send with every WFS request + * + * @cfg {Object} + */ + extraParams: null, + + /** + * Extend the WFS parameters built by GeoExt.data.store.WfsFeatures with any + * #extraParams configured on this store. + * @private + * @return {Object} The WFS parameters + */ + createParameters: function () { + var me = this; + var params = me.callParent(arguments); + + if (me.extraParams) { + Ext.apply(params, me.extraParams); + } + + return params; + } }); From 9f376131f6549f49efba59f9052b1d70e64c730d Mon Sep 17 00:00:00 2001 From: sethg Date: Fri, 17 Jul 2026 14:44:07 +0200 Subject: [PATCH 2/2] Linting --- app/store/WfsFeatures.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/store/WfsFeatures.js b/app/store/WfsFeatures.js index f5511a011..9bd2691ff 100644 --- a/app/store/WfsFeatures.js +++ b/app/store/WfsFeatures.js @@ -31,10 +31,10 @@ Ext.define('CpsiMapview.store.WfsFeatures', { count: 20, format: new ol.format.GeoJSON(), /** - * Additional parameters to send with every WFS request - * - * @cfg {Object} - */ + * Additional parameters to send with every WFS request + * + * @cfg {Object} + */ extraParams: null, /** @@ -44,8 +44,8 @@ Ext.define('CpsiMapview.store.WfsFeatures', { * @return {Object} The WFS parameters */ createParameters: function () { - var me = this; - var params = me.callParent(arguments); + const me = this; + const params = me.callParent(arguments); if (me.extraParams) { Ext.apply(params, me.extraParams);