new ol.style.Style(opt_options) experimental
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Style options.
|
Methods
-
getFill(){ol.style.Fill} experimental
src/ol/style/style.js, line 108 -
Get the fill style.
Returns:
Fill style.
-
getGeometry(){string|ol.geom.Geometry|ol.style.GeometryFunction} experimental
src/ol/style/style.js, line 87 -
Get the geometry to be rendered.
Returns:
Feature property or geometry or function that returns the geometry that will be rendered with this style.
-
getGeometryFunction(){ol.style.GeometryFunction} experimental
src/ol/style/style.js, line 98 -
Get the function used to generate a geometry for rendering.
Returns:
Function that is called with a feature and returns the geometry to render instead of the feature's geometry.
-
getImage(){ol.style.Image} experimental
src/ol/style/style.js, line 118 -
Get the image style.
Returns:
Image style.
-
getStroke(){ol.style.Stroke} experimental
src/ol/style/style.js, line 128 -
Get the stroke style.
Returns:
Stroke style.
-
getText(){ol.style.Text} experimental
src/ol/style/style.js, line 138 -
Get the text style.
Returns:
Text style.
-
getZIndex(){number|undefined} experimental
src/ol/style/style.js, line 148 -
Get the z-index for the style.
Returns:
ZIndex.
-
setGeometry(geometry) experimental
src/ol/style/style.js, line 161 -
Set a geometry that is rendered instead of the feature's geometry.
Name Type Description geometry
string | ol.geom.Geometry | ol.style.GeometryFunction Feature property or geometry or function returning a geometry to render for this style.
-
setZIndex(zIndex) experimental
src/ol/style/style.js, line 192 -
Set the z-index.
Name Type Description zIndex
number | undefined ZIndex.