OpenLayers. | |
Properties | |
isBaseLayer | {Boolean} WFS layer is not a base layer by default. |
tile | {OpenLayers.Tile.WFS} |
ratio | {Float} the ratio of image/tile size to map size (this is the untiled buffer) |
DEFAULT_PARAMS | {Object} Hashtable of default key/value parameters |
featureClass | {OpenLayers.Feature} If featureClass is defined, an old-style markers based WFS layer is created instead of a new-style vector layer. |
format | {OpenLayers.Format} The format you want the data to be parsed with. |
formatObject | {OpenLayers.Format} Internally created/managed format object, used by the Tile to parse data. |
formatOptions | {Object} Hash of options which should be passed to the format when it is created. |
vectorMode | {Boolean} Should be calculated automatically. |
encodeBBOX | {Boolean} Should the BBOX commas be encoded? |
extractAttributes | {Boolean} Should the WFS layer parse attributes from the retrieved GML? |
Constructor | |
OpenLayers. | |
Functions | |
destroy | |
setMap | |
moveTo | |
addTileMonitoringHooks | This function takes a tile as input and adds the appropriate hooks to the tile so that the layer can keep track of the loading tile (making sure to check that the tile is always the layer’s current tile before taking any action). |
removeTileMonitoringHooks | This function takes a tile as input and removes the tile hooks that were added in addTileMonitoringHooks() |
onMapResize | Call the onMapResize method of the appropriate parent class. |
display | Call the display method of the appropriate parent class. |
mergeNewParams | Modify parameters for the layer and redraw. |
clone | |
getFullRequestString | combine the layer’s url with its params and these newParams. |
commit | Write out the data to a WFS server. |
commitSuccess | Called when the Ajax request returns a response |
commitFailure | Called when the Ajax request fails |
commitReport | Called with a ‘success’ message if the commit succeeded, otherwise a failure message, and the full request text as a second parameter. |
refresh | Refreshes all the features of the layer |
getDataExtent | Calculates the max extent which includes all of the layer data. |
setOpacity | Call the setOpacity method of the appropriate parent class to set the opacity. |
{OpenLayers.Feature} If featureClass is defined, an old-style markers based WFS layer is created instead of a new-style vector layer. If sent, this should be a subclass of OpenLayers.Feature
{OpenLayers.Format} The format you want the data to be parsed with. Must be passed in the constructor. Should be a class, not an instance. This option can only be used if no featureClass is passed / vectorMode is false: if a featureClass is passed, then this parameter is ignored.
{OpenLayers.Format} Internally created/managed format object, used by the Tile to parse data.
moveTo:function( bounds, zoomChanged, dragging )
bounds | {OpenLayers.Bounds} |
zoomChanged | {Boolean} |
dragging | {Boolean} |
addTileMonitoringHooks: function( tile )
This function takes a tile as input and adds the appropriate hooks to the tile so that the layer can keep track of the loading tile (making sure to check that the tile is always the layer’s current tile before taking any action).
tile | {OpenLayers.Tile} |
removeTileMonitoringHooks: function( tile )
This function takes a tile as input and removes the tile hooks that were added in addTileMonitoringHooks()
tile | {OpenLayers.Tile} |
clone: function ( obj )
obj | {Object} |
{OpenLayers.Layer.WFS} An exact clone of this OpenLayers.Layer.WFS
getFullRequestString:function( newParams, altUrl )
combine the layer’s url with its params and these newParams.
Add the SRS parameter from ‘projection’ -- this is probably more eloquently done via a setProjection() method, but this works for now and always.
newParams | {Object} |
altUrl | {String} Use this as the url instead of the layer’s url |
commitReport: function( string, response )
Called with a ‘success’ message if the commit succeeded, otherwise a failure message, and the full request text as a second parameter. Override this function to provide custom transaction reporting.
string | {String} reporting string |
response | {String} full XML response |
destroy: function()
setMap: function( map )
moveTo:function( bounds, zoomChanged, dragging )
This function takes a tile as input and adds the appropriate hooks to the tile so that the layer can keep track of the loading tile (making sure to check that the tile is always the layer’s current tile before taking any action).
addTileMonitoringHooks: function( tile )
This function takes a tile as input and removes the tile hooks that were added in addTileMonitoringHooks()
removeTileMonitoringHooks: function( tile )
Call the onMapResize method of the appropriate parent class.
onMapResize: function()
Call the display method of the appropriate parent class.
display: function()
Modify parameters for the layer and redraw.
mergeNewParams:function( newParams )
clone: function ( obj )
combine the layer’s url with its params and these newParams.
getFullRequestString:function( newParams, altUrl )
Write out the data to a WFS server.
commit: function()
Called when the Ajax request returns a response
commitSuccess: function( request )
Called when the Ajax request fails
commitFailure: function( request )
Called with a ‘success’ message if the commit succeeded, otherwise a failure message, and the full request text as a second parameter.
commitReport: function( string, response )
Refreshes all the features of the layer
refresh: function()
Calculates the max extent which includes all of the layer data.
getDataExtent: function ()
Call the setOpacity method of the appropriate parent class to set the opacity.
setOpacity: function ( opacity )