|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
com.google.gwt.maps.client.MapWidget
public final class MapWidget
A widget that presents a viewable Google Map to a user. Note: the GEvent.trigger methods are implemented by the API but intended for internal testing only.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Field Summary |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
MapWidget()
|
|
MapWidget(LatLng center,
int zoomLevel)
Creates a new map widget and sets the view to the given center and zoom level. |
|
MapWidget(LatLng center,
int zoomLevel,
java.lang.String draggableCursor,
java.lang.String draggingCursor)
Creates a new map widget and sets the view to the specified center point and zoom level. |
Method Summary | |
---|---|
void |
addControl(Control control)
Adds a control to the map. |
void |
addControl(Control control,
ControlPosition position)
Adds a control to the map at the given position. |
void |
addControlWidget(com.google.gwt.user.client.ui.Widget w)
Adds a Control's widget to the map. |
void |
addInfoWindowBeforeCloseHandler(MapInfoWindowBeforeCloseHandler handler)
This event is fired before the info window closes. |
void |
addInfoWindowCloseHandler(MapInfoWindowCloseHandler handler)
This event is fired when the info window closes. |
void |
addInfoWindowOpenHandler(MapInfoWindowOpenHandler handler)
This event is fired when the info window opens. |
void |
addMapAddMapTypeHandler(MapAddMapTypeHandler handler)
This event is fired when a map type is added to the map. |
void |
addMapAddOverlayHandler(MapAddOverlayHandler handler)
This event is fired when a single overlay is added to the map by the method addOverlay(). |
void |
addMapClearOverlaysHandler(MapClearOverlaysHandler handler)
This event is fired when all overlays are removed at once by the method clearOverlays() . |
void |
addMapClickHandler(MapClickHandler handler)
Add a click handler for mouse click events. |
void |
addMapDoubleClickHandler(MapDoubleClickHandler handler)
Add a double click handler for mouse double click events. |
void |
addMapDragEndHandler(MapDragEndHandler handler)
This event is fired when the user stops dragging the map. |
void |
addMapDragHandler(MapDragHandler handler)
This event is repeatedly fired while the user drags the map. |
void |
addMapDragStartHandler(MapDragStartHandler handler)
This event is fired when the user starts dragging the map. |
void |
addMapMouseMoveHandler(MapMouseMoveHandler handler)
This event is fired when the user moves the mouse over the map from outside the map. |
void |
addMapMouseOutHandler(MapMouseOutHandler handler)
This event is fired when the user moves the mouse over the map from outside the map. |
void |
addMapMouseOverHandler(MapMouseOverHandler handler)
This event is fired when the user moves the mouse over the map from outside the map. |
void |
addMapMoveEndHandler(MapMoveEndHandler handler)
This event is fired when the change of the map view ends. |
void |
addMapMoveHandler(MapMoveHandler handler)
This event is fired, possibly repeatedly, while the map view is changing. |
void |
addMapMoveStartHandler(MapMoveStartHandler handler)
This event is fired when the map view starts changing. |
void |
addMapRemoveMapTypeHandler(MapRemoveMapTypeHandler handler)
This event is fired when a map type is removed from the map. |
void |
addMapRemoveOverlayHandler(MapRemoveOverlayHandler handler)
This handler is fired when a single overlay is removed by the method removeOverlay(Overlay) . |
void |
addMapRightClickHandler(MapRightClickHandler handler)
Add a click handler for mouse right click events. |
void |
addMapType(MapType type)
Adds a new map type to the map. |
void |
addMapTypeChangedHandler(MapTypeChangedHandler handler)
This event is fired when another map type is selected. |
void |
addMapZoomEndHandler(MapZoomEndHandler handler)
This event is fired when a map type is added to the map. |
void |
addOverlay(Overlay overlay)
Adds an overlay to the map and fires any registered MapAddOverlayHandler . |
protected void |
addVirtual(com.google.gwt.user.client.ui.Widget w)
Adopts the widget, but does not modify the DOM. |
void |
checkResize()
Notifies the map of a change of the size of its container. |
void |
clearOverlays()
Removes all overlay from the map, and fires any registered MapClearOverlaysHandler . |
void |
closeInfoWindow()
Close the currently open InfoWindow . |
LatLng |
convertContainerPixelToLatLng(Point pixel)
Computes the geographical coordinates from pixel coordinates in the div that holds the draggable map. |
LatLng |
convertDivPixelToLatLng(Point pixel)
Computes the geographical coordinates from pixel coordinates in the div that holds the draggable map. |
Point |
convertLatLngToDivPixel(LatLng latlng)
Converts from geographical coordinates to the pixel coordinates used by the current projection. |
LatLngBounds |
getBounds()
Returns the the visible rectangular region of the map view in geographical coordinates. |
int |
getBoundsZoomLevel(LatLngBounds bounds)
Returns the zoom level at which the given rectangular region fits in the map view. |
LatLng |
getCenter()
Returns the geographical coordinates of the center point of the map view. |
MapType |
getCurrentMapType()
Returns the currently selected map type. |
void |
getEarthInstance(EarthInstanceHandler handler)
Asynchronously retrieves the Earth instance, initializing it if necessary. |
InfoWindow |
getInfoWindow()
Gets the info window associated with the map. |
MapType[] |
getMapTypes()
Gets the array of map types registered with this map. |
MapPane |
getPane(MapPaneType type)
Returns the overlay DIV with the given id. |
com.google.gwt.core.client.JavaScriptObject |
getPeer()
This method is not meant to be published, but is needed internally to support the GeoXmlOverlay gotoDefaultViewport() method. |
Size |
getSize()
Returns the size of the map view in pixels. |
int |
getZoomLevel()
Returns the current zoom level. |
void |
installKeyboardHandler()
Enables keyboard shortcuts on the map. |
boolean |
isContinuousZoomEnabled()
Returns true if continuous smooth zooming is enabled. |
boolean |
isDoubleClickZoomEnabled()
Returns true if double-click to zoom is enabled. |
boolean |
isDraggable()
Returns true if dragging of the map is enabled. |
boolean |
isInfoWindowEnabled()
Returns true if opening info windows is enabled. |
boolean |
isScrollWheelZoomEnabled()
Returns true if zooming using a mouse's scroll wheel is
enabled. |
protected void |
onAttach()
|
void |
panBy(int dx,
int dy)
Starts a pan animation by the given distance in pixels. |
void |
panDirection(int dx,
int dy)
Starts a pan animation by 1/3rd the size of the map in the indicated directions. |
void |
panTo(LatLng center)
Centers the map to the given point. |
void |
removeControl(Control control)
Removes the given control from the map. |
void |
removeInfoWindowBeforeCloseHandler(MapInfoWindowBeforeCloseHandler handler)
Removes a single handler of this map previously added with addInfoWindowBeforeCloseHandler(MapInfoWindowBeforeCloseHandler)
. |
void |
removeInfoWindowCloseHandler(MapInfoWindowCloseHandler handler)
Removes a single handler of this map previously added with addInfoWindowCloseHandler(MapInfoWindowCloseHandler) . |
void |
removeInfoWindowOpenHandler(MapInfoWindowOpenHandler handler)
Removes a single handler of this map previously added with addInfoWindowOpenHandler(MapInfoWindowOpenHandler) . |
void |
removeMapAddMapTypeHandler(MapAddMapTypeHandler handler)
Removes a single handler of this map previously added with addMapAddMapTypeHandler(MapAddMapTypeHandler) . |
void |
removeMapAddOverlayHandler(MapAddOverlayHandler handler)
Removes a single handler of this map previously added with addMapAddOverlayHandler(MapAddOverlayHandler) . |
void |
removeMapClearOverlaysHandler(MapClearOverlaysHandler handler)
Removes a single handler of this map previously added with addMapClearOverlaysHandler(MapClearOverlaysHandler) . |
void |
removeMapClickHandler(MapClickHandler handler)
Removes a single handler of this map previously added with addMapClickHandler(MapClickHandler) . |
void |
removeMapDoubleClickHandler(MapDoubleClickHandler handler)
Removes a single handler of this map previously added with addMapDoubleClickHandler(MapDoubleClickHandler) . |
void |
removeMapDragEndHandler(MapDragEndHandler handler)
Removes a single handler of this map previously added with addMapDragEndHandler(MapDragEndHandler) . |
void |
removeMapDragHandler(MapDragHandler handler)
Removes a single handler of this map previously added with addMapDragHandler(MapDragHandler) . |
void |
removeMapDragStartHandler(MapDragStartHandler handler)
Removes a single handler of this map previously added with addMapDragStartHandler(MapDragStartHandler) . |
void |
removeMapMouseMoveHandler(MapMouseMoveHandler handler)
Removes a single handler of this map previously added with addMapMouseOutHandler(MapMouseOutHandler) . |
void |
removeMapMouseOutHandler(MapMouseOutHandler handler)
Removes a single handler of this map previously added with addMapMouseOutHandler(MapMouseOutHandler) . |
void |
removeMapMouseOverHandler(MapMouseOverHandler handler)
Removes a single handler of this map previously added with addMapMouseOverHandler(MapMouseOverHandler) . |
void |
removeMapMoveEndHandler(MapMoveEndHandler handler)
Removes a single handler of this map previously added with addMapMoveEndHandler(MapMoveEndHandler) . |
void |
removeMapMoveHandler(MapMoveHandler handler)
Removes a single handler of this map previously added with addMapMoveHandler(MapMoveHandler) . |
void |
removeMapMoveStartHandler(MapMoveStartHandler handler)
Removes a single handler of this map previously added with addMapMoveStartHandler(MapMoveStartHandler) . |
void |
removeMapRemoveMapTypeHandler(MapRemoveMapTypeHandler handler)
Removes a single handler of this map previously added with addMapRemoveMapTypeHandler(MapRemoveMapTypeHandler) . |
void |
removeMapRemoveOverlayHandler(MapRemoveOverlayHandler handler)
Removes a single handler of this map previously added with addMapRemoveOverlayHandler(MapRemoveOverlayHandler) . |
void |
removeMapRightClickHandler(MapRightClickHandler handler)
Removes a single handler of this map previously added with addMapRightClickHandler(MapRightClickHandler) . |
void |
removeMapType(MapType type)
Removes the map type from the map. |
void |
removeMapTypeChangedHandler(MapTypeChangedHandler handler)
Removes a single handler of this map previously added with addMapTypeChangedHandler(MapTypeChangedHandler) . |
void |
removeMapZoomEndHandler(MapZoomEndHandler handler)
Removes a single handler of this map previously added with addMapZoomEndHandler(MapZoomEndHandler) . |
void |
removeOverlay(Overlay overlay)
Removes the overlay from the map. |
void |
returnToSavedPosition()
Restores the map view that was saved by savePosition() . |
void |
savePosition()
Stores the current map position and zoom level for later recall by returnToSavedPosition() . |
void |
setCenter(LatLng center)
Centers the map to the given latitude and longitude. |
void |
setCenter(LatLng center,
int zoomLevel)
Centers the map to the given latitude and longitude and sets the zoom level. |
void |
setCenter(LatLng center,
int zoomLevel,
MapType type)
Centers the map to the given latitude and longitude and sets the zoom level and current map type. |
void |
setContinuousZoom(boolean enabled)
Enables or disables continuous zooming on supported browsers. |
void |
setCurrentMapType(MapType type)
Sets the view to the given map type. |
void |
setDoubleClickZoom(boolean enabled)
Enables or disables the double click to zoom functionality. |
void |
setDraggable(boolean draggable)
Sets whether the map is draggable. |
void |
setGoogleBarEnabled(boolean enabled)
Enables or disables the GoogleBar, an integrated search control, to the map. |
void |
setHeight(java.lang.String height)
|
void |
setInfoWindowEnabled(boolean enabled)
Sets whether info window operations on the map are enabled. |
void |
setScrollWheelZoomEnabled(boolean enabled)
Enables zooming using a mouse's scroll wheel. |
void |
setSize(java.lang.String width,
java.lang.String height)
|
void |
setWidth(java.lang.String width)
|
void |
setZoomLevel(int level)
Sets the zoom level to the given new value. |
void |
zoomIn()
Increments zoom level by one. |
void |
zoomOut()
Decrements zoom level by one. |
Methods inherited from class com.google.gwt.user.client.ui.Composite |
---|
getWidget, initWidget, isAttached, onBrowserEvent, onDetach, setWidget |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
doAttachChildren, doDetachChildren, getParent, onLoad, onUnload, removeFromParent |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkEvents, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MapWidget()
public MapWidget(LatLng center, int zoomLevel)
center
- the geographical point about which to centerzoomLevel
- the zoom levelpublic MapWidget(LatLng center, int zoomLevel, java.lang.String draggableCursor, java.lang.String draggingCursor)
center
- the geographical point about which to centerzoomLevel
- zoomLevel the zoom leveldraggableCursor
- CSS name of the cursor to display when the map is
draggabledraggingCursor
- CSS name of the cursor to display when the map is
being draggedMethod Detail |
---|
public void addControl(Control control)
control
- the control to be addedpublic void addControl(Control control, ControlPosition position)
control
- the control to be addedposition
- the position of the controlpublic void addControlWidget(com.google.gwt.user.client.ui.Widget w)
Control.CustomControl
and
implement the initialize(MapWidget) method.
w
- the control widget to add to the mappublic void addInfoWindowBeforeCloseHandler(MapInfoWindowBeforeCloseHandler handler)
handler
- the handler to call when this event fires.public void addInfoWindowCloseHandler(MapInfoWindowCloseHandler handler)
MapInfoWindowBeforeCloseHandler
is fired before this event. If a
currently open info window is reopened at a different point using another
call to openInfoWindow*(), the handler
MapInfoWindowBeforeCloseHandler
, MapInfoWindowCloseHandler
and MapInfoWindowOpenHandler
are fired in this order
handler
- the handler to call when this event fires.public void addInfoWindowOpenHandler(MapInfoWindowOpenHandler handler)
handler
- the handler to call when this event fires.public void addMapAddMapTypeHandler(MapAddMapTypeHandler handler)
handler
- the handler to call when this event fires.public void addMapAddOverlayHandler(MapAddOverlayHandler handler)
handler
- the handler to call when this event fires.public void addMapClearOverlaysHandler(MapClearOverlaysHandler handler)
clearOverlays()
.
handler
- the handler to call when this event fires.public void addMapClickHandler(MapClickHandler handler)
handler
- handler to invoke on mouse click events.public void addMapDoubleClickHandler(MapDoubleClickHandler handler)
handler
- handler to invoke on mouse double click events.public void addMapDragEndHandler(MapDragEndHandler handler)
handler
- the handler to call when this event fires.public void addMapDragHandler(MapDragHandler handler)
handler
- the handler to call when this event fires.public void addMapDragStartHandler(MapDragStartHandler handler)
handler
- the handler to call when this event fires.public void addMapMouseMoveHandler(MapMouseMoveHandler handler)
handler
- the handler to call when this event fires.public void addMapMouseOutHandler(MapMouseOutHandler handler)
handler
- the handler to call when this event fires.public void addMapMouseOverHandler(MapMouseOverHandler handler)
handler
- the handler to call when this event fires.public void addMapMoveEndHandler(MapMoveEndHandler handler)
handler
- the handler to call when this event fires.public void addMapMoveHandler(MapMoveHandler handler)
handler
- handler to invoke on map move events.public void addMapMoveStartHandler(MapMoveStartHandler handler)
MapDragStartHandler.MapDragStartEvent
is also fired, or by
invocation of a method that changes the map view.
handler
- handler to invoke on map move events.public void addMapRemoveMapTypeHandler(MapRemoveMapTypeHandler handler)
handler
- the handler to call when this event fires.public void addMapRemoveOverlayHandler(MapRemoveOverlayHandler handler)
removeOverlay(Overlay)
. The overlay that was removed is
passed as an argument overlay to the event handler.
handler
- the handler to call when this event fires.public void addMapRightClickHandler(MapRightClickHandler handler)
MapRightClickHandler
event is fired. If, however, double click to zoom is disabled, two
MapRightClickHandler
events will be fired.
handler
- handler to invoke on mouse click events.public void addMapType(MapType type)
type
- public void addMapTypeChangedHandler(MapTypeChangedHandler handler)
handler
- the handler to call when this event fires.public void addMapZoomEndHandler(MapZoomEndHandler handler)
handler
- the handler to call when this event fires.public void addOverlay(Overlay overlay)
MapAddOverlayHandler
.
overlay
- public void checkResize()
public void clearOverlays()
MapClearOverlaysHandler
.
public void closeInfoWindow()
InfoWindow
.
public LatLng convertContainerPixelToLatLng(Point pixel)
pixel
- the container coordinates
public LatLng convertDivPixelToLatLng(Point pixel)
pixel
- point on the map to convert to Lat/Lng
public Point convertLatLngToDivPixel(LatLng latlng)
latlng
- the geographical coordinates
public LatLngBounds getBounds()
public int getBoundsZoomLevel(LatLngBounds bounds)
bounds
- a rectangular region to test
public LatLng getCenter()
public MapType getCurrentMapType()
public void getEarthInstance(EarthInstanceHandler handler)
handler
- the EarthInstanceHandler
to invoke on initialization
or failurepublic InfoWindow getInfoWindow()
public MapType[] getMapTypes()
public MapPane getPane(MapPaneType type)
Overlay
.
type
- the id of the layer
public com.google.gwt.core.client.JavaScriptObject getPeer()
public Size getSize()
public int getZoomLevel()
public void installKeyboardHandler()
public boolean isContinuousZoomEnabled()
true
if continuous smooth zooming is enabled.
true
if continuous smooth zooming is enabledpublic boolean isDoubleClickZoomEnabled()
true
if double-click to zoom is enabled.
true
if double-click to zoom is enabledpublic boolean isDraggable()
true
if dragging of the map is enabled.
true
if dragging of the map is enabledpublic boolean isInfoWindowEnabled()
true
if opening info windows is enabled.
true
if opening info windows is enabledpublic boolean isScrollWheelZoomEnabled()
true
if zooming using a mouse's scroll wheel is
enabled.
true
if zooming using a mouse's scroll wheel is
enabledpublic void panBy(int dx, int dy)
dx
- the number of pixels to pan leftdy
- the number of pixels to pan uppublic void panDirection(int dx, int dy)
dx
- the number of units to pan leftdy
- the number of units to pan uppublic void panTo(LatLng center)
center
- the new centerpublic void removeControl(Control control)
control
- the control to removepublic void removeInfoWindowBeforeCloseHandler(MapInfoWindowBeforeCloseHandler handler)
addInfoWindowBeforeCloseHandler(MapInfoWindowBeforeCloseHandler)
.
handler
- the handler to removepublic void removeInfoWindowCloseHandler(MapInfoWindowCloseHandler handler)
addInfoWindowCloseHandler(MapInfoWindowCloseHandler)
.
handler
- the handler to removepublic void removeInfoWindowOpenHandler(MapInfoWindowOpenHandler handler)
addInfoWindowOpenHandler(MapInfoWindowOpenHandler)
.
handler
- the handler to removepublic void removeMapAddMapTypeHandler(MapAddMapTypeHandler handler)
addMapAddMapTypeHandler(MapAddMapTypeHandler)
.
handler
- the handler to removepublic void removeMapAddOverlayHandler(MapAddOverlayHandler handler)
addMapAddOverlayHandler(MapAddOverlayHandler)
.
handler
- the handler to removepublic void removeMapClearOverlaysHandler(MapClearOverlaysHandler handler)
addMapClearOverlaysHandler(MapClearOverlaysHandler)
.
handler
- the handler to removepublic void removeMapClickHandler(MapClickHandler handler)
addMapClickHandler(MapClickHandler)
.
handler
- the handler to removepublic void removeMapDoubleClickHandler(MapDoubleClickHandler handler)
addMapDoubleClickHandler(MapDoubleClickHandler)
.
handler
- the handler to removepublic void removeMapDragEndHandler(MapDragEndHandler handler)
addMapDragEndHandler(MapDragEndHandler)
.
handler
- the handler to removepublic void removeMapDragHandler(MapDragHandler handler)
addMapDragHandler(MapDragHandler)
.
handler
- the handler to removepublic void removeMapDragStartHandler(MapDragStartHandler handler)
addMapDragStartHandler(MapDragStartHandler)
.
handler
- the handler to removepublic void removeMapMouseMoveHandler(MapMouseMoveHandler handler)
addMapMouseOutHandler(MapMouseOutHandler)
.
handler
- the handler to removepublic void removeMapMouseOutHandler(MapMouseOutHandler handler)
addMapMouseOutHandler(MapMouseOutHandler)
.
handler
- the handler to removepublic void removeMapMouseOverHandler(MapMouseOverHandler handler)
addMapMouseOverHandler(MapMouseOverHandler)
.
handler
- the handler to removepublic void removeMapMoveEndHandler(MapMoveEndHandler handler)
addMapMoveEndHandler(MapMoveEndHandler)
.
handler
- the handler to removepublic void removeMapMoveHandler(MapMoveHandler handler)
addMapMoveHandler(MapMoveHandler)
.
handler
- the handler to removepublic void removeMapMoveStartHandler(MapMoveStartHandler handler)
addMapMoveStartHandler(MapMoveStartHandler)
.
handler
- the handler to removepublic void removeMapRemoveMapTypeHandler(MapRemoveMapTypeHandler handler)
addMapRemoveMapTypeHandler(MapRemoveMapTypeHandler)
.
handler
- the handler to removepublic void removeMapRemoveOverlayHandler(MapRemoveOverlayHandler handler)
addMapRemoveOverlayHandler(MapRemoveOverlayHandler)
.
handler
- the handler to removepublic void removeMapRightClickHandler(MapRightClickHandler handler)
addMapRightClickHandler(MapRightClickHandler)
.
handler
- the handler to removepublic void removeMapType(MapType type)
Control
and will fire any registered instances of MapRemoveMapTypeHandler
.
public void removeMapTypeChangedHandler(MapTypeChangedHandler handler)
addMapTypeChangedHandler(MapTypeChangedHandler)
.
handler
- the handler to removepublic void removeMapZoomEndHandler(MapZoomEndHandler handler)
addMapZoomEndHandler(MapZoomEndHandler)
.
handler
- the handler to removepublic void removeOverlay(Overlay overlay)
MapRemoveOverlayHandler
handlers.
overlay
- the overlay to remove from the mappublic void returnToSavedPosition()
savePosition()
.
public void savePosition()
returnToSavedPosition()
.
public void setCenter(LatLng center)
panTo(LatLng)
.
center
- the geographical coordinate about which to centerpublic void setCenter(LatLng center, int zoomLevel)
panTo(LatLng)
.
center
- the geographical coordinate about which to centerzoomLevel
- the zoom levelpublic void setCenter(LatLng center, int zoomLevel, MapType type)
panTo(LatLng)
.
center
- the geographical coordinate about which to centerzoomLevel
- the zoom leveltype
- the viewed map typepublic void setContinuousZoom(boolean enabled)
enabled
- true
to enable continuous zoomingpublic void setCurrentMapType(MapType type)
addMapType(MapType)
or be one of the three default map
types.
type
- the desired map typepublic void setDoubleClickZoom(boolean enabled)
enabled
- true
to enable double-click to zoom.public void setDraggable(boolean draggable)
draggable
- true
if the map is draggablepublic void setGoogleBarEnabled(boolean enabled)
enabled
- pass true
to enable the Googlebar.public void setHeight(java.lang.String height)
setHeight
in class com.google.gwt.user.client.ui.UIObject
public void setInfoWindowEnabled(boolean enabled)
enabled
- true
to enable opening info windowspublic void setScrollWheelZoomEnabled(boolean enabled)
enabled
- true
to enable scroll wheel zoomingpublic void setSize(java.lang.String width, java.lang.String height)
setSize
in class com.google.gwt.user.client.ui.UIObject
public void setWidth(java.lang.String width)
setWidth
in class com.google.gwt.user.client.ui.UIObject
public void setZoomLevel(int level)
level
- the new zoom levelpublic void zoomIn()
public void zoomOut()
protected void addVirtual(com.google.gwt.user.client.ui.Widget w)
w
- the widget to adoptprotected void onAttach()
onAttach
in class com.google.gwt.user.client.ui.Composite
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |