Helper functions for drawing different routes.

drawRouteSegment(map, segment, drawOptions, type, group, ...)

drawWalk(map, segment, drawOptions, group, ...)

drawBike(map, segment, drawOptions, group, ...)

drawCar(map, segment, drawOptions, group, ...)

drawTransit(map, segment, drawOptions, group, ...)

Arguments

map

A leaflet map.

segment

A route segment object to draw.

drawOptions

Drawing options provided by routeDrawOptions.

type

What route type to draw.

group

The leaflet map group to add the routes to.

...

Further arguments to pass to leaflet functions.

Value

The map with the route segment/markers drawn on