OptionalcustomImages for mapping to pick by id.
OptionalfinishThe destination's pin.
OptionalmappingThe icon of each waypoint, picked from its data.
fn receives the waypoint as drawn, with its own properties plus its indexType role and the
role's iconID. If it returns undefined, the role's pin stays. A poiCategory draws the
pin PlacesModule draws for that category. A mapped icon carries no
stop mark.
OptionalmiddleThe pin of every stop between origin and destination.
OptionalstartThe origin's pin.
OptionalstyleStyle of all three pins, under each role's own style.
The waypoint pins, one per role (origin, stops, destination), each in the SDK's pin or an image of your own, plus an optional icon per waypoint picked from its data.
Remarks
A pin's style is laid over, in order: the route colour as its fill,
style, and the role's ownstyle. A role'simagereplaces its pin, andmappingreplaces the role's icon for the waypoints it returns an id or category for.Example