Classes
Type Definitions
-
GeometryFunction()
style/Style.js, line 27 -
A function that takes an
module:ol/Featureas argument and returns anmodule:ol/geom/Geometrythat will be rendered and styled for the feature. -
Options{Object}
-
Properties:
Name Type Argument Description geometrystring | 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.
fillmodule:ol/style/Fill~Fill <optional>
Fill style.
imagemodule:ol/style/Image~ImageStyle <optional>
Image style.
renderermodule:ol/style/Style~RenderFunction <optional>
Custom renderer. When configured,
fill,strokeandimagewill be ignored, and the provided function will be called with each render frame for each geometry.strokemodule:ol/style/Stroke~Stroke <optional>
Stroke style.
textmodule:ol/style/Text~Text <optional>
Text style.
zIndexnumber <optional>
Z index.
-
RenderFunction()
style/Style.js, line 36 -
Custom renderer function. Takes two arguments:
- The pixel coordinates of the geometry in GeoJSON notation.
- The
module:ol/render~Stateof the layer renderer.
-
StyleFunction()
style/Style.js, line 12 -
A function that takes an
module:ol/Featureand a{number}representing the view's resolution. The function should return amodule:ol/style/Styleor 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.<module:ol/style/Style~Style>} {module:ol/style/Style~StyleFunction}
-
A
Style, an array ofStyle, or aStyleFunction.
OpenLayers