ALKMaps.Control.EditPanel

  • This control creates a set of vector editing tools.
  • Inherits from:
*ALKMaps.Control.Panel
Summary
ALKMaps.Control.EditPanel
Constructor
ALKMaps.Control.EditPanelAdds the Vector Edit Toolbar
Functions
drawcalls the default draw, and then activates mouse defaults.

Constructor

ALKMaps.Control.EditPanel

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]
    }
);

Functions

draw

draw: function()

calls the default draw, and then activates mouse defaults.

draw: function()
calls the default draw, and then activates mouse defaults.
The Panel control is a container for other controls.
Close