-
Notifications
You must be signed in to change notification settings - Fork 166
editable layers
Georgios Karnas edited this page Mar 21, 2019
·
1 revision
Each layer takes a config Object
in the constructor. This Object
must contain:
-
getData
: A function that returns anarray
ofobjects
that need rendering. -
toNebulaFeature
: A function that converts any object in the array intoFeature
.
The following mouse events are emitted:
- click
- dblclick
- mousemove
- mouseup
- mousedown
Each of them provides a LayerMouseEvent
parameter.
- editStart
- editUpdate
- editEnd
These provide a LayerMouseEvent
parameter and an additional object
parameter.
Footer
Sidebar