ol.layer. ol.layer.Vector

new Vector

Stability: experimental
Parameters:
Name Type Argument Description
options olx.layer.VectorOptions <optional>

Options.

Source:
  • vectorlayer.js, line 23

Extends

Methods

getRenderGeometryFunctions

Stability: experimental
Source:
  • vectorlayer.js, line 59
Returns:

Render geometry functions.

Type
ol.Collection | undefined

getSource

Stability: experimental
Inherited From:
Source:
  • layer.js, line 75
Returns:

Source.

Type
ol.source.Source

getStyle

Stability: not documented

Get the style for features. This returns whatever was passed to the style option at construction or to the setStyle method.

Source:
  • vectorlayer.js, line 75
Returns:

Layer style.

Type
ol.style.Style | Array.<ol.style.Style> | ol.feature.StyleFunction

getStyleFunction

Stability: experimental

Get the style function.

Source:
  • vectorlayer.js, line 85
Returns:

Layer style function.

Type
ol.feature.StyleFunction | undefined

setRenderGeometryFunctions

Stability: experimental
Parameters:
Name Type Description
renderGeometryFunctions ol.Collection | undefined

Render geometry functions.

Source:
  • vectorlayer.js, line 95

setStyle

Stability: experimental

Set the style for features. This can be a single style object, an array of styles, or a function that takes a feature and resolution and returns an array of styles.

Parameters:
Name Type Description
style ol.style.Style | Array.<ol.style.Style> | ol.feature.StyleFunction

Layer style.

Source:
  • vectorlayer.js, line 114