Used to control the fetching of boundary data depending on the map window’s bounding box. It uses a more experimental caching sceme than OpenSpace.Strategy.BBOX.
| 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. |
| Constructor | |
| OpenSpace. | Create a new BBOXCache 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 | |
| triggerReadWithoutGeometry | {<OpenLayers.Protocol.Response>} The protocol response object returned by the layer protocol. |
| createFilter | Returns {<OpenLayers.Filter>} The filter object. |
| cacheFeatures | Given a list of features, determine which ones to request geometry for. |
| triggerReadWithGeometry | {<OpenLayers.Protocol.Response>} The protocol response object returned by the layer protocol. |
| 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.
triggerReadWithoutGeometry: function()
Returns {OpenLayers.Filter} The filter object.
createFilter: function()
Given a list of features, determine which ones to request geometry for.
cacheFeatures: function( resp )
{OpenLayers.Protocol.Response} The protocol response object returned by the layer protocol.
triggerReadWithGeometry: function( new_admin_unit_ids )
Given a list of features, determine which ones to add to the layer.
merge: function( resp )