Skip to content

styleWithModifyAnchorsGeometry

styleWithModifyAnchorsGeometry(feature): Style[]

Defined in: src/ol-feature-modify-anchors.tsx:161

Style function that generates anchor point styles at the start and end of line geometries. Returns an array of styles with anchor point geometries for modify interaction.

FeatureLike

The OpenLayers feature to style

Style[]

Array of Style objects with anchor point geometries at line endpoints

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