Polygon on the location view in WGS84 coordinates. More...
#include <com/navigine/idl/objc/NCLocationPolygon.h>
Inherits NSObject.
Instance Methods | |
| (nonnull instancetype) | - initWithPoints:sublocationId:innerRings: |
| Default constructor for class NCLocationPolygon. | |
Class Methods | |
| (nonnull instancetype) | + locationPolygonWithPoints:sublocationId:innerRings: |
| Factory method for class NCLocationPolygon. | |
Properties | |
| NSArray< NCGlobalPoint * > * | points |
| Outer ring vertices in WGS84 GlobalPoint. | |
| NSNumber * | sublocationId |
| Floor this polygon is attached to, or null for the outdoor map. | |
| NSArray< NSArray< NCGlobalPoint * > * > * | innerRings |
| Holes. Each ring is WGS84 GlobalPoint. Empty means a solid polygon. | |
Polygon on the location view in WGS84 coordinates.
points is the outer ring. innerRings are holes (as in GeoJSON: first ring outer, the rest holes). An empty list is a solid polygon.
Swift code snippet:
Objective C code snippet:
Definition at line 30 of file NCLocationPolygon.h.
| - (nonnull instancetype) initWithPoints: | (nonnull NSArray< NCGlobalPoint * > *) | points | |
| sublocationId: | (nullable NSNumber *) | sublocationId | |
| innerRings: | (nonnull NSArray< NSArray< NCGlobalPoint * > * > *) | innerRings |
Default constructor for class NCLocationPolygon.
| + (nonnull instancetype) locationPolygonWithPoints: | (nonnull NSArray< NCGlobalPoint * > *) | points | |
| sublocationId: | (nullable NSNumber *) | sublocationId | |
| innerRings: | (nonnull NSArray< NSArray< NCGlobalPoint * > * > *) | innerRings |
Factory method for class NCLocationPolygon.
|
readnonatomicassign |
Holes. Each ring is WGS84 GlobalPoint. Empty means a solid polygon.
Definition at line 66 of file NCLocationPolygon.h.
|
readnonatomicassign |
Outer ring vertices in WGS84 GlobalPoint.
Definition at line 51 of file NCLocationPolygon.h.
|
readnonatomicassign |
Floor this polygon is attached to, or null for the outdoor map.
Definition at line 58 of file NCLocationPolygon.h.