-
Name Type Description geometrystring | Geometry | GeometryFunction | undefined Feature property or geometry or function returning a geometry to render for this style.
fillFill | undefined Fill style.
imageImageStyle | undefined Image style.
rendererRenderFunction | undefined Custom renderer. When configured,
fill,strokeandimagewill be ignored, and the provided function will be called with each render frame for each geometry.hitDetectionRendererRenderFunction | undefined Custom renderer for hit detection. If provided will be used in hit detection rendering.
strokeStroke | undefined Stroke style.
textText | undefined Text style.
zIndexnumber | undefined Z index.
Methods
-
Clones the style.
Returns:
The cloned style.
-
Get the fill style.
Returns:
Fill style.
-
Get the geometry to be rendered.
Returns:
Feature property or geometry or function that returns the geometry that will be rendered with this style.
-
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.
-
Get the custom renderer function that was configured with
#setHitDetectionRendereror thehitDetectionRendererconstructor option.Returns:
Custom renderer function.
-
Get the image style.
Returns:
Image style.
-
Get the custom renderer function that was configured with
#setRendereror therendererconstructor option.Returns:
Custom renderer function.
-
Get the stroke style.
Returns:
Stroke style.
-
Get the text style.
Returns:
Text style.
-
Get the z-index for the style.
Returns:
ZIndex.
-
Set the fill style.
Name Type Description fillFill | null Fill style.
-
Set a geometry that is rendered instead of the feature's geometry.
Name Type Description geometrystring | Geometry | GeometryFunction Feature property or geometry or function returning a geometry to render for this style.
-
Sets a custom renderer function for this style used in hit detection.
Name Type Description rendererRenderFunction | null Custom renderer function.
-
Set the image style.
Name Type Description imageImageStyle Image style.
-
Sets a custom renderer function for this style. When set,
fill,strokeandimageoptions of the style will be ignored.Name Type Description rendererRenderFunction | null Custom renderer function.
-
Set the stroke style.
Name Type Description strokeStroke | null Stroke style.
-
Set the text style.
Name Type Description textText Text style.
-
Set the z-index.
Name Type Description zIndexnumber | undefined ZIndex.