Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion app/store/WfsFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
const me = this;
const params = me.callParent(arguments);

if (me.extraParams) {
Ext.apply(params, me.extraParams);
}

return params;
}
});
Loading