Class VectorLayer
Extends
BaseLayer.
Create a layer to display vector data in GeoJSON format.
Defined in: VectorLayer.js.
Constructor Attributes | Constructor Name and Description |
---|---|
VectorLayer(options)
|
Method Attributes | Method Name and Description |
---|---|
addFeature(feature)
|
|
addFeatureCollection(featureCollection)
|
|
modifyFeatureStyle(feature, style)
|
|
modifyStyle(style)
|
|
removeFeature(feature)
|
|
removeFeatureCollection(featureCollection)
|
Class Detail
VectorLayer(options)
- Parameters:
- options
- Configuration properties for VectorLayer. See BaseLayer for base properties :
- style : the style to use. See FeatureStyle
Method Detail
addFeature(feature)
- Parameters:
- feature
addFeatureCollection(featureCollection)
- Parameters:
- featureCollection
modifyFeatureStyle(feature, style)
- Parameters:
- feature
- style
modifyStyle(style)
- Parameters:
- style
removeAllFeatures()
removeFeature(feature)
- Parameters:
- feature
removeFeatureCollection(featureCollection)
- Parameters:
- featureCollection