Classes
Type Definitions
-
GeometryFunction()
style/Style.js, line 110 -
A function that takes an
module:ol/Feature
as argument and returns anmodule:ol/geom/Geometry
that will be rendered and styled for the feature. -
Options{Object}
-
Properties:
Name Type Argument Description geometry
string | module:ol/geom/Geometry~Geometry | module:ol/style/Style~GeometryFunction <optional>
Feature property or geometry or function returning a geometry to render for this style.
fill
module:ol/style/Fill~Fill <optional>
Fill style.
image
module:ol/style/Image~ImageStyle <optional>
Image style.
renderer
module:ol/style/Style~RenderFunction <optional>
Custom renderer. When configured,
fill
,stroke
andimage
will be ignored, and the provided function will be called with each render frame for each geometry.stroke
module:ol/style/Stroke~Stroke <optional>
Stroke style.
text
module:ol/style/Text~Text <optional>
Text style.
zIndex
number <optional>
Z index.
-
RenderFunction()
style/Style.js, line 119 -
Custom renderer function. Takes two arguments:
- The pixel coordinates of the geometry in GeoJSON notation.
- The
module:ol/render~State
of the layer renderer.
-
StyleFunction()
style/Style.js, line 96 -
A function that takes an
module:ol/Feature
and a{number}
representing the view's resolution. The function should return amodule:ol/style/Style
or an array of them. This way e.g. a vector layer can be styled. -
StyleLike{module:ol/style/Style~Style} {Array.<module:ol/style/Style~Style>} {module:ol/style/Style~StyleFunction}
-
A
Style
, an array ofStyle
, or aStyleFunction
.