public class DirectionsRendererOptions extends MapObject
Constructor and Description |
---|
DirectionsRendererOptions()
Creates new DirectionsRendererOptions object
|
DirectionsRendererOptions(Map map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
DirectionsResult |
getDirections()
Returns value of directions property.
|
boolean |
getDraggable()
Returns value of draggable property.
|
boolean |
getHideRouteList()
Returns value of hideRouteList property.
|
InfoWindow |
getInfoWindow()
Returns value of infoWindow property.
|
MarkerOptions |
getMarkerOptions()
Returns value of markerOptions property.
|
PolylineOptions |
getPolylineOptions()
Returns value of polylineOptions property.
|
boolean |
getPreserveViewport()
Returns value of preserveViewport property.
|
int |
getRouteIndex()
Returns value of routeIndex property.
|
boolean |
getSuppressBicyclingLayer()
Returns value of suppressBicyclingLayer property.
|
boolean |
getSuppressInfoWindows()
Returns value of suppressInfoWindows property.
|
boolean |
getSuppressMarkers()
Returns value of suppressMarkers property.
|
boolean |
getSuppressPolylines()
Returns value of suppressPolylines property.
|
void |
setDirections(DirectionsResult value)
Sets new value for directions property.
|
void |
setDraggable(boolean value)
Sets new value for draggable property.
|
void |
setHideRouteList(boolean value)
Sets new value for getHideRouteList property.
|
void |
setInfoWindow(InfoWindow value)
Sets new value for infoWindow property.
|
void |
setMarkerOptions(MarkerOptions value)
Sets new value for markerOptions property.
|
void |
setPolylineOptions(PolylineOptions value)
Sets new value for polylineOptions property.
|
void |
setPreserveViewport(boolean value)
Sets new value for preserveViewport property.
|
void |
setRouteIndex(int value)
Sets new value for routeIndex property.
|
void |
setSuppressBicyclingLayer(boolean value)
Sets new value for suppressBicyclingLayer property.
|
void |
setSuppressInfoWindows(boolean value)
Sets new value for suppressInfoWindows property.
|
void |
setSuppressMarkers(boolean value)
Sets new value for suppressMarkers property.
|
void |
setSuppressPolylines(boolean value)
Sets new value for suppressPolylines property.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public DirectionsRendererOptions()
@Deprecated public DirectionsRendererOptions(Map map)
map
- owner Map objectpublic DirectionsResult getDirections()
Represents the directions to display on the map, retrieved as a DirectionsResult object from DirectionsService.
setDirections(com.teamdev.jxmaps.DirectionsResult)
public void setDirections(DirectionsResult value)
value
- new property valuegetDirections()
public boolean getDraggable()
If true, allows the user to drag and modify the paths of routes rendered by this DirectionsRenderer.
setDraggable(boolean)
public void setDraggable(boolean value)
value
- new property valuegetDraggable()
public boolean getHideRouteList()
This property indicates whether the renderer should provide UI to select amongst alternative routes. By default, this flag is false and a user-selectable list of routes will be shown in the directions' associated panel. To hide that list, set hideRouteList to true.
setHideRouteList(boolean)
public void setHideRouteList(boolean value)
value
- new property valuegetHideRouteList()
public boolean getPreserveViewport()
By default, the input map is centered and zoomed to the bounding box of this set of directions. If this option is set to true, the viewport is left unchanged, unless the map's center and zoom were never set.
setPreserveViewport(boolean)
public void setPreserveViewport(boolean value)
value
- new property valuegetPreserveViewport()
public boolean getSuppressBicyclingLayer()
Suppress the rendering of the BicyclingLayer when bicycling directions are requested.
setSuppressBicyclingLayer(boolean)
public void setSuppressBicyclingLayer(boolean value)
value
- new property valuegetSuppressBicyclingLayer()
public boolean getSuppressInfoWindows()
Suppress the rendering of info windows.
setSuppressInfoWindows(boolean)
public void setSuppressInfoWindows(boolean value)
value
- new property valuegetSuppressInfoWindows()
public boolean getSuppressMarkers()
Suppress the rendering of markers.
setSuppressMarkers(boolean)
public void setSuppressMarkers(boolean value)
value
- new property valuegetSuppressMarkers()
public boolean getSuppressPolylines()
Suppress the rendering of polylines.
setSuppressPolylines(boolean)
public void setSuppressPolylines(boolean value)
value
- new property valuegetSuppressPolylines()
public int getRouteIndex()
Represents the index of the route within the DirectionsResult object. The default value is 0.
setRouteIndex(int)
public void setRouteIndex(int value)
value
- new property valuegetRouteIndex()
public InfoWindow getInfoWindow()
Represents the InfoWindow in which to render text information when a marker is clicked. Existing info window content will be overwritten and its position moved. If no info window is specified, the DirectionsRenderer will create and use its own info window. This property will be ignored if suppressInfoWindows is set to true.
setInfoWindow(com.teamdev.jxmaps.InfoWindow)
public void setInfoWindow(InfoWindow value)
value
- new property valuegetInfoWindow()
public MarkerOptions getMarkerOptions()
Represents options for the markers. All markers rendered by the DirectionsRenderer will use these options.
setMarkerOptions(com.teamdev.jxmaps.MarkerOptions)
public void setMarkerOptions(MarkerOptions value)
value
- new property valuegetMarkerOptions()
public PolylineOptions getPolylineOptions()
Represents options for the polylines. All polylines rendered by the DirectionsRenderer will use these options.
setPolylineOptions(com.teamdev.jxmaps.PolylineOptions)
public void setPolylineOptions(PolylineOptions value)
value
- new property valuegetPolylineOptions()