VectorLayer(optsopt)

VectorLayer class extends olLayerVector https://openlayers.org/en/v4.6.5/apidoc/ol.layer.Vector.html

Constructor

# new VectorLayer(optsopt)

Parameters:
Name Type Attributes Description
opts Object <optional>
Object of optional params for olLayerVector
Since:
  • 0.1.0

View Source classes/VectorLayer.js, line 21

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

View Source classes/VectorLayer.js, line 53

VectorLayer values of a specific attribute
Array

# getAttributes() → {Array}

A function that returns the VectorLayers attributes
Since:
  • 0.1.0

View Source classes/VectorLayer.js, line 42

VectorLayer attributes
Array

# getDefaultVectorStyles() → {Object}

A function that returns the VectorLayers default VectorLayer styles
Since:
  • 0.1.0

View Source classes/VectorLayer.js, line 99

Geostyler rules object
Object

# getUserVectorStyles() → {Object}

A function that returns the VectorLayers custom user styles
Since:
  • 0.1.0

View Source classes/VectorLayer.js, line 77

Geostyler rules object
Object

# resetDefaultVectorStyles()

A function that resets default styles of a VectorLayer back to its original default
Since:
  • 0.1.0

View Source classes/VectorLayer.js, line 120

# setDefaultVectorStyles()

A function that sets default styles of a VectorLayer
Since:
  • 0.1.0

View Source classes/VectorLayer.js, line 86

# 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

View Source classes/VectorLayer.js, line 65

# 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

View Source classes/VectorLayer.js, line 109