Many spatial data services support filtering by bounding box, an OGC WFS service for example.
When you are creating a Store for a protocol that supports bounding box queries, you can implement the
spatialQuery method of the
This method takes two parameters:
The bounding box for which features should be returned.
The query object, which is identical to the argument of the
querymethod of the
Such a strategy limits the request for data to just the features within the current view bounds. This is a useful strategy to improve performance, because data can be downloaded in small batches each time the view extent changes.