MSFLine

Objective-C


@interface MSFLine : MSFVectorElement

Swift

class MSFLine : MSFVectorElement

A geometric line string that can be displayed on the map.

  • Constructs a Line object from a geometry object and a style.

    Declaration

    Objective-C

    - (id)initWithGeometry:(MSFLineGeometry *)geometry style:(MSFLineStyle *)style;

    Swift

    init!(geometry: MSFLineGeometry!, style: MSFLineStyle!)

    Parameters

    geometry

    The geometry object that defines the location of this line.

    style

    The style that defines what this line looks like.

  • Constructs a Line object from a vector of map positions and a style.

    Declaration

    Objective-C

    - (id)initWithPoses:(MSFMapPosVector *)poses style:(MSFLineStyle *)style;

    Swift

    init!(poses: MSFMapPosVector!, style: MSFLineStyle!)

    Parameters

    poses

    The vector of map positions that defines the location of this line.

    style

    The style that defines what this line looks like.

  • Undocumented

    Declaration

    Objective-C

    - (MSFLineGeometry *)getGeometry;

    Swift

    func getGeometry() -> MSFLineGeometry!
  • Sets the location for this line.

    Declaration

    Objective-C

    - (void)setGeometry:(MSFLineGeometry *)geometry;

    Swift

    func setGeometry(_ geometry: MSFLineGeometry!)

    Parameters

    geometry

    The new geometry object that defines the location of this line.

  • Returns the vertices that define this line.

    Declaration

    Objective-C

    - (MSFMapPosVector *)getPoses;

    Swift

    func getPoses() -> MSFMapPosVector!

    Return Value

    The vector of map positions that defines this line.

  • Sets the vertices that define this line.

    Declaration

    Objective-C

    - (void)setPoses:(MSFMapPosVector *)poses;

    Swift

    func setPoses(_ poses: MSFMapPosVector!)

    Parameters

    poses

    The new vector of map positions that defines this line.

  • Returns the style of this line.

    Declaration

    Objective-C

    - (MSFLineStyle *)getStyle;

    Swift

    func getStyle() -> MSFLineStyle!

    Return Value

    The style that defines what this line looks like.

  • Sets the style for this line.

    Declaration

    Objective-C

    - (void)setStyle:(MSFLineStyle *)style;

    Swift

    func setStyle(_ style: MSFLineStyle!)

    Parameters

    style

    The new style that defines what this line looks like.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;

    Swift

    func dealloc()