Class FeatureCollection
Object
|
+--Listener
|
+--ModelBase
|
+--FeatureCollection
-
Direct Known Subclasses:
-
OwsCatResources
- class
FeatureCollection
- extends ModelBase
Author: Cameron Shorter
Defined in FeatureCollection.js
Requires:
|
Constructor Summary |
FeatureCollection
(modelNode, parent)
Stores a GML Feature or FeatureCollection as defined by the
Open GIS Conortium http://opengis.org.
|
|
Method Summary |
void
|
convertCoords(objRef)
convert coordinates in the GML document to the SRS of the map container,
if required.
|
Object
|
getFeatureId(featureNode)
Returns an ID value for a node in the feature list
|
Object
|
getFeatureName(featureNode)
Returns a label for a node in the feature list
|
Object
|
getFeatureNodes()
Returns the list of nodes selected by the nodeSelectpath.
|
Object
|
getFeaturePoint(featureNode)
Returns a point geometry for the feature
|
Object
|
getHidden(layerName)
Geta feature's visibility.
|
void
|
setHidden(featureName, hidden)
Change a feature's visibility.
|
| Methods inherited from class ModelBase |
getXpathValue, setXpathValue, loadModelDoc, setModel, finishLoading, newRequest, deleteTemplates, saveModel, createObject, loadObjects, parseConfig, refresh, init, clearModel
|
hidden
Object hidden
namespace
Object namespace
FeatureCollection
FeatureCollection(modelNode, parent)
Stores a GML Feature or FeatureCollection as defined by the
Open GIS Conortium http://opengis.org.
Parameters:
modelNode - The model's XML object node from the configuration document.
parent - The parent model for the object.
Author: Cameron Shorter
Requires:
convertCoords
void convertCoords(objRef)
convert coordinates in the GML document to the SRS of the map container,
if required. The coordinate values are replaced in the GML document.
Parameters:
objRef - Pointer to this object.
getFeatureId
Object getFeatureId(featureNode)
Returns an ID value for a node in the feature list
Parameters:
featureNode - the feature node to selectfrom
getFeatureName
Object getFeatureName(featureNode)
Returns a label for a node in the feature list
Parameters:
featureNode - the feature node to selectfrom
getFeatureNodes
Object getFeatureNodes()
Returns the list of nodes selected by the nodeSelectpath. These nodes
will be the individual feature memebers from the collection.
getFeaturePoint
Object getFeaturePoint(featureNode)
Returns a point geometry for the feature
Parameters:
featureNode - the feature node to select from
Returns:
the geometric point for the node
getHidden
Object getHidden(layerName)
Geta feature's visibility.
Parameters:
featureName - The name of the feature to set the hidden value for
Returns:
hidden value, true=hidden, false=not hidden.
setHidden
void setHidden(featureName, hidden)
Change a feature's visibility.
Parameters:
featureName - The name of the feature to set the hidden value for
hidden - , 1=hidden, 0=not hidden.
Documentation generated by
JSDoc on Fri Dec 2 16:31:06 2005