Class: IWManeuvers

IWManeuvers

A class for interacting with the maneuvers (turn restrictions) Lists and draws turn restrictions on the map

new IWManeuvers()

Methods


_addArrows(coordinates)

Adds an arrow to the end of the polyline. It does this by adding two points at the end of the polyline
Parameters:
Name Type Description
coordinates Array.<IWCoordinate>
Returns:
Type
Array.<IWCoordinate>

draw()

Retrieves a list of all maneuvers for the current view

getList(doElongate, addArrows, autoRefresh, payload, minimumLevel)

Retrieves a list of all maneuvers for the current view
Parameters:
Name Type Description
doElongate boolean should the lengths of the segments be adjusted if they're too small?
addArrows boolean should the segments include an arrowhead in the polyline?
autoRefresh boolean is it an one time action or should the list get refreshed when the map view changes?
payload *
minimumLevel number | undefined