|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.maps.client.geocode.DirectionQueryOptions
public final class DirectionQueryOptions
A class that stores parameters used to create a new instance of the Directions object.
Constructor Summary | |
---|---|
DirectionQueryOptions()
Create an options object with default parameters. |
|
DirectionQueryOptions(MapWidget map)
Create an options object with default parameters associated with a particular map. |
|
DirectionQueryOptions(MapWidget map,
DirectionsPanel panel)
Create an options object with default parameters associated with a particular map and a panel to put the textual directions in. |
Method Summary | |
---|---|
void |
setLocale(java.lang.String locale)
The locale to use for the directions result. |
void |
setPreserveViewport(boolean preserveViewport)
By default, when a Directions object has a map, the map is centered and zoomed to the bounding box of the the directions result. |
void |
setRetrievePolyline(boolean retrievePolyline)
By default, the Directions.load*() methods fetch polyline data only if a map is attached to the Directions object. |
void |
setRetrieveSteps(boolean retrieveSteps)
By default, the Directions.load*() methods fetch steps data only if a panel is attached to the Directions object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectionQueryOptions()
public DirectionQueryOptions(MapWidget map)
map
- the map to draw directions on.public DirectionQueryOptions(MapWidget map, DirectionsPanel panel)
map
- panel
- Method Detail |
---|
public void setLocale(java.lang.String locale)
locale
- the locale to use for directions results.public void setPreserveViewport(boolean preserveViewport)
true
, the viewport is left alone for this
request.
preserveViewport
- pass true
to leave alone the
viewport (do not center).public void setRetrievePolyline(boolean retrievePolyline)
retrievePolyline
- pass true
to retrieve polyline data
even when a map is not attached to the Directions object.public void setRetrieveSteps(boolean retrieveSteps)
retrieveSteps
- pass true
to retrieve steps data even
when a panel is not attached to the Directions object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |