com.google.gwt.maps.client
Class MapOptions

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

public class MapOptions
extends com.google.gwt.core.client.JavaScriptObject

Wrapper for the GMapOptions class, passed as an argument to construct MapWidget.


Constructor Summary
protected MapOptions()
           
 
Method Summary
static MapOptions newInstance()
          Returns a new MapOptions instance.
 MapOptions setBackgroundColor(java.lang.String backgroundColor)
          Specifies the color to display behind the map tiles.
 MapOptions setDraggableCursor(java.lang.String draggableCursor)
          The cursor to display when the map is draggable.
 MapOptions setDraggingCursor(java.lang.String draggingCursor)
          The cursor to display while dragging the map.
 MapOptions setGoogleBarOptions(GoogleBarOptions googleBarOptions)
          Specifies the options to configure the GoogleBar search control.
 MapOptions setMapTypes(java.util.List<MapType> mapTypes)
          List of map types to be used by this map.
 MapOptions setSize(Size size)
          Sets the size in pixels of the map.
 
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

MapOptions

protected MapOptions()
Method Detail

newInstance

public static final MapOptions newInstance()
Returns a new MapOptions instance.

Returns:
a new MapOptions instance.

setBackgroundColor

public final MapOptions setBackgroundColor(java.lang.String backgroundColor)
Specifies the color to display behind the map tiles. The color can be any valid W3C standard color value.

Parameters:
backgroundColor - CSS color value to display behind map tiles.

setDraggableCursor

public final MapOptions setDraggableCursor(java.lang.String draggableCursor)
The cursor to display when the map is draggable.

Parameters:
draggableCursor - CSS name of the cursor to display when the map is draggable

setDraggingCursor

public final MapOptions setDraggingCursor(java.lang.String draggingCursor)
The cursor to display while dragging the map.

Parameters:
draggingCursor - CSS name of the cursor to display when the map is draging

setGoogleBarOptions

public final MapOptions setGoogleBarOptions(GoogleBarOptions googleBarOptions)
Specifies the options to configure the GoogleBar search control. These options are passed to the GMapOptions object literal when the map is constructed, and are used to construct the GoogleBar control when GMap2.enableGoogleBar() is called.

Parameters:
googleBarOptions - options to configure the GoogleBar search control.

setMapTypes

public final MapOptions setMapTypes(java.util.List<MapType> mapTypes)
List of map types to be used by this map. By default, MapType.getDefaultMapTypes() is used. You can use this option to restrict the set of predefined map types that is displayed on the map, or to pass your own map types to the map. See also MapWidget.addMapType(MapType)

Parameters:
mapTypes - List of map types to be used by this map.

setSize

public final MapOptions setSize(Size size)
Sets the size in pixels of the map. The container that is passed to the map constructor will be resized to the given size. By default, the map will assume the size of its container.

Parameters:
size - the size in pixels of the map