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
styleoption at construction or to thesetStylemethod.- 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 renderGeometryFunctionsol.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 styleol.style.Style | Array.<ol.style.Style> | ol.feature.StyleFunction Layer style.
- Source:
- vectorlayer.js, line 114
OpenLayers 3