Navmii SDK  2.2.0
Write yourself a navigation system in iOS
Instance Methods | Class Methods | Properties | List of all members
NMGeoPolyline Class Reference

Inherits NMGeoObject.

Instance Methods

(instancetype) - initWithVertices:
 
(void) - appendVertex:
 
(void) - insertVertex:atIndex:
 
(void) - removeLastVertex
 
(void) - removeVertexAtIndex:
 
(void) - removeAllVertices
 

Class Methods

(instancetype) + geoPolylineWithVertices:
 

Properties

CGFloat width
 
UIColor * color
 
UIImage * textureImage
 
NSInteger vertexCount
 
NMMapCoordinateslastVertex
 
NSArray< NMMapCoordinates * > * vertices
 
- Properties inherited from NMGeoObject
NSUInteger zIndex
 
NSUInteger objectId
 
BOOL hidden
 

Detailed Description

A class representing a polyline that can be drawn on the map.

Method Documentation

◆ appendVertex:()

- (void) appendVertex: (NMMapCoordinates *)  vertex

Adds a vertex to the end of the receiver’s list of vertices.

◆ geoPolylineWithVertices:()

+ (instancetype) geoPolylineWithVertices: (NSArray< NMMapCoordinates * > *)  vertices

◆ initWithVertices:()

- (instancetype) initWithVertices: (NSArray< NMMapCoordinates * > *)  vertices

◆ insertVertex:atIndex:()

- (void) insertVertex: (NMMapCoordinates *)  vertex
atIndex: (NSUInteger)  index 

Inserts a vertex at the specified index.

◆ removeAllVertices()

- (void) removeAllVertices

Removes all vertex from list of vertices.

◆ removeLastVertex()

- (void) removeLastVertex

Removes the last vertex from list of vertices.

◆ removeVertexAtIndex:()

- (void) removeVertexAtIndex: (NSUInteger)  index

Removes a vertex at the specified index.

Property Documentation

◆ color

- (UIColor*) color
readwritenonatomicstrong

The color of the polyline. If the textureImagePath property is set, the color property defines the color mask which is applied to the texture.

◆ lastVertex

- (NMMapCoordinates*) lastVertex
readnonatomiccopy

Returns the last vertex in the polyline.

◆ textureImage

- (UIImage*) textureImage
readwritenonatomicstrong

Texture image which should be used to draw polyline.

◆ vertexCount

- (NSInteger) vertexCount
readnonatomicassign

Number of vertices in the polyline.

◆ vertices

- (NSArray<NMMapCoordinates *>*) vertices
readnonatomiccopy

List of vertices.

◆ width

- (CGFloat) width
readwritenonatomicassign

Width of the polyline.