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.

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
)

Arguments

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.

Value

A list of options governing how the routes are drawn on the map.

Examples

# show the list routeDrawOptions()
#> $showMarkers #> [1] TRUE #> #> $showTransfers #> [1] TRUE #> #> $walkColour #> [1] "green" #> #> $walkWeight #> [1] 5 #> #> $walkDashArray #> [1] "1,10" #> #> $carColour #> [1] "blue" #> #> $carWeight #> [1] 5 #> #> $bikeColour #> [1] "orange" #> #> $bikeWeight #> [1] 5 #> #> $transitColour #> [1] "red" #> #> $transitWeight #> [1] 5 #> #> $transferColour #> [1] "blue" #> #> $transferRadius #> [1] 10 #>