public class MapImpl extends MVCObject<MapImpl>
Modifier | Constructor and Description |
---|---|
protected |
MapImpl()
Creates a new map inside of the given HTML container, which is typically
a DIV element.
|
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addBoundsChangeHandler(BoundsChangeMapHandler handler)
This event is fired when the viewport bounds have changed.
|
HandlerRegistration |
addCenterChangeHandler(CenterChangeMapHandler handler)
This event is fired when the map center property changes.
|
HandlerRegistration |
addClickHandler(ClickMapHandler handler)
This event is fired when the user clicks on the map (but not when they
click on a marker or infowindow).
|
HandlerRegistration |
addDblClickHandler(DblClickMapHandler handler)
This event is fired when the user double-clicks on the map.
|
HandlerRegistration |
addDragEndHandler(DragEndMapHandler handler)
This event is fired when the user stops dragging the map.
|
HandlerRegistration |
addDragHandler(DragMapHandler handler)
This event is repeatedly fired while the user drags the map.
|
HandlerRegistration |
addDragStartHandler(DragStartMapHandler handler)
This event is fired when the user starts dragging the map.
|
HandlerRegistration |
addHeadingChangeHandler(HeadingChangeMapHandler handler)
This event is fired when the map heading property changes.
|
HandlerRegistration |
addIdleHandler(IdleMapHandler handler)
This event is fired when the map becomes idle after panning or zooming.
|
HandlerRegistration |
addMapTypeIdChangeHandler(MapTypeIdChangeMapHandler handler)
This event is fired when the mapTypeId property changes.
|
HandlerRegistration |
addMouseMoveHandler(MouseMoveMapHandler handler)
This event is fired whenever the user's mouse moves over the map
container.
|
HandlerRegistration |
addMouseOutMoveHandler(MouseOutMapHandler handler)
This event is fired when the user's mouse exits the map container.
|
HandlerRegistration |
addMouseOverHandler(MouseOverMapHandler handler)
This event is fired when the user's mouse enters the map container.
|
HandlerRegistration |
addProjectionChangeHandler(ProjectionChangeMapHandler handler)
This event is fired when the projection has changed.
|
HandlerRegistration |
addResizeHandler(ResizeMapHandler handler)
Developers should trigger this event on the map when the div changes
size: google.maps.event.trigger(map, 'resize') .
|
HandlerRegistration |
addRightClickHandler(RightClickMapHandler handler)
This event is fired when the DOM contextmenu event is fired on the map
container.
|
HandlerRegistration |
addTilesLoadedHandler(TilesLoadedMapHandler handler)
This event is fired when the visible tiles have finished loading.
|
HandlerRegistration |
addTiltChangeHandler(TiltChangeMapHandler handler)
This event is fired when the map tilt property changes.
|
HandlerRegistration |
addZoomChangeHandler(ZoomChangeMapHandler handler)
This event is fired when the map zoom property changes.
|
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()
return map center in coordinates
|
MVCArray<Element> |
getControls()
TODO gets Additional controls to attach to the map.
|
Element |
getDiv()
Get map's containing element
|
int |
getHeading()
Returns the compass heading of aerial imagery.
|
MapTypeId |
getMapTypeId()
gets
MapTypeId |
MapTypeRegistry |
getMapTypeRegistry()
gets A registry of MapType instances by string ID.
|
MVCArray<JavaScriptObject> |
getOverlayMapTypes()
TODO gets Additional map types to overlay.
|
Projection |
getProjection()
Returns the current Projection.
|
StreetViewPanoramaImpl |
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().
|
int |
getTilt()
gets 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.
|
int |
getZoom()
get zoom
|
static MapImpl |
newInstance(Element element,
MapOptions options)
Creates a new map inside of the given HTML container, which is typically
a DIV element.
|
void |
panBy(int x,
int 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)
set center
|
void |
setControls(ControlPosition controlPosition,
Element element)
sets Additional controls to attach to the map.
|
void |
setControls(MVCArray<Element> controls)
TODO sets Additional controls to attach to the map.
|
void |
setCustomMapType(String mapTypeId,
StyledMapType styledType)
Set the custom map type into the map's registry
|
void |
setHeading(int heading)
Sets the compass heading for aerial imagery measured in degrees from
cardinal direction North.
|
void |
setMapTypeId(MapTypeId mapTypeId)
set MapTypeId
|
void |
setMapTypesRegistry(MapTypeRegistry mapTypes)
TODO sets A registry of MapType instances by string ID.
|
void |
setOptions(MapOptions options)
set MapOptions
|
void |
setOverlayMapTypes(MVCArray<JavaScriptObject> overlayMapTypes)
TODO sets Additional map types to overlay.
|
void |
setStreetView(StreetViewPanoramaImpl panorama)
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 |
setTilt(int 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(int zoom)
sets map zoom
|
bindTo, bindTo, bindTo, changed, createInstanceOfMVCObject, get, notify, set, setValues, unbind, unbindAll
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
protected MapImpl()
public static final MapImpl newInstance(Element element, MapOptions options)
element
- - map dom element container, like a divoptions
- - MapOptions
MapImpl
public final void fitBounds(LatLngBounds bounds)
bounds
- LatLngBounds
public final LatLngBounds getBounds()
LatLngBounds
public final LatLng getCenter()
public final Element getDiv()
public final int getHeading()
public final Projection getProjection()
Projection
public final StreetViewPanoramaImpl getStreetView()
StreetViewPanoramaImpl
public final int getTilt()
public final int getZoom()
public final void panBy(int x, int y)
x
- y
- public final void panTo(LatLng latLng)
latLng
- public final void panToBounds(LatLngBounds latLngBounds)
latLngBounds
- public final void setCenter(LatLng latlng)
latlng
- public final void setHeading(int heading)
heading
- public final void setMapTypeId(MapTypeId mapTypeId)
mapTypeId
- public final void setOptions(MapOptions options)
options
- public final void setStreetView(StreetViewPanoramaImpl panorama)
panorama
- public final void setTilt(int tilt)
tilt
- public final void setZoom(int zoom)
zoom
- public final void setControls(MVCArray<Element> controls)
<div>
to the MVCArray
corresponding to the ControlPosition where it should be rendered.controls
- public final void setControls(ControlPosition controlPosition, Element element)
<div>
to the MVCArray
corresponding to the ControlPosition where it should be rendered.controlPosition
- element
- public final MVCArray<Element> getControls()
<div>
to the MVCArray
corresponding to the ControlPosition where it should be rendered.public final void setMapTypesRegistry(MapTypeRegistry mapTypes)
mapTypes
- public final void setCustomMapType(String mapTypeId, StyledMapType styledType)
mapTypeId
- styledType
- public final MapTypeRegistry getMapTypeRegistry()
public final void setOverlayMapTypes(MVCArray<JavaScriptObject> overlayMapTypes)
overlayMapTypes
- public final MVCArray<JavaScriptObject> getOverlayMapTypes()
public final HandlerRegistration addBoundsChangeHandler(BoundsChangeMapHandler handler)
handler
- BoundsChangeMapHandler
MapHandlerRegistration
public final HandlerRegistration addCenterChangeHandler(CenterChangeMapHandler handler)
handler
- CenterChangeMapHandler
MapHandlerRegistration
public final HandlerRegistration addClickHandler(ClickMapHandler handler)
handler
- ClickMapHandler
MapHandlerRegistration
public final HandlerRegistration addDblClickHandler(DblClickMapHandler handler)
handler
- DblClickMapHandler
MapHandlerRegistration
public final HandlerRegistration addDragHandler(DragMapHandler handler)
handler
- DragMapHandler
MapHandlerRegistration
public final HandlerRegistration addDragEndHandler(DragEndMapHandler handler)
handler
- DragEndMapHandler
MapHandlerRegistration
public final HandlerRegistration addDragStartHandler(DragStartMapHandler handler)
handler
- DragStartMapHandler
MapHandlerRegistration
public final HandlerRegistration addHeadingChangeHandler(HeadingChangeMapHandler handler)
handler
- HeadingChangeMapHandler
MapHandlerRegistration
public final HandlerRegistration addIdleHandler(IdleMapHandler handler)
handler
- IdleMapHandler
MapHandlerRegistration
public final HandlerRegistration addMapTypeIdChangeHandler(MapTypeIdChangeMapHandler handler)
handler
- MapTypeIdChangeMapHandler
MapHandlerRegistration
public final HandlerRegistration addMouseMoveHandler(MouseMoveMapHandler handler)
handler
- MouseMoveMapHandler
MapHandlerRegistration
public final HandlerRegistration addMouseOutMoveHandler(MouseOutMapHandler handler)
handler
- MouseOutMapHandler
MapHandlerRegistration
public final HandlerRegistration addMouseOverHandler(MouseOverMapHandler handler)
handler
- MouseOverMapHandler
MapHandlerRegistration
public final HandlerRegistration addProjectionChangeHandler(ProjectionChangeMapHandler handler)
handler
- ProjectionChangeMapHandler
MapHandlerRegistration
public final HandlerRegistration addResizeHandler(ResizeMapHandler handler)
handler
- ResizeMapHandler
MapHandlerRegistration
public final HandlerRegistration addRightClickHandler(RightClickMapHandler handler)
handler
- RightClickMapHandler
MapHandlerRegistration
public final HandlerRegistration addTilesLoadedHandler(TilesLoadedMapHandler handler)
handler
- TilesLoadedMapHandler
MapHandlerRegistration
public final HandlerRegistration addTiltChangeHandler(TiltChangeMapHandler handler)
handler
- TiltChangeMapHandler
MapHandlerRegistration
public final HandlerRegistration addZoomChangeHandler(ZoomChangeMapHandler handler)
handler
- ZoomChangeMapHandler
MapHandlerRegistration
Copyright © 2011-2013 Gone Vertical LLC. All Rights Reserved.