public class DrawingManager extends MVCObject<DrawingManager>
Modifier | Constructor and Description |
---|---|
protected |
DrawingManager()
use newInstance();
|
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addCircleCompleteHandler(CircleCompleteMapHandler handler)
This event is fired when the user has finished drawing a circle.
|
HandlerRegistration |
addMarkerCompleteHandler(MarkerCompleteMapHandler handler)
This event is fired when the user has finished drawing a marker.
|
HandlerRegistration |
addOverlayCompleteHandler(OverlayCompleteMapHandler handler)
This event is fired when the user has finished drawing an overlay of any
type.
|
HandlerRegistration |
addPolygonCompleteHandler(PolygonCompleteMapHandler handler)
This event is fired when the user has finished drawing a polygon.
|
HandlerRegistration |
addPolylineCompleteHandler(PolylineCompleteMapHandler handler)
This event is fired when the user has finished drawing a polyline.
|
HandlerRegistration |
addRectangleCompleteHandler(RectangleCompleteMapHandler handler)
This event is fired when the user has finished drawing a rectangle.
|
OverlayType |
getDrawingMode()
Returns the DrawingManager's drawing mode.
|
MapWidget |
getMap()
Returns the Map to which the DrawingManager is attached, which is the Map
on which the overlays created will be placed.
|
static DrawingManager |
newInstance(DrawingManagerOptions options)
Creates a DrawingManager that allows users to draw overlays on the map,
and switch between the type of overlay to be drawn with a drawing
control.
|
void |
setDrawingMode(OverlayType drawingMode)
Changes the DrawingManager's drawing mode, which defines the type of
overlay to be added on the map.
|
void |
setMap(MapWidget mapWidget)
Attaches the DrawingManager object to the specified Map.
|
bindTo, bindTo, bindTo, changed, createInstanceOfMVCObject, get, notify, set, setValues, unbind, unbindAll
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public static final DrawingManager newInstance(DrawingManagerOptions options)
options
- public final OverlayType getDrawingMode()
public final void setDrawingMode(OverlayType drawingMode)
drawingMode
- public final void setMap(MapWidget mapWidget)
mapWidget
- public final MapWidget getMap()
public final HandlerRegistration addCircleCompleteHandler(CircleCompleteMapHandler handler)
handler
- public final HandlerRegistration addMarkerCompleteHandler(MarkerCompleteMapHandler handler)
handler
- public final HandlerRegistration addOverlayCompleteHandler(OverlayCompleteMapHandler handler)
handler
- public final HandlerRegistration addPolygonCompleteHandler(PolygonCompleteMapHandler handler)
handler
- public final HandlerRegistration addPolylineCompleteHandler(PolylineCompleteMapHandler handler)
handler
- public final HandlerRegistration addRectangleCompleteHandler(RectangleCompleteMapHandler handler)
handler
- Copyright © 2011-2013 Gone Vertical LLC. All Rights Reserved.