Follow us on GitHub

com.google.gwt.maps.client.drawinglib
Class DrawingManagerOptions

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.drawinglib.DrawingManagerOptions

public class DrawingManagerOptions
extends JavaScriptObject

Options for the drawing manager.

See DrawingManagerOptions API Doc


Constructor Summary
protected DrawingManagerOptions()
          use newInstance();
 
Method Summary
 CircleOptions getCircleOptions()
          Options to apply to any new circles created with this DrawingManager.
 boolean getDrawingControl()
          The enabled/disabled state of the drawing control.
 DrawingControlOptions getDrawingControlOptions()
          The display options for the drawing control.
 MapWidget getMap()
          The Map to which the DrawingManager is attached, which is the Map on which the overlays created will be placed.
 MarkerOptions getMarkerOptions()
          Options to apply to any new markers created with this DrawingManager.
 PolygonOptions getPolygonOptions()
          Options to apply to any new polygons created with this DrawingManager.
 PolylineOptions getPolylineOptions()
          Options to apply to any new polylines created with this DrawingManager.
 RectangleOptions getRectangleOptions()
          Options to apply to any new rectangles created with this DrawingManager.
static DrawingManagerOptions newInstance()
          Options for the drawing manager.
 void setCircleOptions(CircleOptions circleOptions)
          Options to apply to any new circles created with this DrawingManager.
 void setDrawingControl(boolean drawingControl)
          The enabled/disabled state of the drawing control.
 void setDrawingControlOptions(DrawingControlOptions drawingControlOptions)
          The display options for the drawing control.
 void setDrawingMode(OverlayType drawingMode)
          The DrawingManager's drawing mode, which defines the type of overlay to be added on the map.
 void setMap(MapWidget mapWidget)
          The Map to which the DrawingManager is attached, which is the Map on which the overlays created will be placed.
 void setMarkerOptions(MarkerOptions markerOptions)
          Options to apply to any new markers created with this DrawingManager.
 void setPolygonOptions(PolygonOptions polygonOptions)
          Options to apply to any new polygons created with this DrawingManager.
 void setPolylineOptions(PolylineOptions polylineOptions)
          Options to apply to any new polylines created with this DrawingManager.
 void setRectangleOptions(RectangleOptions rectangleOptions)
          Options to apply to any new rectangles created with this DrawingManager.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DrawingManagerOptions

protected DrawingManagerOptions()
use newInstance();

Method Detail

newInstance

public static final DrawingManagerOptions newInstance()
Options for the drawing manager.


setCircleOptions

public final void setCircleOptions(CircleOptions circleOptions)
Options to apply to any new circles created with this DrawingManager. The center and radius properties are ignored, and the map property of a new circle is always set to the DrawingManager's map.

Parameters:
circleOptions -

getCircleOptions

public final CircleOptions getCircleOptions()
Options to apply to any new circles created with this DrawingManager. The center and radius properties are ignored, and the map property of a new circle is always set to the DrawingManager's map.


setDrawingControl

public final void setDrawingControl(boolean drawingControl)
The enabled/disabled state of the drawing control. Defaults to true.

Parameters:
drawingControl -

getDrawingControl

public final boolean getDrawingControl()
The enabled/disabled state of the drawing control. Defaults to true.


setDrawingControlOptions

public final void setDrawingControlOptions(DrawingControlOptions drawingControlOptions)
The display options for the drawing control.

Parameters:
drawingControlOptions -

getDrawingControlOptions

public final DrawingControlOptions getDrawingControlOptions()
The display options for the drawing control.


setDrawingMode

public final void setDrawingMode(OverlayType drawingMode)
The DrawingManager's drawing mode, which defines the type of overlay to be added on the map. Accepted values are MARKER, POLYGON, POLYLINE, RECTANGLE, CIRCLE, or null. A drawing mode of null means that the user can interact with the map as normal, and clicks do not draw anything.

Parameters:
drawingMode -

getMap

public final MapWidget getMap()
The Map to which the DrawingManager is attached, which is the Map on which the overlays created will be placed.


setMap

public final void setMap(MapWidget mapWidget)
The Map to which the DrawingManager is attached, which is the Map on which the overlays created will be placed.

Parameters:
mapWidget -

setMarkerOptions

public final void setMarkerOptions(MarkerOptions markerOptions)
Options to apply to any new markers created with this DrawingManager. The position property is ignored, and the map property of a new marker is always set to the DrawingManager's map.

Parameters:
markerOptions -

getMarkerOptions

public final MarkerOptions getMarkerOptions()
Options to apply to any new markers created with this DrawingManager. The position property is ignored, and the map property of a new marker is always set to the DrawingManager's map.


setPolygonOptions

public final void setPolygonOptions(PolygonOptions polygonOptions)
Options to apply to any new polygons created with this DrawingManager. The paths property is ignored, and the map property of a new polygon is always set to the DrawingManager's map.

Parameters:
polygonOptions -

getPolygonOptions

public final PolygonOptions getPolygonOptions()
Options to apply to any new polygons created with this DrawingManager. The paths property is ignored, and the map property of a new polygon is always set to the DrawingManager's map.


setPolylineOptions

public final void setPolylineOptions(PolylineOptions polylineOptions)
Options to apply to any new polylines created with this DrawingManager. The path property is ignored, and the map property of a new polyline is always set to the DrawingManager's map.

Parameters:
polylineOptions -

getPolylineOptions

public final PolylineOptions getPolylineOptions()
Options to apply to any new polylines created with this DrawingManager. The path property is ignored, and the map property of a new polyline is always set to the DrawingManager's map.


setRectangleOptions

public final void setRectangleOptions(RectangleOptions rectangleOptions)
Options to apply to any new rectangles created with this DrawingManager. The bounds property is ignored, and the map property of a new rectangle is always set to the DrawingManager's map.

Parameters:
rectangleOptions -

getRectangleOptions

public final RectangleOptions getRectangleOptions()
Options to apply to any new rectangles created with this DrawingManager. The bounds property is ignored, and the map property of a new rectangle is always set to the DrawingManager's map.



Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.