Used to control the fetching of boundary data depending on the map window’s bounding box.
| OpenSpace. | Used to control the fetching of boundary data depending on the map window’s bounding box. |
| Properties | |
| bounds | {<OpenLayers.Bounds>} The current data bounds. |
| ratio | {Float} The ratio of the data bounds to the viewport bounds (in each dimension). |
| response | {<OpenLayers.Protocol.Response>} The protocol response object returned by the layer protocol. |
| merge_features | {boolean} Alternative method that merges features to be rendered rather than a total redraw. |
| Constructor | |
| OpenSpace. | Create a new BBOX strategy. |
| Functions | |
| activate | Set up strategy with regard to reading new batches of remote data. |
| deactivate | Tear down strategy with regard to reading new batches of remote data. |
| update | Callback function called on “moveend” or “refresh” layer events. |
| invalidBounds | |
| calculateBounds | |
| triggerRead | {<OpenLayers.Protocol.Response>} The protocol response object returned by the layer protocol. |
| createFilter | Returns {<OpenLayers.Filter>} The filter object. |
| containsFeature | Check if the given feature is in the collection. |
| replace | Replace all features. |
| merge | Given a list of features, determine which ones to add to the layer. |
Set up strategy with regard to reading new batches of remote data.
activate: function()
Tear down strategy with regard to reading new batches of remote data.
deactivate: function()
Callback function called on “moveend” or “refresh” layer events.
update: function( options )
invalidBounds: function( mapBounds )
calculateBounds: function( mapBounds )
{OpenLayers.Protocol.Response} The protocol response object returned by the layer protocol.
triggerRead: function()
Returns {OpenLayers.Filter} The filter object.
createFilter: function()
Check if the given feature is in the collection.
containsFeature: function( feature, featureCollection )
Replace all features.
replace: function( resp )
Given a list of features, determine which ones to add to the layer.
merge: function( resp )