Skip to content

OlFeatureTranslateAnchors

OlFeatureTranslateAnchors(props): Element

Defined in: src/ol-feature-translate-anchors.tsx:30

Translate interaction component that adds anchor points at the middle of line segments. Allows users to drag segment midpoints to modify line geometry.

OlTranslateProps

Same props as OlTranslate component

Element

<OlMap>
<OlVectorLayer visible={true}>
<OlFeatureTranslateAnchors initialOptions={{ hitTolerance: 5 }}>
{children}
</OlFeatureTranslateAnchors>
</OlVectorLayer>
</OlMap>