Instances of OpenLayers.Tile.WFS are used to manage the image tiles used by various layers. Create a new image tile with the OpenLayers.Tile.WFS constructor.
| OpenLayers. Tile.WFS | Instances of OpenLayers.Tile.WFS are used to manage the image tiles used by various layers. |
| Properties | |
| features | {Array(OpenLayers.Feature)} list of features in this tile |
| url | {String} |
| request | {OpenLayers.Request.XMLHttpRequest} |
| Functions | |
| destroy | nullify references to prevent circular references and memory leaks |
| clear | Clear the tile of any bounds/position-related data so that it can be reused in a new location. |
| draw | Check that a tile should be drawn, and load features for it. |
| loadFeaturesForRegion | Abort any pending requests and issue another request for data. |
| requestSuccess | Called on return from request succcess. |
| addResults | Construct new feature via layer featureClass constructor, and add to this.features. |
| destroyAllFeatures | Iterate through and call destroy() on each feature, removing it from the local array |
{Array(OpenLayers.Feature)} list of features in this tile
requestSuccess:function( request )
Called on return from request succcess. Adds results via layer.addFeatures in vector mode, addResults otherwise.
| request | {OpenLayers.Request.XMLHttpRequest} |
nullify references to prevent circular references and memory leaks
destroy: function()
Clear the tile of any bounds/position-related data so that it can be reused in a new location.
clear: function()
Check that a tile should be drawn, and load features for it.
draw:function()
Abort any pending requests and issue another request for data.
loadFeaturesForRegion:function( success, failure )
Called on return from request succcess.
requestSuccess:function( request )
Construct new feature via layer featureClass constructor, and add to this.features.
addResults: function( results )
Iterate through and call destroy() on each feature, removing it from the local array
destroyAllFeatures: function()