drawing

The drawing object is a convenience object that allows the user to interactively draw points, polylines, and polygons, by handling all user interactions and intermediate drawings. Each of the drawing methods returns a helper object whose members enable control of the drawing operation. These include:

§  finish – finishes the drawing

§  abort – cancel the drawing operation

§  options – override the initial options (style)

§  cancelLastPoint – cancels the last Point drawn

 

The following methods and type definitions are available:

§  drawPoints

§  drawPolygon

§  drawPolyline

§  onAbort

§  onFinish

§  onMouseMove

§  onPointUpdate

Methods