Constructor
# new VectorLayer(optsopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
opts |
Object |
<optional> |
Object of optional params for olLayerVector |
- Since:
- 0.1.0
Methods
# fetchValuesForAttribute(attribute) → {Array}
A function that returns the VectorLayers values of a specific attribute
Parameters:
Name | Type | Description |
---|---|---|
attribute |
String | olFeature property |
- Since:
- 0.1.0
VectorLayer values of a specific attribute
Array
# getAttributes() → {Array}
A function that returns the VectorLayers attributes
- Since:
- 0.1.0
VectorLayer attributes
Array
# getDefaultVectorStyles() → {Object}
A function that returns the VectorLayers default VectorLayer styles
- Since:
- 0.1.0
Geostyler rules object
Object
# getUserVectorStyles() → {Object}
A function that returns the VectorLayers custom user styles
- Since:
- 0.1.0
Geostyler rules object
Object
# resetDefaultVectorStyles()
A function that resets default styles of a VectorLayer back to its original default
- Since:
- 0.1.0
# setUserVectorStyles(styles)
A function that sets custom styles from ManageLayer
Parameters:
Name | Type | Description |
---|---|---|
styles |
Object | Geostyler OpenLayers Parser rules object https://github.com/geostyler/geostyler-openlayers-parser |
- Since:
- 0.1.0
# updateDefaultVectorStyles(styles)
A function that updates default styles of a VectorLayer
Parameters:
Name | Type | Description |
---|---|---|
styles |
Object | Geostyler OpenLayers Parser rules object https://github.com/geostyler/geostyler-openlayers-parser |
- Since:
- 0.1.0