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.
Parameters
Section titled “Parameters”Same props as OlTranslate component
Returns
Section titled “Returns”Element
Example
Section titled “Example”<OlMap> <OlVectorLayer visible={true}> <OlFeatureTranslateAnchors initialOptions={{ hitTolerance: 5 }}> {children} </OlFeatureTranslateAnchors> </OlVectorLayer></OlMap>