public class DirectionsRendererOptions extends JavaScriptObject
Modifier | Constructor and Description |
---|---|
protected |
DirectionsRendererOptions()
use newInstance();
|
Modifier and Type | Method and Description |
---|---|
DirectionsResult |
getDirections()
The directions to display on the map and/or in a
<div>
panel, retrieved as a DirectionsResult object from DirectionsService. |
boolean |
getDraggable()
If true, allows the user to drag and modify the paths of routes rendered
by this DirectionsRenderer.
|
boolean |
getHideRouteList()
This property indicates whether the renderer should provide UI to select
amongst alternative routes.
|
InfoWindow |
getInfoWindow()
The InfoWindow in which to render text information when a marker is
clicked.
|
MapWidget |
getMap()
Map on which to display the directions.
|
MapWidget |
getMapWidget()
Deprecated.
See
getMap() |
MarkerOptions |
getMarkerOptions()
Options for the markers.
|
Element |
getPanel()
The
<div> in which to display the directions steps. |
PolylineOptions |
getPolylineOptions()
Options for the polylines.
|
boolean |
getPreserveViewport()
By default, the input map is centered and zoomed to the bounding box of
this set of directions.
|
int |
getRouteIndex()
The index of the route within the DirectionsResult object.
|
boolean |
getSuppressBicyclingLayer()
Suppress the rendering of the BicyclingLayer when bicycling directions
are requested.
|
boolean |
getSuppressInfoWindows()
Suppress the rendering of info windows.
|
boolean |
getSuppressMarkers()
Suppress the rendering of markers.
|
boolean |
getSuppressPolylines()
Suppress the rendering of polylines.
|
static DirectionsRendererOptions |
newInstance()
This object defines the properties that can be set on a
DirectionsRenderer object.
|
void |
setDirections(DirectionsResult directions)
The directions to display on the map and/or in a
<div>
panel, retrieved as a DirectionsResult object from DirectionsService. |
void |
setDraggable(boolean draggable)
If true, allows the user to drag and modify the paths of routes rendered
by this DirectionsRenderer.
|
void |
setHideRouteList(boolean hideRouteList)
This property indicates whether the renderer should provide UI to select
amongst alternative routes.
|
void |
setInfoWindow(InfoWindow infoWindow)
The InfoWindow in which to render text information when a marker is
clicked.
|
void |
setMap(MapWidget mapWidget)
Map on which to display the directions.
|
void |
setMarkerOptions(MarkerOptions markerOptions)
Options for the markers.
|
void |
setPanel(Element panel)
The
<div> in which to display the directions steps. |
void |
setPolylineOptions(PolylineOptions polylineOptions)
Options for the polylines.
|
void |
setPreserveViewport(boolean preserveViewport)
By default, the input map is centered and zoomed to the bounding box of
this set of directions.
|
void |
setRouteIndex(int routeIndex)
The index of the route within the DirectionsResult object.
|
void |
setSuppressBicyclingLayer(boolean suppressBicyclingLayer)
Suppress the rendering of the BicyclingLayer when bicycling directions
are requested.
|
void |
setSuppressInfoWindows(boolean suppressInfoWindows)
Suppress the rendering of info windows.
|
void |
setSuppressMarkers(boolean suppressMarkers)
Suppress the rendering of markers.
|
void |
setSuppressPolylines(boolean suppressPolylines)
Suppress the rendering of polylines.
|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
protected DirectionsRendererOptions()
public static final DirectionsRendererOptions newInstance()
public final void setDirections(DirectionsResult directions)
<div>
panel, retrieved as a DirectionsResult object from DirectionsService.directions
- public final DirectionsResult getDirections()
<div>
panel, retrieved as a DirectionsResult object from DirectionsService.public final void setDraggable(boolean draggable)
draggable
- public final boolean getDraggable()
public final void setHideRouteList(boolean hideRouteList)
hideRouteList
- public final boolean getHideRouteList()
public final void setInfoWindow(InfoWindow infoWindow)
infoWindow
- public final InfoWindow getInfoWindow()
public final void setMap(MapWidget mapWidget)
mapWidget
- public final MapWidget getMap()
@Deprecated public final MapWidget getMapWidget()
getMap()
public final void setMarkerOptions(MarkerOptions markerOptions)
markerOptions
- public final MarkerOptions getMarkerOptions()
public final void setPanel(Element panel)
<div>
in which to display the directions steps.panel
- public final Element getPanel()
<div>
in which to display the directions steps.public final void setPolylineOptions(PolylineOptions polylineOptions)
polylineOptions
- public final PolylineOptions getPolylineOptions()
public final void setPreserveViewport(boolean preserveViewport)
preserveViewport
- public final boolean getPreserveViewport()
public final void setRouteIndex(int routeIndex)
routeIndex
- public final int getRouteIndex()
public final void setSuppressBicyclingLayer(boolean suppressBicyclingLayer)
suppressBicyclingLayer
- public final boolean getSuppressBicyclingLayer()
public final void setSuppressInfoWindows(boolean suppressInfoWindows)
suppressInfoWindows
- public final boolean getSuppressInfoWindows()
public final void setSuppressMarkers(boolean suppressMarkers)
suppressMarkers
- public final boolean getSuppressMarkers()
public final void setSuppressPolylines(boolean suppressPolylines)
suppressPolylines
- public final boolean getSuppressPolylines()
Copyright © 2011-2013 Gone Vertical LLC. All Rights Reserved.