Interactions

    Main
  1. Draw, Modify and Snap
This page is used to showcase different Interactions functionalities

1. Draw, Modify and Snap

Top
In this example, select a shape to draw in a specific group, draw the shape, adjust modifying capabilities on the group, adjust snapping capabilities on the group.
GROUP A:
Select shape:
Modify shapes?
Snap on shapes?
GROUP B:
Select shape:
Modify shapes?
Snap on shapes?
GROUP C:
Select shape:
Modify shapes?
Snap on shapes?
From the doc: The snap interaction must be added after the Modify and Draw interactions in order for its map browser event handlers to be fired first. Its handlers are responsible of doing the snapping.
API EVENTS LOGS
(see console for more)