|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.mapitz.gwt.googleMaps.client.GMap2
public class GMap2
Instantiate class GMap2 in order to create a map. This is the central class in the API. Everything else is auxiliary.
| Method Summary | |
|---|---|
void |
addControl(GControl control)
addControl(control, position?) none Adds the control to the map. |
void |
addControl(GControl control,
GControlPosition position)
addControl(control, position?) none Adds the control to the map. |
void |
addMapType(GMapType type)
addMapType(type) none Adds a new map type to the map. |
void |
addOverlay(GOverlay overlay)
addOverlay(overlay) none Adds an overlay to the map and fires the addoverlay event. |
void |
checkResize()
checkResize() none Notifies the map of a change of the size of its container. |
void |
clearOverlays()
clearOverlays() none Removes all overlay from the map, and fires the clearoverlays event. |
void |
closeInfoWindow()
closeInfoWindow() none Closes the currently open info window. |
static GMap2 |
create(com.google.gwt.user.client.Element e)
Creates a GMap2 object by passing a DIV element |
void |
disableDragging()
Disables dragging of the map by the user |
void |
disableInfoWindow()
Disables display of the information window |
boolean |
draggingEnabled()
Test to see if dragging enabled |
void |
enableDragging()
Enables dragging of the map by the user |
void |
enableInfoWindow()
Enables display of the information window |
GLatLng |
fromContainerPixelToLatLng(GPoint pixel)
fromContainerPixelToLatLng(pixel) GLatLng Computes the geographical coordinates of the point at the given pixel coordinates in the DOM element that contains the map on the page. |
GLatLng |
fromDivPixelToLatLng(GPoint pixel)
fromDivPixelToLatLng(pixel) GLatLng Computes the geographical coordinates from pixel coordinates in the div that holds the draggable impl. |
GPoint |
fromLatLngToDivPixel(GLatLng latlng)
fromLatLngToDivPixel(latlng) GPoint Computes the pixel coordinates of the given geographical point in the DOM element that holds the draggable impl. |
GLatLngBounds |
getBounds()
Returns the the visible rectangular region of the map view in geographical coordinates. |
int |
getBoundsZoomLevel(GLatLngBounds bounds)
Returns the zoom level at which the given rectangular region fits in the map view. |
GLatLng |
getCenter()
Returns the geographical coordinates of the center point of the map view. |
com.google.gwt.user.client.Element |
getContainer()
getContainer() Node Returns the DOM object that contains the map. |
GMapType |
getCurrentMapType()
getCurrentMapType() GMapType Returns the currently selected map type. |
GInfoWindow |
getInfoWindow()
getInfoWindow() GInfoWindow Returns the info window object of this impl. |
GMapType[] |
getMapTypes()
getMapTypes() Array of GMapType Returns the array of map types registered with this map. |
com.google.gwt.user.client.Element |
getPane(GMapPane pane)
getPane(pane) Node Returns a DIV that holds the object in the layer identified by pane. |
GSize |
getSize()
Returns the size of the map view in pixels. |
double |
getZoom()
Returns the current zoom level. |
boolean |
infoWindowEnabled()
Tests if info window will be displayed |
boolean |
isLoaded()
Tests if the map is "loaded" and ready to be used |
void |
openInfoWindow(GLatLng point,
com.google.gwt.user.client.Element node)
openInfoWindow(point, node, opts?) none Opens a simple info window at the given point. |
void |
openInfoWindow(GLatLng point,
com.google.gwt.user.client.Element node,
GInfoWindowOptions opts)
openInfoWindow(point, node, opts?) none Opens a simple info window at the given point. |
void |
openInfoWindowHtml(GLatLng point,
java.lang.String html)
openInfoWindowHtml(point, html, opts?) none Opens a simple info window at the given point. |
void |
openInfoWindowHtml(GLatLng point,
java.lang.String html,
GInfoWindowOptions opts)
openInfoWindowHtml(point, html, opts?) none Opens a simple info window at the given point. |
void |
openInfoWindowTabs(GLatLng point,
GInfoWindowTab[] tabs)
openInfoWindowTabs(point, tabs, opts?) none Opens a tabbed info window at the given point. |
void |
openInfoWindowTabs(GLatLng point,
GInfoWindowTab[] tabs,
GInfoWindowOptions opts)
openInfoWindowTabs(point, tabs, opts?) none Opens a tabbed info window at the given point. |
void |
openInfoWindowTabsHtml(GLatLng point,
GInfoWindowTab[] tabs)
openInfoWindowTabsHtml(point, tabs, opts?) none Opens a tabbed info window at the given point. |
void |
openInfoWindowTabsHtml(GLatLng point,
GInfoWindowTab[] tabs,
GInfoWindowOptions opts)
openInfoWindowTabsHtml(point, tabs, opts?) none Opens a tabbed info window at the given point. |
void |
panBy(int distance)
panBy(distance) none Starts a pan animation by the given distance in pixels. |
void |
panDirection(int dx,
int dy)
panDirection(dx, dy) none Starts a pan animation by half the width of the map in the indicated directions. |
void |
panTo(GLatLng center)
panTo(center) none Changes the center point of the map to the given point. |
void |
removeControl(GControl control)
removeControl(control) none Removes the control from the map. |
void |
removeMapType(GMapType type)
removeMapType(type) none Removes the map type from the map. |
void |
removeOverlay(GOverlay overlay)
removeOverlay(overlay) none Removes the overlay from the map. |
void |
returnToSavedPosition()
returnToSavedPosition() none Restores the map view that was saved by savePosition(). |
void |
savePosition()
savePosition() none Stores the current map position and zoom level for later recall by returnToSavedPosition(). |
void |
setCenter(GLatLng latlng)
Set's the center position on the map |
void |
setCenter(GLatLng latlng,
int zoom)
|
void |
setCenter(GLatLng latlng,
int zoomlevel,
GMapType type)
|
void |
setMapType(GMapType type)
setMapType(type) none Selects the given new map type. |
void |
setZoom(int level)
setZoom(level) none Sets the zoom level to the given new value. |
void |
showMapBlowup(GLatLng point)
showMapBlowup(point, opts?) none Opens an info window at the given point that contains a closeup view on the map around this point. |
void |
showMapBlowup(GLatLng point,
GInfoWindowOptions opts)
showMapBlowup(point, opts?) none Opens an info window at the given point that contains a closeup view on the map around this point. |
void |
zoomIn()
zoomIn() none Increments zoom level by one. |
void |
zoomOut()
zoomOut() none Decrements zoom level by one. |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static GMap2 create(com.google.gwt.user.client.Element e)
e -
public void setCenter(GLatLng latlng)
latlng - public void enableDragging()
public void disableDragging()
public boolean draggingEnabled()
public void enableInfoWindow()
public void disableInfoWindow()
public boolean infoWindowEnabled()
public boolean isLoaded()
public GLatLng getCenter()
public GLatLngBounds getBounds()
public int getBoundsZoomLevel(GLatLngBounds bounds)
bounds -
public double getZoom()
public GSize getSize()
public void panTo(GLatLng center)
center - public void panBy(int distance)
distance -
public void panDirection(int dx,
int dy)
dx - dy - public void setZoom(int level)
level - public void zoomIn()
public void zoomOut()
public void savePosition()
public void returnToSavedPosition()
public void checkResize()
public void addControl(GControl control,
GControlPosition position)
public void addControl(GControl control)
public void removeControl(GControl control)
public com.google.gwt.user.client.Element getContainer()
public GMapType[] getMapTypes()
public GMapType getCurrentMapType()
public void setMapType(GMapType type)
public void addMapType(GMapType type)
public void removeMapType(GMapType type)
public void setCenter(GLatLng latlng,
int zoomlevel,
GMapType type)
public void setCenter(GLatLng latlng,
int zoom)
public void addOverlay(GOverlay overlay)
public void removeOverlay(GOverlay overlay)
public void clearOverlays()
public com.google.gwt.user.client.Element getPane(GMapPane pane)
public void openInfoWindow(GLatLng point,
com.google.gwt.user.client.Element node,
GInfoWindowOptions opts)
public void openInfoWindow(GLatLng point,
com.google.gwt.user.client.Element node)
public void openInfoWindowHtml(GLatLng point,
java.lang.String html,
GInfoWindowOptions opts)
public void openInfoWindowHtml(GLatLng point,
java.lang.String html)
public void openInfoWindowTabs(GLatLng point,
GInfoWindowTab[] tabs,
GInfoWindowOptions opts)
public void openInfoWindowTabs(GLatLng point,
GInfoWindowTab[] tabs)
public void openInfoWindowTabsHtml(GLatLng point,
GInfoWindowTab[] tabs,
GInfoWindowOptions opts)
public void openInfoWindowTabsHtml(GLatLng point,
GInfoWindowTab[] tabs)
public void showMapBlowup(GLatLng point,
GInfoWindowOptions opts)
public void showMapBlowup(GLatLng point)
public void closeInfoWindow()
public GInfoWindow getInfoWindow()
public GPoint fromLatLngToDivPixel(GLatLng latlng)
public GLatLng fromDivPixelToLatLng(GPoint pixel)
public GLatLng fromContainerPixelToLatLng(GPoint pixel)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||