Complete example to show how to manage drawing, with event, conditions, and more!

Allow drawing, 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.

Output message: