Classes
Type Definitions
-
A function that takes an
Featureas argument and returns anGeometrythat will be rendered and styled for the feature. -
Options{Object}
-
Properties:
Name Type Argument Description geometrystring | Geometry | GeometryFunction <optional>
Feature property or geometry or function returning a geometry to render for this style.
fillFill <optional>
Fill style.
imageImageStyle <optional>
Image style.
rendererRenderFunction <optional>
Custom renderer. When configured,
fill,strokeandimagewill be ignored, and the provided function will be called with each render frame for each geometry.hitDetectionRendererRenderFunction <optional>
Custom renderer for hit detection. If provided will be used in hit detection rendering.
strokeStroke <optional>
Stroke style.
textText <optional>
Text style.
zIndexnumber <optional>
Z index.
-
Custom renderer function. Takes two arguments:
- The pixel coordinates of the geometry in GeoJSON notation.
- The
Stateof the layer renderer.
-
A function that takes an
Featureand a{number}representing the view's resolution. The function should return aStyleor an array of them. This way e.g. a vector layer can be styled. If the function returnsundefined, the feature will not be rendered. -
StyleLike{Style} {Array<Style>} {StyleFunction}
-
A
Style, an array ofStyle, or aStyleFunction.