|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.MapOptions
public class MapOptions
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 |
---|
protected MapOptions()
Method Detail |
---|
public static final MapOptions newInstance()
public final MapOptions setBackgroundColor(java.lang.String backgroundColor)
backgroundColor
- CSS color value to display behind map tiles.public final MapOptions setDraggableCursor(java.lang.String draggableCursor)
draggableCursor
- CSS name of the cursor to display when the map is
draggablepublic final MapOptions setDraggingCursor(java.lang.String draggingCursor)
draggingCursor
- CSS name of the cursor to display when the map is
dragingpublic final MapOptions setGoogleBarOptions(GoogleBarOptions googleBarOptions)
googleBarOptions
- options to configure the GoogleBar search control.public final MapOptions setMapTypes(java.util.List<MapType> mapTypes)
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)
mapTypes
- List of map types to be used by this map.public final MapOptions setSize(Size size)
size
- the size in pixels of the map
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |