OpenLayers. Tile.WFS

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.

Inherits from

Summary
Instances of OpenLayers.Tile.WFS are used to manage the image tiles used by various layers.
{Array(OpenLayers.Feature)} list of features in this tile
{String}
Constructor for a new OpenLayers.Tile.WFS instance.
nullify references to prevent circular references and memory leaks
Clear the tile of any bounds/position-related data so that it can be reused in a new location.
Check that a tile should be drawn, and load features for it.
get the full request string from the ds and the tile params and call the AJAX loadURL().
Called on return from request succcess.
Construct new feature via layer featureClass constructor, and add to this.features.
Iterate through and call destroy() on each feature, removing it from the local array

Properties

features

{Array(OpenLayers.Feature)} list of features in this tile

url

{String}

Constructor

OpenLayers. Tile.WFS

Constructor for a new OpenLayers.Tile.WFS instance.

Parameters

layer{OpenLayers.Layer} layer that the tile will go in.
position{OpenLayers.Pixel}
bounds{OpenLayers.Bounds}
url{<String>}
size{OpenLayers.Size}

Functions

destroy

destroy: function()

nullify references to prevent circular references and memory leaks

clear

clear: function()

Clear the tile of any bounds/position-related data so that it can be reused in a new location.

draw

draw:function()

Check that a tile should be drawn, and load features for it.

loadFeaturesForRegion

loadFeaturesForRegion:function(success,
failure)

get the full request string from the ds and the tile params and call the AJAX loadURL().

Input are function pointers for what to do on success and failure.

Parameters

success{function}
failure{function}

requestSuccess

requestSuccess:function(request)

Called on return from request succcess.  Adds results via layer.addFeatures in vector mode, addResults otherwise.

Parameters

request{XMLHttpRequest}

addResults

addResults: function(results)

Construct new feature via layer featureClass constructor, and add to this.features.

Parameters

results{Object}

destroyAllFeatures

destroyAllFeatures: function()

Iterate through and call destroy() on each feature, removing it from the local array

Features are combinations of geography and attributes.
Constructor for a new OpenLayers.Tile.WFS instance.
destroy: function()
nullify references to prevent circular references and memory leaks
clear: function()
Clear the tile of any bounds/position-related data so that it can be reused in a new location.
draw:function()
Check that a tile should be drawn, and load features for it.
loadFeaturesForRegion:function(success,
failure)
get the full request string from the ds and the tile params and call the AJAX loadURL().
requestSuccess:function(request)
Called on return from request succcess.
addResults: function(results)
Construct new feature via layer featureClass constructor, and add to this.features.
destroyAllFeatures: function()
Iterate through and call destroy() on each feature, removing it from the local array
This is a class designed to designate a single tile, however it is explicitly designed to do relatively little.
This class represents a screen coordinate, in x and y coordinates
Instances of this class represent bounding boxes.
Instances of this class represent a width/height pair