Skip to content

OlModify

OlModify(props): Element

Defined in: src/ol-modify.tsx:44

OpenLayers Modify interaction component for editing feature geometries. Allows users to click and drag feature vertices to modify their shape. Must be used within an OlMap and requires a vector source context.

OlModifyProps

Element

<OlMap>
<OlVectorLayer visible={true}>
<OlVectorSource>
<OlModify ref={modifyRef} initialOptions={{ pixelTolerance: 10 }}>
{children}
</OlModify>
</OlVectorSource>
</OlVectorLayer>
</OlMap>