The ol/interaction/CopyPaste is an interaction to copy/paste features on a map.
-
The features option lets you define a collection of feature to copy (typically the result of a select interaction)
-
The destination option define the source in wich you want to paste the features.
-
You can also define the sources to remove features when cut (default will cut from the destination).
The example uses a
ol/ineraction/FocusMap to focus on the map when clicked to ensure the key events are avaliable.
Look at
this example to copy features beetween maps.