Skip to content

Commit

Permalink
Fixed linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasSp committed Feb 20, 2024
1 parent d38cdf8 commit 01eb917
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/getfeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ sourceType.WFS = function wfsSourceType(id, layer, serverUrl, filterType, extent
dataProjection: projectionCode,
projectionCode,
loadingstrategy: 'all',
filterType: filterType,
filterType,
requestMethod: 'GET',
url: serverUrl,
customExtent: layer.get('extent'),
Expand Down
6 changes: 3 additions & 3 deletions src/layer/wfssource.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,17 @@ class WfsSource extends VectorSource {
* @param {any} extraFilter Optional extra filter for this call with syntax matching the source's `filterType` (`cql`|`qgis`). Will be combined with any configured layer filter unless ignoreOriginalFilter is true
* @param {any} ignoreOriginalFilter true if configured layer filter should be ignored for this call, making parameter extraFilter the only filter (if specified)
*/
createQueryFilter(extent, extraFilter, ignoreOriginalFilter, ids) {
createQueryFilter(extent, extraFilter, ignoreOriginalFilter) {
let layerFilter = '';
let queryFilter = '';
// Add layer filter unless `ignoreOriginalFilter` is set
if (this._options.filter && !ignoreOriginalFilter) {
if (this._options.filter && !ignoreOriginalFilter) {
layerFilter = replacer.replace(this._options.filter, window);
}

// Prepare extent if used
let requestExtent;
if(extent && !this._options.isTable) {
if (extent && !this._options.isTable) {
// Combine the layer's extent with the extent used for this function call
const ext = getIntersection(this._options.customExtent, extent) || extent;
// Reproject it if the layer's data projection differs from that of the map
Expand Down

0 comments on commit 01eb917

Please sign in to comment.