Complete example to show how to manage drawing.

Allow to draw, modify, delete under some custom conditions. Ol-comfy helps by auto-adding and removing interactions, add identifier to retrieve them easily from everywhere, activate only one interaction after another. This example shows also custom styling regarding the feature, and feature deletion.

Hold the "delete" key to remove a vertex/feature.

Hold the "ctrl" key, or meta key on Mac, to move lines.

Read the TS file to understand what it does.

Output message: