addItinerary

fun addItinerary(itinerary: Itinerary, options: ItineraryOptions = ItineraryOptions()): Itinerary?

Adds an itinerary to be drawn on the map.

Return

The added itinerary if it was added successfully, null otherwise.

Parameters

itinerary

The itinerary to add.

options

Visual rendering options for the itinerary line. Defaults to ItineraryOptions().