|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJavaScriptObject
com.google.maps.gwt.client.MVCObject
com.google.maps.gwt.client.GoogleMap
public class GoogleMap
THIS SOURCE CODE IS GENERATED, DO NOT MODIFY
Nested Class Summary | |
---|---|
static interface |
GoogleMap.BoundsChangedHandler
This event is fired when the viewport bounds have changed. |
static interface |
GoogleMap.CenterChangedHandler
This event is fired when the map center property changes. |
static interface |
GoogleMap.ClickHandler
This event is fired when the user clicks on the map (but not when they click on a marker or infowindow). |
static interface |
GoogleMap.DblClickHandler
This event is fired when the user double-clicks on the map. |
static interface |
GoogleMap.DragEndHandler
This event is fired when the user stops dragging the map. |
static interface |
GoogleMap.DragHandler
This event is repeatedly fired while the user drags the map. |
static interface |
GoogleMap.DragStartHandler
This event is fired when the user starts dragging the map. |
static interface |
GoogleMap.HeadingChangedHandler
This event is fired when the map heading property changes. |
static interface |
GoogleMap.IdleHandler
This event is fired when the map becomes idle after panning or zooming. |
static interface |
GoogleMap.MapTypeIdChangedHandler
This event is fired when the mapTypeId property changes. |
static interface |
GoogleMap.MouseMoveHandler
This event is fired whenever the user's mouse moves over the map container. |
static interface |
GoogleMap.MouseOutHandler
This event is fired when the user's mouse exits the map container. |
static interface |
GoogleMap.MouseOverHandler
This event is fired when the user's mouse enters the map container. |
static interface |
GoogleMap.ProjectionChangedHandler
This event is fired when the projection has changed. |
static interface |
GoogleMap.ResizeHandler
Developers should trigger this event on the map when the div changes size: google.maps.event.trigger(map, 'resize')
. |
static interface |
GoogleMap.RightClickHandler
This event is fired when the DOM contextmenu event is fired on the map container. |
static interface |
GoogleMap.TilesLoadedHandler
This event is fired when the visible tiles have finished loading. |
static interface |
GoogleMap.TiltChangedHandler
This event is fired when the map tilt property changes. |
static interface |
GoogleMap.ZoomChangedHandler
This event is fired when the map zoom property changes. |
Constructor Summary | |
---|---|
protected |
GoogleMap()
Protected constructor avoids default public constructor. |
Method Summary | |
---|---|
void |
addBoundsChangedListener(GoogleMap.BoundsChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addBoundsChangedListenerOnce(GoogleMap.BoundsChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addCenterChangedListener(GoogleMap.CenterChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addCenterChangedListenerOnce(GoogleMap.CenterChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addClickListener(GoogleMap.ClickHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addClickListenerOnce(GoogleMap.ClickHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addDblClickListener(GoogleMap.DblClickHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addDblClickListenerOnce(GoogleMap.DblClickHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addDragEndListener(GoogleMap.DragEndHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addDragEndListenerOnce(GoogleMap.DragEndHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addDragListener(GoogleMap.DragHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addDragListenerOnce(GoogleMap.DragHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addDragStartListener(GoogleMap.DragStartHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addDragStartListenerOnce(GoogleMap.DragStartHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addHeadingChangedListener(GoogleMap.HeadingChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addHeadingChangedListenerOnce(GoogleMap.HeadingChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addIdleListener(GoogleMap.IdleHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addIdleListenerOnce(GoogleMap.IdleHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addMapTypeIdChangedListener(GoogleMap.MapTypeIdChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addMapTypeIdChangedListenerOnce(GoogleMap.MapTypeIdChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addMouseMoveListener(GoogleMap.MouseMoveHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addMouseMoveListenerOnce(GoogleMap.MouseMoveHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addMouseOutListener(GoogleMap.MouseOutHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addMouseOutListenerOnce(GoogleMap.MouseOutHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addMouseOverListener(GoogleMap.MouseOverHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addMouseOverListenerOnce(GoogleMap.MouseOverHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addProjectionChangedListener(GoogleMap.ProjectionChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addProjectionChangedListenerOnce(GoogleMap.ProjectionChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addResizeListener(GoogleMap.ResizeHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addResizeListenerOnce(GoogleMap.ResizeHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addRightClickListener(GoogleMap.RightClickHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addRightClickListenerOnce(GoogleMap.RightClickHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addTilesLoadedListener(GoogleMap.TilesLoadedHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addTilesLoadedListenerOnce(GoogleMap.TilesLoadedHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addTiltChangedListener(GoogleMap.TiltChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addTiltChangedListenerOnce(GoogleMap.TiltChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addZoomChangedListener(GoogleMap.ZoomChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addZoomChangedListenerOnce(GoogleMap.ZoomChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
clearBoundsChangedListeners()
Removes all listeners for the given event for the given instance. |
void |
clearCenterChangedListeners()
Removes all listeners for the given event for the given instance. |
void |
clearClickListeners()
Removes all listeners for the given event for the given instance. |
void |
clearDblClickListeners()
Removes all listeners for the given event for the given instance. |
void |
clearDragEndListeners()
Removes all listeners for the given event for the given instance. |
void |
clearDragListeners()
Removes all listeners for the given event for the given instance. |
void |
clearDragStartListeners()
Removes all listeners for the given event for the given instance. |
void |
clearHeadingChangedListeners()
Removes all listeners for the given event for the given instance. |
void |
clearIdleListeners()
Removes all listeners for the given event for the given instance. |
void |
clearInstanceListeners()
Removes all listeners for all events for the given instance. |
void |
clearMapTypeIdChangedListeners()
Removes all listeners for the given event for the given instance. |
void |
clearMouseMoveListeners()
Removes all listeners for the given event for the given instance. |
void |
clearMouseOutListeners()
Removes all listeners for the given event for the given instance. |
void |
clearMouseOverListeners()
Removes all listeners for the given event for the given instance. |
void |
clearProjectionChangedListeners()
Removes all listeners for the given event for the given instance. |
void |
clearResizeListeners()
Removes all listeners for the given event for the given instance. |
void |
clearRightClickListeners()
Removes all listeners for the given event for the given instance. |
void |
clearTilesLoadedListeners()
Removes all listeners for the given event for the given instance. |
void |
clearTiltChangedListeners()
Removes all listeners for the given event for the given instance. |
void |
clearZoomChangedListeners()
Removes all listeners for the given event for the given instance. |
static GoogleMap |
create(Node mapDiv)
Creates a new map inside of the given HTML container, which is typically a DIV
element. |
static GoogleMap |
create(Node mapDiv,
MapOptions opts)
Creates a new map inside of the given HTML container, which is typically a DIV
element. |
void |
fitBounds(LatLngBounds bounds)
Sets the viewport to contain the given bounds. |
LatLngBounds |
getBounds()
Returns the lat/lng bounds of the current viewport. |
LatLng |
getCenter()
Returns the position displayed at the center of the map. |
|
getControls()
Additional controls to attach to the map. |
Node |
getDiv()
|
MapFeaturesTracker |
getFeatures()
|
double |
getHeading()
Returns the compass heading of aerial imagery. |
MapTypeRegistry |
getMapTypes()
A registry of MapType
instances by string ID. |
MVCArray<MapType> |
getOverlayMapTypes()
Additional map types to overlay. |
Projection |
getProjection()
Returns the current Projection
. |
StreetViewPanorama |
getStreetView()
Returns the default StreetViewPanorama
bound to the map, which may be a default panorama embedded within the
map, or the panorama set using
setStreetView()
. |
double |
getTilt()
Returns the angle of incidence for aerial imagery (available for SATELLITE
and
HYBRID
map types) measured in degrees from the viewport plane to the map
plane. |
double |
getZoom()
|
void |
panBy(double x,
double y)
Changes the center of the map by the given distance in pixels. |
void |
panTo(LatLng latLng)
Changes the center of the map to the given LatLng
. |
void |
panToBounds(LatLngBounds latLngBounds)
Pans the map by the minimum amount necessary to contain the given LatLngBounds
. |
void |
setCenter(LatLng latlng)
|
void |
setControls(
Additional controls to attach to the map. |
void |
setFeatures(MapFeaturesTracker features)
|
void |
setHeading(double heading)
Sets the compass heading for aerial imagery measured in degrees from cardinal direction North. |
void |
setMapTypeId(MapTypeId mapTypeId)
|
void |
setMapTypeId(java.lang.String mapTypeId)
|
void |
setMapTypes(MapTypeRegistry mapTypes)
A registry of MapType
instances by string ID. |
void |
setOptions(MapOptions options)
|
void |
setOverlayMapTypes(MVCArray<MapType> overlayMapTypes)
Additional map types to overlay. |
void |
setStreetView(StreetViewPanorama panorama)
Binds a StreetViewPanorama
to the map. |
void |
setTilt(double tilt)
Sets the angle of incidence for aerial imagery (available for SATELLITE
and
HYBRID
map types) measured in degrees from the viewport plane to the map
plane. |
void |
setZoom(double zoom)
|
void |
triggerBoundsChanged(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerCenterChanged(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerClick(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerDblClick(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerDrag(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerDragEnd(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerDragStart(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerHeadingChanged(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerIdle(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerMapTypeIdChanged(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerMouseMove(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerMouseOut(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerMouseOver(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerProjectionChanged(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerResize(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerRightClick(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerTilesLoaded(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerTiltChanged(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerZoomChanged(JavaScriptObject... varargs)
Triggers the given event. |
Methods inherited from class com.google.maps.gwt.client.MVCObject |
---|
bindTo, bindTo, bindTo, bindTo, changed, create, get, notify, set, setValues, setValues, unbind, unbindAll |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected GoogleMap()
Method Detail |
---|
public static GoogleMap create(Node mapDiv, MapOptions opts)
DIV
element.
public static GoogleMap create(Node mapDiv)
DIV
element.
public final void addBoundsChangedListener(GoogleMap.BoundsChangedHandler handler)
public final void addBoundsChangedListenerOnce(GoogleMap.BoundsChangedHandler handler)
public final void addCenterChangedListener(GoogleMap.CenterChangedHandler handler)
public final void addCenterChangedListenerOnce(GoogleMap.CenterChangedHandler handler)
public final void addClickListener(GoogleMap.ClickHandler handler)
public final void addClickListenerOnce(GoogleMap.ClickHandler handler)
public final void addDblClickListener(GoogleMap.DblClickHandler handler)
public final void addDblClickListenerOnce(GoogleMap.DblClickHandler handler)
public final void addDragEndListener(GoogleMap.DragEndHandler handler)
public final void addDragEndListenerOnce(GoogleMap.DragEndHandler handler)
public final void addDragListener(GoogleMap.DragHandler handler)
public final void addDragListenerOnce(GoogleMap.DragHandler handler)
public final void addDragStartListener(GoogleMap.DragStartHandler handler)
public final void addDragStartListenerOnce(GoogleMap.DragStartHandler handler)
public final void addHeadingChangedListener(GoogleMap.HeadingChangedHandler handler)
public final void addHeadingChangedListenerOnce(GoogleMap.HeadingChangedHandler handler)
public final void addIdleListener(GoogleMap.IdleHandler handler)
public final void addIdleListenerOnce(GoogleMap.IdleHandler handler)
public final void addMapTypeIdChangedListener(GoogleMap.MapTypeIdChangedHandler handler)
public final void addMapTypeIdChangedListenerOnce(GoogleMap.MapTypeIdChangedHandler handler)
public final void addMouseMoveListener(GoogleMap.MouseMoveHandler handler)
public final void addMouseMoveListenerOnce(GoogleMap.MouseMoveHandler handler)
public final void addMouseOutListener(GoogleMap.MouseOutHandler handler)
public final void addMouseOutListenerOnce(GoogleMap.MouseOutHandler handler)
public final void addMouseOverListener(GoogleMap.MouseOverHandler handler)
public final void addMouseOverListenerOnce(GoogleMap.MouseOverHandler handler)
public final void addProjectionChangedListener(GoogleMap.ProjectionChangedHandler handler)
public final void addProjectionChangedListenerOnce(GoogleMap.ProjectionChangedHandler handler)
public final void addResizeListener(GoogleMap.ResizeHandler handler)
public final void addResizeListenerOnce(GoogleMap.ResizeHandler handler)
public final void addRightClickListener(GoogleMap.RightClickHandler handler)
public final void addRightClickListenerOnce(GoogleMap.RightClickHandler handler)
public final void addTilesLoadedListener(GoogleMap.TilesLoadedHandler handler)
public final void addTilesLoadedListenerOnce(GoogleMap.TilesLoadedHandler handler)
public final void addTiltChangedListener(GoogleMap.TiltChangedHandler handler)
public final void addTiltChangedListenerOnce(GoogleMap.TiltChangedHandler handler)
public final void addZoomChangedListener(GoogleMap.ZoomChangedHandler handler)
public final void addZoomChangedListenerOnce(GoogleMap.ZoomChangedHandler handler)
public final void clearBoundsChangedListeners()
public final void clearCenterChangedListeners()
public final void clearClickListeners()
public final void clearDblClickListeners()
public final void clearDragEndListeners()
public final void clearDragListeners()
public final void clearDragStartListeners()
public final void clearHeadingChangedListeners()
public final void clearIdleListeners()
public final void clearInstanceListeners()
public final void clearMapTypeIdChangedListeners()
public final void clearMouseMoveListeners()
public final void clearMouseOutListeners()
public final void clearMouseOverListeners()
public final void clearProjectionChangedListeners()
public final void clearResizeListeners()
public final void clearRightClickListeners()
public final void clearTilesLoadedListeners()
public final void clearTiltChangedListeners()
public final void clearZoomChangedListeners()
public final void fitBounds(LatLngBounds bounds)
public final LatLngBounds getBounds()
null
or
undefined
.
public final LatLng getCenter()
LatLng
object is not wrapped. See
LatLng
for more information.
public finalgetControls()
<div>
to the
MVCArray
corresponding to the
ControlPosition
where it should be rendered.
public final Node getDiv()
public final MapFeaturesTracker getFeatures()
public final double getHeading()
public final MapTypeRegistry getMapTypes()
MapType
instances by string ID.
public final MVCArray<MapType> getOverlayMapTypes()
public final Projection getProjection()
Projection
. If the map is not yet initialized (i.e. the mapType is still null)
then the result is null. Listen to
projection_changed
and check its value to ensure it is not null.
public final StreetViewPanorama getStreetView()
StreetViewPanorama
bound to the map, which may be a default panorama embedded within the
map, or the panorama set using
setStreetView()
. Changes to the map's
streetViewControl
will be reflected in the display of such a bound panorama.
public final double getTilt()
SATELLITE
and
HYBRID
map types) measured in degrees from the viewport plane to the map
plane. A value of
0
indicates no angle of incidence (no tilt) while 45° imagery will
return a value of
45
.
public final double getZoom()
public final void panBy(double x, double y)
public final void panTo(LatLng latLng)
LatLng
. If the change is less than both the width and height of the map,
the transition will be smoothly animated.
public final void panToBounds(LatLngBounds latLngBounds)
LatLngBounds
. It makes no guarantee where on the map the bounds will be, except
that as much of the bounds as possible will be visible. The bounds
will be positioned inside the area bounded by the map type and
navigation (pan, zoom, and Street View) controls, if they are present
on the map. If the bounds is larger than the map, the map will be
shifted to include the northwest corner of the bounds. If the change
in the map's position is less than both the width and height of the
map, the transition will be smoothly animated.
public final void setCenter(LatLng latlng)
public final void setControls(controls)
<div>
to the
MVCArray
corresponding to the
ControlPosition
where it should be rendered.
public final void setFeatures(MapFeaturesTracker features)
public final void setHeading(double heading)
public final void setMapTypeId(MapTypeId mapTypeId)
public final void setMapTypeId(java.lang.String mapTypeId)
public final void setMapTypes(MapTypeRegistry mapTypes)
MapType
instances by string ID.
public final void setOptions(MapOptions options)
public final void setOverlayMapTypes(MVCArray<MapType> overlayMapTypes)
public final void setStreetView(StreetViewPanorama panorama)
StreetViewPanorama
to the map. This panorama overrides the default
StreetViewPanorama
, allowing the map to bind to an external panorama outside of the
map. Setting the panorama to
null
binds the default embedded panorama back to the map.
public final void setTilt(double tilt)
SATELLITE
and
HYBRID
map types) measured in degrees from the viewport plane to the map
plane. The only supported values are
0
, indicating no angle of incidence (no tilt), and
45
indicating a tilt of 45deg;.
public final void setZoom(double zoom)
public final void triggerBoundsChanged(JavaScriptObject... varargs)
public final void triggerCenterChanged(JavaScriptObject... varargs)
public final void triggerClick(JavaScriptObject... varargs)
public final void triggerDblClick(JavaScriptObject... varargs)
public final void triggerDrag(JavaScriptObject... varargs)
public final void triggerDragEnd(JavaScriptObject... varargs)
public final void triggerDragStart(JavaScriptObject... varargs)
public final void triggerHeadingChanged(JavaScriptObject... varargs)
public final void triggerIdle(JavaScriptObject... varargs)
public final void triggerMapTypeIdChanged(JavaScriptObject... varargs)
public final void triggerMouseMove(JavaScriptObject... varargs)
public final void triggerMouseOut(JavaScriptObject... varargs)
public final void triggerMouseOver(JavaScriptObject... varargs)
public final void triggerProjectionChanged(JavaScriptObject... varargs)
public final void triggerResize(JavaScriptObject... varargs)
public final void triggerRightClick(JavaScriptObject... varargs)
public final void triggerTilesLoaded(JavaScriptObject... varargs)
public final void triggerTiltChanged(JavaScriptObject... varargs)
public final void triggerZoomChanged(JavaScriptObject... varargs)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |