public class DirectionsRenderer extends MapObject
| Modifier and Type | Method and Description |
|---|---|
DirectionsResult |
getDirections()
Returns the renderer's current set of directions.
|
int |
getRouteIndex()
Returns the current (zero-based) route index in use by this DirectionsRenderer object.
|
void |
setDirections(DirectionsResult result)
Set the renderer to use the result from the DirectionsService.
|
void |
setOptions(DirectionsRendererOptions options)
Change the options settings of this DirectionsRenderer after initialization.
|
void |
setRouteIndex(int index)
Set the (zero-based) index of the route in the DirectionsResult object to render.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updatePropertypublic void setDirections(DirectionsResult result)
result - new directions setgetDirections()@Nullable public DirectionsResult getDirections()
setDirections(com.teamdev.jxmaps.DirectionsResult)public int getRouteIndex()
setRouteIndex(int)public void setRouteIndex(int index)
index - new index valuegetRouteIndex()public void setOptions(DirectionsRendererOptions options)
options - new options