Skip to content

Commit

Permalink
Returned standard queries using BBOX parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasSp committed Feb 26, 2024
1 parent d156d32 commit 91b627e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/layer/wfssource.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ class WfsSource extends VectorSource {
} else {
requestExtent = ext;
}
// If extent is used but no filters are set, just use the BBOX parameter.
if (!layerFilter && !extraFilter) {
queryFilter = `&BBOX=${requestExtent.join(',')},${this._options.dataProjection}`;
return queryFilter;
}
}

// Integrate provided layer filters, `extraFilter` and extent into a single query filter
Expand Down

0 comments on commit 91b627e

Please sign in to comment.