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
geometryThe geometry object that defines the location of this line.
styleThe 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
posesThe vector of map positions that defines the location of this line.
styleThe 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
geometryThe new geometry object that defines the location of this line.
-
Returns the vertices that define this line.
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
posesThe new vector of map positions that defines this line.
-
Returns the style of this line.
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
styleThe new style that defines what this line looks like.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()