Path
A Path is an Element that can show a route between two or more
Coordinates on the map. This is used to help route a patron to
their desired location.
-
The width of the
Path, in MetersDeclaration
Swift
public fileprivate(set) var width: Float { get } -
The height of the
Pathin MetersDeclaration
Swift
public fileprivate(set) var height: Float { get } -
The color which the
Pathis drawn inDeclaration
Swift
public fileprivate(set) var color: UIColor { get } -
The color which the
Pathpulse is drawn inDeclaration
Swift
public fileprivate(set) var pulseColor: UIColor { get } -
How many path pulses to show before stopping the pulse None means unlimited
Declaration
Swift
public fileprivate(set) var pulseLimit: Optional<Int> { get } -
If the pulse is enabled or not.
Declaration
Swift
public fileprivate(set) var pulseEnabled: Bool { get } -
The time in second that it takes for the pulse to travel from the start of the path to the end.
Declaration
Swift
public fileprivate(set) var pulseTime: Float { get } -
Initialize a new
Pathobject.Declaration
Swift
public init(points: [Coordinate], width: Float, height: Float, color: UIColor, pulseEnabled: Bool = false, pulseColor: UIColor = UIColor.white, pulseLimit: Optional<Int> = 10, pulseTime: Float = 2.0)Parameters
pointsAn array of
Coordinatesthat describe the pathwidthThe width of the Path, in Meters
heightThe height of the Path, in Meters
colorThe color of the Path, see
UIColorpulseEnabledif the path should have a pulse
pulseColorthe color of the pulse, defaults to white.
pulseLimitA limit on the number of pulses, defaults to 10 a value of None will be unlimited.
pulseSpeedThe time in second that it takes for the pulse to travel from the start of the path to the end.
View on GitHub
Path Class Reference