MapViewLine

public struct MapViewLine
extension MapViewLine: Equatable

MapViewLine record the information of a line on the map.

Author

Adamas

Version

1.5.0

Date

05/09/2019
  • Initialize the object.

    Declaration

    Swift

    public init(points: [MapViewPoint],
                color: UIColor = defaultLineColor,
                width: Int = defaultLineWidth,
                pointIcon: UIImage? = nil)

    Parameters

    points

    A list of point list.

    color

    The color of the line.

    width

    The width of the line.

    pointIcon

    The icon for the points on the line. Nil if the point should be shown.

  • Declaration

    Swift

    public static func == (lhs: MapViewLine, rhs: MapViewLine) -> Bool
  • The width of the line.

    Declaration

    Swift

    static let defaultLineColor: UIColor
  • The width of the line.

    Declaration

    Swift

    static let defaultLineWidth: Int