com.google.maps.gwt.client
Class GoogleMap

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

public class GoogleMap
extends MVCObject

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( controls)
          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

GoogleMap

protected GoogleMap()
Protected constructor avoids default public constructor.

Method Detail

create

public static GoogleMap create(Node mapDiv,
                               MapOptions opts)
Creates a new map inside of the given HTML container, which is typically a DIV element.


create

public static GoogleMap create(Node mapDiv)
Creates a new map inside of the given HTML container, which is typically a DIV element.


addBoundsChangedListener

public final void addBoundsChangedListener(GoogleMap.BoundsChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addBoundsChangedListenerOnce

public final void addBoundsChangedListenerOnce(GoogleMap.BoundsChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addCenterChangedListener

public final void addCenterChangedListener(GoogleMap.CenterChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addCenterChangedListenerOnce

public final void addCenterChangedListenerOnce(GoogleMap.CenterChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addClickListener

public final void addClickListener(GoogleMap.ClickHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addClickListenerOnce

public final void addClickListenerOnce(GoogleMap.ClickHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addDblClickListener

public final void addDblClickListener(GoogleMap.DblClickHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addDblClickListenerOnce

public final void addDblClickListenerOnce(GoogleMap.DblClickHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addDragEndListener

public final void addDragEndListener(GoogleMap.DragEndHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addDragEndListenerOnce

public final void addDragEndListenerOnce(GoogleMap.DragEndHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addDragListener

public final void addDragListener(GoogleMap.DragHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addDragListenerOnce

public final void addDragListenerOnce(GoogleMap.DragHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addDragStartListener

public final void addDragStartListener(GoogleMap.DragStartHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addDragStartListenerOnce

public final void addDragStartListenerOnce(GoogleMap.DragStartHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addHeadingChangedListener

public final void addHeadingChangedListener(GoogleMap.HeadingChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addHeadingChangedListenerOnce

public final void addHeadingChangedListenerOnce(GoogleMap.HeadingChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addIdleListener

public final void addIdleListener(GoogleMap.IdleHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addIdleListenerOnce

public final void addIdleListenerOnce(GoogleMap.IdleHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addMapTypeIdChangedListener

public final void addMapTypeIdChangedListener(GoogleMap.MapTypeIdChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addMapTypeIdChangedListenerOnce

public final void addMapTypeIdChangedListenerOnce(GoogleMap.MapTypeIdChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addMouseMoveListener

public final void addMouseMoveListener(GoogleMap.MouseMoveHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addMouseMoveListenerOnce

public final void addMouseMoveListenerOnce(GoogleMap.MouseMoveHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addMouseOutListener

public final void addMouseOutListener(GoogleMap.MouseOutHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addMouseOutListenerOnce

public final void addMouseOutListenerOnce(GoogleMap.MouseOutHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addMouseOverListener

public final void addMouseOverListener(GoogleMap.MouseOverHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addMouseOverListenerOnce

public final void addMouseOverListenerOnce(GoogleMap.MouseOverHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addProjectionChangedListener

public final void addProjectionChangedListener(GoogleMap.ProjectionChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addProjectionChangedListenerOnce

public final void addProjectionChangedListenerOnce(GoogleMap.ProjectionChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addResizeListener

public final void addResizeListener(GoogleMap.ResizeHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addResizeListenerOnce

public final void addResizeListenerOnce(GoogleMap.ResizeHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addRightClickListener

public final void addRightClickListener(GoogleMap.RightClickHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addRightClickListenerOnce

public final void addRightClickListenerOnce(GoogleMap.RightClickHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addTilesLoadedListener

public final void addTilesLoadedListener(GoogleMap.TilesLoadedHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addTilesLoadedListenerOnce

public final void addTilesLoadedListenerOnce(GoogleMap.TilesLoadedHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addTiltChangedListener

public final void addTiltChangedListener(GoogleMap.TiltChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addTiltChangedListenerOnce

public final void addTiltChangedListenerOnce(GoogleMap.TiltChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addZoomChangedListener

public final void addZoomChangedListener(GoogleMap.ZoomChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addZoomChangedListenerOnce

public final void addZoomChangedListenerOnce(GoogleMap.ZoomChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event.


clearBoundsChangedListeners

public final void clearBoundsChangedListeners()
Removes all listeners for the given event for the given instance.


clearCenterChangedListeners

public final void clearCenterChangedListeners()
Removes all listeners for the given event for the given instance.


clearClickListeners

public final void clearClickListeners()
Removes all listeners for the given event for the given instance.


clearDblClickListeners

public final void clearDblClickListeners()
Removes all listeners for the given event for the given instance.


clearDragEndListeners

public final void clearDragEndListeners()
Removes all listeners for the given event for the given instance.


clearDragListeners

public final void clearDragListeners()
Removes all listeners for the given event for the given instance.


clearDragStartListeners

public final void clearDragStartListeners()
Removes all listeners for the given event for the given instance.


clearHeadingChangedListeners

public final void clearHeadingChangedListeners()
Removes all listeners for the given event for the given instance.


clearIdleListeners

public final void clearIdleListeners()
Removes all listeners for the given event for the given instance.


clearInstanceListeners

public final void clearInstanceListeners()
Removes all listeners for all events for the given instance.


clearMapTypeIdChangedListeners

public final void clearMapTypeIdChangedListeners()
Removes all listeners for the given event for the given instance.


clearMouseMoveListeners

public final void clearMouseMoveListeners()
Removes all listeners for the given event for the given instance.


clearMouseOutListeners

public final void clearMouseOutListeners()
Removes all listeners for the given event for the given instance.


clearMouseOverListeners

public final void clearMouseOverListeners()
Removes all listeners for the given event for the given instance.


clearProjectionChangedListeners

public final void clearProjectionChangedListeners()
Removes all listeners for the given event for the given instance.


clearResizeListeners

public final void clearResizeListeners()
Removes all listeners for the given event for the given instance.


clearRightClickListeners

public final void clearRightClickListeners()
Removes all listeners for the given event for the given instance.


clearTilesLoadedListeners

public final void clearTilesLoadedListeners()
Removes all listeners for the given event for the given instance.


clearTiltChangedListeners

public final void clearTiltChangedListeners()
Removes all listeners for the given event for the given instance.


clearZoomChangedListeners

public final void clearZoomChangedListeners()
Removes all listeners for the given event for the given instance.


fitBounds

public final void fitBounds(LatLngBounds bounds)
Sets the viewport to contain the given bounds.


getBounds

public final LatLngBounds getBounds()
Returns the lat/lng bounds of the current viewport. If the map is not yet initialized (i.e. the mapType is still null), or center and zoom have not been set then the result is null or undefined .


getCenter

public final LatLng getCenter()
Returns the position displayed at the center of the map. Note that this LatLng object is not wrapped. See LatLng for more information.


getControls

public final  getControls()
Additional controls to attach to the map. To add a control to the map, add the control's <div> to the MVCArray corresponding to the ControlPosition where it should be rendered.


getDiv

public final Node getDiv()

getFeatures

public final MapFeaturesTracker getFeatures()

getHeading

public final double getHeading()
Returns the compass heading of aerial imagery. The heading value is measured in degrees (clockwise) from cardinal direction North.


getMapTypes

public final MapTypeRegistry getMapTypes()
A registry of MapType instances by string ID.


getOverlayMapTypes

public final MVCArray<MapType> getOverlayMapTypes()
Additional map types to overlay.


getProjection

public final Projection getProjection()
Returns the current 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.


getStreetView

public final 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() . Changes to the map's streetViewControl will be reflected in the display of such a bound panorama.


getTilt

public final 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. A value of 0 indicates no angle of incidence (no tilt) while 45° imagery will return a value of 45 .


getZoom

public final double getZoom()

panBy

public final void panBy(double x,
                        double y)
Changes the center of the map by the given distance in pixels. If the distance is less than both the width and height of the map, the transition will be smoothly animated. Note that the map coordinate system increases from west to east (for x values) and north to south (for y values).


panTo

public final void panTo(LatLng latLng)
Changes the center of the map to the given LatLng . If the change is less than both the width and height of the map, the transition will be smoothly animated.


panToBounds

public final void panToBounds(LatLngBounds latLngBounds)
Pans the map by the minimum amount necessary to contain the given 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.


setCenter

public final void setCenter(LatLng latlng)

setControls

public final void setControls( controls)
Additional controls to attach to the map. To add a control to the map, add the control's <div> to the MVCArray corresponding to the ControlPosition where it should be rendered.


setFeatures

public final void setFeatures(MapFeaturesTracker features)

setHeading

public final void setHeading(double heading)
Sets the compass heading for aerial imagery measured in degrees from cardinal direction North.


setMapTypeId

public final void setMapTypeId(MapTypeId mapTypeId)

setMapTypeId

public final void setMapTypeId(java.lang.String mapTypeId)

setMapTypes

public final void setMapTypes(MapTypeRegistry mapTypes)
A registry of MapType instances by string ID.


setOptions

public final void setOptions(MapOptions options)

setOverlayMapTypes

public final void setOverlayMapTypes(MVCArray<MapType> overlayMapTypes)
Additional map types to overlay.


setStreetView

public final void setStreetView(StreetViewPanorama panorama)
Binds a 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.


setTilt

public final 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. The only supported values are 0 , indicating no angle of incidence (no tilt), and 45 indicating a tilt of 45deg;.


setZoom

public final void setZoom(double zoom)

triggerBoundsChanged

public final void triggerBoundsChanged(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerCenterChanged

public final void triggerCenterChanged(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerClick

public final void triggerClick(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerDblClick

public final void triggerDblClick(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerDrag

public final void triggerDrag(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerDragEnd

public final void triggerDragEnd(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerDragStart

public final void triggerDragStart(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerHeadingChanged

public final void triggerHeadingChanged(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerIdle

public final void triggerIdle(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerMapTypeIdChanged

public final void triggerMapTypeIdChanged(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerMouseMove

public final void triggerMouseMove(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerMouseOut

public final void triggerMouseOut(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerMouseOver

public final void triggerMouseOver(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerProjectionChanged

public final void triggerProjectionChanged(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerResize

public final void triggerResize(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerRightClick

public final void triggerRightClick(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerTilesLoaded

public final void triggerTilesLoaded(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerTiltChanged

public final void triggerTiltChanged(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerZoomChanged

public final void triggerZoomChanged(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.