Adds the Vector Edit Toolbar
Parameters
| layer |
{ALKMaps.Layer.Vector} |
| options |
{Object} An optional object whose properties will be used to extend
the control. |
Properties for options
| controlIndex |
{Array<Integer>} An optional array containing the indexes of
the controls that will be added to the edit panel. If the array is empty or not
provided, all possible controls will be added to the panel. |
controlIndex integers
- 0 -> Point
- 1 -> Path
- 2 -> Freehand Path
- 3 -> Circle
- 4 -> Rectangle
- 5 -> Polygon
- 6 -> Freehand Polygon
- 7 -> Transform
- 8 -> Modify
- 9 -> Select
var editPanel = new ALKMaps.Control.EditPanel(
editPanelLayer,
{
controlIndex: [0,3,7,8,9]
}
);