Description Usage Arguments Value Examples
Function to return a list of the desired drawing options - you can set colours, line weights and dash styles for each transport type, whether to show the source and target markers, and whether to show transfers between different modes of transport.
1 2 3 4 5 6 | routeDrawOptions(showMarkers = TRUE, showTransfers = TRUE,
walkColour = "green", walkWeight = 5, walkDashArray = "1,10",
carColour = "blue", carWeight = 5, carDashArray = NULL,
bikeColour = "orange", bikeWeight = 5, bikeDashArray = NULL,
transitColour = "red", transitWeight = 5, transitDashArray = NULL,
transferColour = "blue", transferRadius = 10)
|
showMarkers |
Whether to show the source/target markers. |
showTransfers |
whether to highlight transfers between different modes of transport. |
walkColour, bikeColour, carColour, transitColour |
Set the line colours. |
walkWeight, bikeWeight, carWeight, transitWeight |
Set the line weights. |
walkDashArray, bikeDashArray, carDashArray, transitDashArray |
Set the dash styles. |
transferColour |
Set the colour of transfer markers. |
transferRadius |
Set the size of transfer markers. |
A list of options governing how the routes are drawn on the map.
1 2 | # show the list
routeDrawOptions()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.