onSegmentSelected

open fun onSegmentSelected(segment: WaypathSegment, adjustsCamera: Boolean)

Clears previous highlighted step and creates a new polyline/arrowhead for current segment. Fixes map camera to segment.

Parameters

segment

The segment that was selected.

adjustsCamera

true to auto adjust the camera to zoom in and orient to the waypath segment