draw-routes: Draw Routes

Description Usage Arguments Value

Description

Helper functions for drawing different routes.

Usage

1
2
3
4
5
6
7
8
9
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


TargomoR documentation built on Dec. 7, 2019, 1:07 a.m.