com.google.maps.gwt.client
Class MapOptions

java.lang.Object
  extended by JavaScriptObject
      extended by com.google.maps.gwt.client.MapOptions

public class MapOptions
extends JavaScriptObject

THIS SOURCE CODE IS GENERATED, DO NOT MODIFY


Constructor Summary
protected MapOptions()
          Protected constructor avoids default public constructor.
 
Method Summary
static MapOptions create()
           
 void setBackgroundColor(java.lang.String backgroundColor)
          Color used for the background of the Map div.
 void setCenter(LatLng center)
          The initial Map center.
 void setDisableDefaultUi(boolean disableDefaultUI)
          Enables/disables all default UI.
 void setDisableDoubleClickZoom(boolean disableDoubleClickZoom)
          Enables/disables zoom and center on double click.
 void setDraggable(boolean draggable)
          If false, prevents the map from being dragged.
 void setDraggableCursor(java.lang.String draggableCursor)
          The name or url of the cursor to display on a draggable object.
 void setDraggingCursor(java.lang.String draggingCursor)
          The name or url of the cursor to display when an object is dragging.
 void setHeading(double heading)
          The heading for aerial imagery in degrees measured clockwise from cardinal direction North.
 void setKeyboardShortcuts(boolean keyboardShortcuts)
          If false, prevents the map from being controlled by the keyboard.
 void setMapMaker(boolean mapMaker)
          True if Map Maker tiles should be used instead of regular tiles.
 void setMapTypeControl(boolean mapTypeControl)
          The initial enabled/disabled state of the Map type control.
 void setMapTypeControlOptions(MapTypeControlOptions mapTypeControlOptions)
          The initial display options for the Map type control.
 void setMapTypeId(MapTypeId mapTypeId)
          The initial Map mapTypeId.
 void setMaxZoom(double maxZoom)
          The maximum zoom level which will be displayed on the map.
 void setMinZoom(double minZoom)
          The minimum zoom level which will be displayed on the map.
 void setNoClear(boolean noClear)
          If true, do not clear the contents of the Map div.
 void setOverviewMapControl(boolean overviewMapControl)
          The enabled/disabled state of the Overview Map control.
 void setOverviewMapControlOptions(OverviewMapControlOptions overviewMapControlOptions)
          The display options for the Overview Map control.
 void setPanControl(boolean panControl)
          The enabled/disabled state of the Pan control.
 void setPanControlOptions(PanControlOptions panControlOptions)
          The display options for the Pan control.
 void setRotateControl(boolean rotateControl)
          The enabled/disabled state of the Rotate control.
 void setRotateControlOptions(RotateControlOptions rotateControlOptions)
          The display options for the Rotate control.
 void setScaleControl(boolean scaleControl)
          The initial enabled/disabled state of the Scale control.
 void setScaleControlOptions(ScaleControlOptions scaleControlOptions)
          The initial display options for the Scale control.
 void setScrollwheel(boolean scrollwheel)
          If false, disables scrollwheel zooming on the map.
 void setStreetView(StreetViewPanorama streetView)
          A StreetViewPanorama to display when the Street View pegman is dropped on the map.
 void setStreetViewControl(boolean streetViewControl)
          The initial enabled/disabled state of the Street View Pegman control.
 void setStreetViewControlOptions(StreetViewControlOptions streetViewControlOptions)
          The initial display options for the Street View Pegman control.
 void setStyles( styles)
          Styles to apply to each of the default map types.
 void setTilt(double tilt)
          The angle of incidence of the map as measured in degrees from the viewport plane to the map plane.
 void setZoom(double zoom)
          The initial Map zoom level.
 void setZoomControl(boolean zoomControl)
          The enabled/disabled state of the Zoom control.
 void setZoomControlOptions(ZoomControlOptions zoomControlOptions)
          The display options for the Zoom control.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapOptions

protected MapOptions()
Protected constructor avoids default public constructor.

Method Detail

create

public static final MapOptions create()

setBackgroundColor

public final void setBackgroundColor(java.lang.String backgroundColor)
Color used for the background of the Map div. This color will be visible when tiles have not yet loaded as the user pans. This option can only be set when the map is initialized.


setCenter

public final void setCenter(LatLng center)
The initial Map center. Required.


setDisableDefaultUi

public final void setDisableDefaultUi(boolean disableDefaultUI)
Enables/disables all default UI. May be overridden individually.


setDisableDoubleClickZoom

public final void setDisableDoubleClickZoom(boolean disableDoubleClickZoom)
Enables/disables zoom and center on double click. Enabled by default.


setDraggable

public final void setDraggable(boolean draggable)
If false, prevents the map from being dragged. Dragging is enabled by default.


setDraggableCursor

public final void setDraggableCursor(java.lang.String draggableCursor)
The name or url of the cursor to display on a draggable object.


setDraggingCursor

public final void setDraggingCursor(java.lang.String draggingCursor)
The name or url of the cursor to display when an object is dragging.


setHeading

public final void setHeading(double heading)
The heading for aerial imagery in degrees measured clockwise from cardinal direction North. Headings are snapped to the nearest available angle for which imagery is available.


setKeyboardShortcuts

public final void setKeyboardShortcuts(boolean keyboardShortcuts)
If false, prevents the map from being controlled by the keyboard. Keyboard shortcuts are enabled by default.


setMapMaker

public final void setMapMaker(boolean mapMaker)
True if Map Maker tiles should be used instead of regular tiles.


setMapTypeControl

public final void setMapTypeControl(boolean mapTypeControl)
The initial enabled/disabled state of the Map type control.


setMapTypeControlOptions

public final void setMapTypeControlOptions(MapTypeControlOptions mapTypeControlOptions)
The initial display options for the Map type control.


setMapTypeId

public final void setMapTypeId(MapTypeId mapTypeId)
The initial Map mapTypeId. Required.


setMaxZoom

public final void setMaxZoom(double maxZoom)
The maximum zoom level which will be displayed on the map. If omitted, or set to null, the maximum zoom from the current map type is used instead.


setMinZoom

public final void setMinZoom(double minZoom)
The minimum zoom level which will be displayed on the map. If omitted, or set to null, the minimum zoom from the current map type is used instead.


setNoClear

public final void setNoClear(boolean noClear)
If true, do not clear the contents of the Map div.


setOverviewMapControl

public final void setOverviewMapControl(boolean overviewMapControl)
The enabled/disabled state of the Overview Map control.


setOverviewMapControlOptions

public final void setOverviewMapControlOptions(OverviewMapControlOptions overviewMapControlOptions)
The display options for the Overview Map control.


setPanControl

public final void setPanControl(boolean panControl)
The enabled/disabled state of the Pan control.


setPanControlOptions

public final void setPanControlOptions(PanControlOptions panControlOptions)
The display options for the Pan control.


setRotateControl

public final void setRotateControl(boolean rotateControl)
The enabled/disabled state of the Rotate control.


setRotateControlOptions

public final void setRotateControlOptions(RotateControlOptions rotateControlOptions)
The display options for the Rotate control.


setScaleControl

public final void setScaleControl(boolean scaleControl)
The initial enabled/disabled state of the Scale control.


setScaleControlOptions

public final void setScaleControlOptions(ScaleControlOptions scaleControlOptions)
The initial display options for the Scale control.


setScrollwheel

public final void setScrollwheel(boolean scrollwheel)
If false, disables scrollwheel zooming on the map. The scrollwheel is enabled by default.


setStreetView

public final void setStreetView(StreetViewPanorama streetView)
A StreetViewPanorama to display when the Street View pegman is dropped on the map. If no panorama is specified, a default StreetViewPanorama will be displayed in the map's div when the pegman is dropped.


setStreetViewControl

public final void setStreetViewControl(boolean streetViewControl)
The initial enabled/disabled state of the Street View Pegman control. This control is part of the default UI, and should be set to false when displaying a map type on which the Street View road overlay should not appear (e.g. a non-Earth map type).


setStreetViewControlOptions

public final void setStreetViewControlOptions(StreetViewControlOptions streetViewControlOptions)
The initial display options for the Street View Pegman control.


setStyles

public final void setStyles( styles)
Styles to apply to each of the default map types. Note that styles will apply only to the labels and geometry in Satellite/Hybrid and Terrain modes.


setTilt

public final void setTilt(double tilt)
The angle of incidence of the map as measured in degrees from the viewport plane to the map plane. The only currently supported values are 0 , indicating no angle of incidence (no tilt), and 45 , indicating a tilt of 45deg;. 45deg; imagery is only available for SATELLITE and HYBRID map types, within some locations, and at some zoom levels.


setZoom

public final void setZoom(double zoom)
The initial Map zoom level. Required.


setZoomControl

public final void setZoomControl(boolean zoomControl)
The enabled/disabled state of the Zoom control.


setZoomControlOptions

public final void setZoomControlOptions(ZoomControlOptions zoomControlOptions)
The display options for the Zoom control.