A simple strategy that reads new features when the viewport invalidates some bounds.
OpenLayers. Strategy.BBOX | A simple strategy that reads new features when the viewport invalidates some bounds. |
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 | |
OpenLayers. Strategy.BBOX | 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. |
merge | Given a list of features, determine which ones to add to the layer. |
{OpenLayers.Bounds} The current data bounds.
{OpenLayers.Protocol.Response} The protocol response object returned by the layer protocol.
invalidBounds: function( mapBounds )
mapBounds | {OpenLayers.Bounds} the current map extent, will be retrieved from the map object if not provided |
{Boolean}
calculateBounds: function( mapBounds )
mapBounds | {OpenLayers.Bounds} the current map extent, will be retrieved from the map object if not provided |
triggerRead: function()
{OpenLayers.Protocol.Response} The protocol response object returned by the layer protocol.
createFilter: function()
Returns {OpenLayers.Filter} The filter object.
merge: function( resp )
Given a list of features, determine which ones to add to the layer.
resp | {OpenLayers.Protocol.Response} The response object passed by the protocol. |
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()
Given a list of features, determine which ones to add to the layer.
merge: function( resp )