Navmii SDK
2.2.0
Write yourself a navigation system in iOS
|
Inherits NMGeoObject.
Instance Methods | |
(instancetype) | - initWithVertices: |
(void) | - appendVertex: |
(void) | - insertVertex:atIndex: |
(void) | - removeLastVertex |
(void) | - removeVertexAtIndex: |
(void) | - removeAllVertices |
(void) | - addHole: |
(void) | - removeHoleAtIndex: |
(void) | - removeAllHoles |
Class Methods | |
(instancetype) | + geoPolygonWithVertices: |
Properties | |
UIColor * | fillColor |
UIColor * | strokeColor |
CGFloat | strokeWidth |
NSInteger | vertexCount |
NMMapCoordinates * | lastVertex |
NSArray< NMMapCoordinates * > * | vertices |
NSArray< NSArray< NMMapCoordinates * > * > * | holes |
Properties inherited from NMGeoObject | |
NSUInteger | zIndex |
NSUInteger | objectId |
BOOL | hidden |
A class representing a polygon that can be drawn on the map.
- (void) addHole: | (NSArray< NMMapCoordinates * > *) | vertices |
Adds a hole, as an array of coordinates, to the polygon.
- (void) appendVertex: | (NMMapCoordinates *) | vertex |
Adds a vertex to the end of the receiver’s list of vertices.
+ (instancetype) geoPolygonWithVertices: | (NSArray< NMMapCoordinates * > *) | vertices |
- (instancetype) initWithVertices: | (NSArray< NMMapCoordinates * > *) | vertices |
- (void) insertVertex: | (NMMapCoordinates *) | vertex | |
atIndex: | (NSUInteger) | index | |
Inserts a vertex at the specified index.
- (void) removeAllHoles |
Removes all holes added to the polygon.
- (void) removeAllVertices |
Removes all vertices of the polygon.
- (void) removeHoleAtIndex: | (NSUInteger) | index |
Removes a hole at the specified index. Holes are indexed in the order they were added.
- (void) removeLastVertex |
Removes the last vertex from list of vertices.
- (void) removeVertexAtIndex: | (NSUInteger) | index |
Removes a vertex at the specified index.
|
readwritenonatomicstrong |
The fill color of the polygon.
|
readnonatomiccopy |
List of holes.
|
readnonatomiccopy |
Returns the last vertex in the polygon.
|
readwritenonatomicstrong |
The stroke color of the polygon.
|
readwritenonatomicassign |
The stroke width of the polygon.
|
readnonatomicassign |
Number of vertices in the polygon.
|
readnonatomiccopy |
List of vertices.