styleWithTranslateAnchorsGeometry
styleWithTranslateAnchorsGeometry(
feature):Style[]
Defined in: src/ol-feature-translate-anchors.tsx:57
Style function that generates anchor point styles at the middle of each line segment. Returns an array of styles, one for each segment midpoint.
Parameters
Section titled “Parameters”feature
Section titled “feature”FeatureLike
The OpenLayers feature to style
Returns
Section titled “Returns”Style[]
Array of Style objects with anchor point geometries, or empty array if not a LineString
Example
Section titled “Example”const layer = new VectorLayer({ style: styleWithTranslateAnchorsGeometry})