ResultGeometryListModel

Description

A feature collection of a result geometry list.

Files

  • lib/resultGeometryListModel.js

License

Copyright © 2009, Open Source Geospatial Foundation This program is dual licensed under the GNU General Public License and Simplified BSD license.  http://svn.osgeo.org/mapbender/trunk/mapbender/license/license.txt

Summary
ResultGeometryListModelA feature collection of a result geometry list.
Functions and Properties
ResultGeometryListModel
events
addFeatureCollectionAdd a feature collection to the geometry array
addFeatureAdd a feature to the geometry array
deleteFeatureCollectionDelete the feature collection (= clear)
deleteFeatureDelete a feature from the geometry array
updateFeatureReplace a feature in the geometry array
setFeaturePropertySet a property of a feature in the geometry array
getFeaturePropertyGet a property of a feature in the geometry array
getFeatureGet a feature in the geometry array

Functions and Properties

ResultGeometryListModel

var ResultGeometryListModel = function ()

events

Description

addedthe event is fired after features are added
deletedthe event is fired after features have been deleted
updatedthe event is fired after features have been updated
clearedthe event is fired after all features have been deleted

addFeatureCollection

this.addFeatureCollection = function (geoJSON)

Description

Add a feature collection to the geometry array

Parameters

geoJSONa feature collection as GeoJSON string

addFeature

this.addFeature = function (geoJSON)

Description

Add a feature to the geometry array

Parameters

geoJSONa feature as GeoJSON string

deleteFeatureCollection

this.deleteFeatureCollection = function ()

Description

Delete the feature collection (= clear)

deleteFeature

this.deleteFeature = function (index)

Description

Delete a feature from the geometry array

Parameters

indexan index of the geometry array

updateFeature

this.updateFeature = function (index,
geoJson)

Description

Replace a feature in the geometry array

Parameters

indexindex of the feature that is replaced
geoJSONa feature as GeoJSON string

setFeatureProperty

this.setFeatureProperty = function (index,
pName,
pValue)

Description

Set a property of a feature in the geometry array

Parameters

indexindex of the feature
pNameproperty name
pValuenew property value

getFeatureProperty

this.getFeatureProperty = function (index,
pName)

Description

Get a property of a feature in the geometry array

Parameters

indexindex of the feature
pNameproperty name

getFeature

this.getFeature = function (index)

Description

Get a feature in the geometry array

Parameters

indexindex of the feature
var ResultGeometryListModel = function ()
this.addFeatureCollection = function (geoJSON)
Add a feature collection to the geometry array
this.addFeature = function (geoJSON)
Add a feature to the geometry array
this.deleteFeatureCollection = function ()
Delete the feature collection (= clear)
this.deleteFeature = function (index)
Delete a feature from the geometry array
this.updateFeature = function (index,
geoJson)
Replace a feature in the geometry array
this.setFeatureProperty = function (index,
pName,
pValue)
Set a property of a feature in the geometry array
this.getFeatureProperty = function (index,
pName)
Get a property of a feature in the geometry array
this.getFeature = function (index)
Get a feature in the geometry array
Close