Skip to content

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.

FeatureLike

The OpenLayers feature to style

Style[]

Array of Style objects with anchor point geometries, or empty array if not a LineString

const layer = new VectorLayer({
style: styleWithTranslateAnchorsGeometry
})