|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJavaScriptObject
com.googlecode.gwtmapquest.transaction.MQATileMap
public class MQATileMap
MQ API reference is here
| Field Summary | |
|---|---|
static java.lang.String |
TYPE_HYP
|
static java.lang.String |
TYPE_MAP
|
static java.lang.String |
TYPE_SAT
|
| Constructor Summary | |
|---|---|
protected |
MQATileMap()
|
| Method Summary | |
|---|---|
void |
addControl(MQAControl control)
|
void |
addInfoWindowCloseHandler(InfoWindowCloseHandler handler)
|
void |
addInfoWindowOpenHandler(InfoWindowOpenHandler handler)
|
void |
addMapClearedHandler(MapClearedHandler handler)
|
void |
addMapTypeChangedHandler(MapTypeChangedHandler handler)
|
void |
addMoveEndHandler(MoveEndHandler handler)
|
void |
addMoveHandler(MoveHandler handler)
|
void |
addMoveStartHandler(MoveStartHandler handler)
|
void |
addRouteHighlight(MQARectLL boundingBox,
java.lang.String mapServerUrl,
java.lang.String sessionID,
boolean bestFit)
|
void |
addShape(MQAAbstractShape point)
Adds the specified shape to the map. |
void |
addShapeAddedHandler(ShapeAddedHandler handler)
|
void |
addShapeCollection(MQAShapeCollection points)
|
void |
addShapeRemovedHandler(ShapeRemovedHandler handler)
|
void |
addShapes(MQAShapeCollection points)
Adds the specified shape collection's shapes to the map's default collection |
void |
addZoomEndHandler(ZoomEndHandler handler)
|
void |
bestFit()
|
void |
bestFit(boolean keepCenter)
|
void |
bestFit(boolean keepCenter,
int minZoomLevel)
|
void |
bestFit(boolean keepCenter,
int minZoomLevel,
int maxZoomLevel)
|
void |
bestFitLL(
|
void |
bestFitLL(
|
void |
bestFitLL(
|
void |
bestFitLL(
|
int |
getBestFitMargin()
|
MQARectLL |
getBounds()
|
MQAPoi |
getByKey(java.lang.String key)
|
MQALatLng |
getCenter()
|
MQADeclutter |
getDeclutter()
|
boolean |
getDragEnabled()
|
MQAPoint |
getDragOffset()
|
MQAInfoWindow |
getInfoWindow()
|
boolean |
getMapShadowState()
|
java.lang.String |
getMapType()
|
boolean |
getRolloversEnabled()
|
MQARolloverWindow |
getRolloverWindow()
|
java.lang.String |
getRouteSession()
|
int |
getScale()
Returns the current scale of the map based on zoom level. |
MQAShapeCollection |
getShapeCollection(java.lang.String name)
|
int |
getShapeCollectionCount()
|
JsArrayString |
getShapeCollectionNames()
|
|
getShapeCollections()
|
MQAShapeCollection |
getShapes(boolean onlyPois)
|
MQASize |
getSize()
|
int |
getZoomLevel()
|
void |
hideStaticMap()
|
MQAPoint |
llToPix(MQALatLng point)
Function to convert geographical coordinates to pixel coordinates relative to the current map displayed. |
static MQATileMap |
newInstance(Element container)
|
static MQATileMap |
newInstance(Element container,
int zoomLevel,
MQALatLng center,
java.lang.String mapType)
|
void |
openInfoWindow(MQAPoint point)
|
void |
panEast(int percentage)
|
void |
panNorth(int percentage)
|
void |
panNorthEast(int percentage)
|
void |
panNorthWest(int percentage)
|
void |
panSouth(int percentage)
|
void |
panSouthEast(int percentage)
|
void |
panSouthWest(int percentage)
|
void |
panToLatLng(MQALatLng latLng)
|
void |
panWest(int percentage)
|
MQALatLng |
pixToLL(MQAPoint point)
Converts pixel coordinates to geographical coordinates relative to the current map displayed. |
void |
removeAllShapes()
Removes all shapes from the map's default collection. |
void |
removeControl(MQAControl control)
|
void |
removeRouteHighlight()
|
void |
removeShape(MQAAbstractShape shape)
Removes the specified shape from the map's default collection. |
void |
removeShapeCollection(java.lang.String collectionName)
|
boolean |
replaceShapeCollection(MQAShapeCollection newCollection,
java.lang.String nameOfOldCollection)
|
boolean |
replaceShapes(MQAShapeCollection newCollection)
Replaces the shapes in the map's current default collection with the shapes in the specified collection. |
void |
restoreState()
|
void |
saveState()
|
void |
setBestFitMargin(int marginPixels)
|
void |
setCenter(MQALatLng centerLatLng)
|
void |
setCenter(MQALatLng centerLatLng,
int newZoomLevel)
|
void |
setDragEnabled(boolean enabled)
|
void |
setInfoContentElement(Element contentContainer)
|
void |
setInfoContentHTML(java.lang.String content)
|
void |
setInfoTitleElement(Element element)
|
void |
setInfoTitleHTML(java.lang.String title)
|
void |
setMapShadowState(boolean showShadows)
|
void |
setMapType(java.lang.String type)
|
void |
setRolloversEnabled(boolean enabled)
|
void |
setSize()
|
void |
setSize(MQASize size)
|
void |
setZoomLevel(int level)
Zoom the map to the specified zoom level. |
void |
showStaticMap()
|
void |
zoomIn()
|
void |
zoomOut()
|
void |
zoomToRect(MQARectLL boundary)
Zoom the map to the closest zoom level that fits the specified rectangle. |
void |
zoomToRect(MQARectLL boundary,
boolean keepCenter)
Zoom the map to the closest zoom level that fits the specified rectangle. |
void |
zoomToRect(MQARectLL boundary,
boolean keepCenter,
int minZoom)
Zoom the map to the closest zoom level that fits the specified rectangle. |
void |
zoomToRect(MQARectLL boundary,
boolean keepCenter,
int minZoom,
int maxZoom)
Zoom the map to the closest zoom level that fits the specified rectangle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TYPE_MAP
public static final java.lang.String TYPE_SAT
public static final java.lang.String TYPE_HYP
| Constructor Detail |
|---|
protected MQATileMap()
| Method Detail |
|---|
public static MQATileMap newInstance(Element container)
public static MQATileMap newInstance(Element container,
int zoomLevel,
MQALatLng center,
java.lang.String mapType)
public final void addControl(MQAControl control)
public final void removeControl(MQAControl control)
public final void addShape(MQAAbstractShape point)
point - public final void addShapes(MQAShapeCollection points)
points - public final void removeShape(MQAAbstractShape shape)
shape - public final boolean replaceShapes(MQAShapeCollection newCollection)
newCollection -
public final void removeAllShapes()
public final MQALatLng getCenter()
public final void setCenter(MQALatLng centerLatLng)
public final void setCenter(MQALatLng centerLatLng,
int newZoomLevel)
public final MQAPoint getDragOffset()
public final java.lang.String getMapType()
public final void setMapType(java.lang.String type)
type - The map type to set. Valid values are 'map', 'sat', and 'hyb'.public final MQALatLng pixToLL(MQAPoint point)
point -
public final MQAPoint llToPix(MQALatLng point)
point -
public final void zoomIn()
public final void zoomOut()
public final int getZoomLevel()
public final void setZoomLevel(int level)
level - public final void zoomToRect(MQARectLL boundary)
boundary -
public final void zoomToRect(MQARectLL boundary,
boolean keepCenter)
boundary - keepCenter -
public final void zoomToRect(MQARectLL boundary,
boolean keepCenter,
int minZoom)
boundary - keepCenter - minZoom -
public final void zoomToRect(MQARectLL boundary,
boolean keepCenter,
int minZoom,
int maxZoom)
boundary - keepCenter - minZoom - maxZoom - public final int getScale()
public final void bestFit()
public final void bestFit(boolean keepCenter)
public final void bestFit(boolean keepCenter,
int minZoomLevel)
public final void bestFit(boolean keepCenter,
int minZoomLevel,
int maxZoomLevel)
public final void bestFitLL(latLngArray)
public final void bestFitLL(latLngArray, boolean keepCenter)
public final void bestFitLL(latLngArray, boolean keepCenter, int minZoomLevel)
public final void bestFitLL(latLngArray, boolean keepCenter, int minZoomLevel, int maxZoomLevel)
public final void panToLatLng(MQALatLng latLng)
public final MQARolloverWindow getRolloverWindow()
public final MQAInfoWindow getInfoWindow()
public final void setInfoTitleHTML(java.lang.String title)
public final void setInfoContentHTML(java.lang.String content)
public final void setInfoTitleElement(Element element)
public final void setInfoContentElement(Element contentContainer)
public final void openInfoWindow(MQAPoint point)
public final void setRolloversEnabled(boolean enabled)
public final boolean getRolloversEnabled()
public final void setDragEnabled(boolean enabled)
public final boolean getDragEnabled()
public final MQAShapeCollection getShapes(boolean onlyPois)
public final MQASize getSize()
public final void setSize()
public final void setSize(MQASize size)
public final void addRouteHighlight(MQARectLL boundingBox,
java.lang.String mapServerUrl,
java.lang.String sessionID,
boolean bestFit)
public final void removeRouteHighlight()
public final java.lang.String getRouteSession()
public final MQARectLL getBounds()
public final void restoreState()
public final void saveState()
public final MQADeclutter getDeclutter()
public final void showStaticMap()
public final void hideStaticMap()
public final void setBestFitMargin(int marginPixels)
public final int getBestFitMargin()
public final void panNorth(int percentage)
public final void panSouth(int percentage)
public final void panEast(int percentage)
public final void panWest(int percentage)
public final void panNorthWest(int percentage)
public final void panSouthWest(int percentage)
public final void panNorthEast(int percentage)
public final void panSouthEast(int percentage)
public final void addShapeCollection(MQAShapeCollection points)
public final void removeShapeCollection(java.lang.String collectionName)
public final boolean replaceShapeCollection(MQAShapeCollection newCollection,
java.lang.String nameOfOldCollection)
public final MQAShapeCollection getShapeCollection(java.lang.String name)
public finalgetShapeCollections()
public final JsArrayString getShapeCollectionNames()
public final int getShapeCollectionCount()
public final void setMapShadowState(boolean showShadows)
public final boolean getMapShadowState()
public final MQAPoi getByKey(java.lang.String key)
public final void addInfoWindowCloseHandler(InfoWindowCloseHandler handler)
addInfoWindowCloseHandler in interface HasInfoWindowCloseHandlerspublic final void addInfoWindowOpenHandler(InfoWindowOpenHandler handler)
addInfoWindowOpenHandler in interface HasInfoWindowOpenHandlerspublic final void addShapeAddedHandler(ShapeAddedHandler handler)
addShapeAddedHandler in interface HasShapeAddedHandlerspublic final void addShapeRemovedHandler(ShapeRemovedHandler handler)
addShapeRemovedHandler in interface HasShapeRemovedHandlerspublic final void addMapClearedHandler(MapClearedHandler handler)
addMapClearedHandler in interface HasMapClearedHandlerspublic final void addMapTypeChangedHandler(MapTypeChangedHandler handler)
addMapTypeChangedHandler in interface HasMapTypeChangedHandlerspublic final void addMoveEndHandler(MoveEndHandler handler)
addMoveEndHandler in interface HasMoveEndHandlerspublic final void addMoveHandler(MoveHandler handler)
addMoveHandler in interface HasMoveHandlerspublic final void addMoveStartHandler(MoveStartHandler handler)
addMoveStartHandler in interface HasMoveStartHandlerspublic final void addZoomEndHandler(ZoomEndHandler handler)
addZoomEndHandler in interface HasZoomEndHandlers
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||