CartoType iOS API 7.8.2, 2022-03-25
for development in Swift and Objective C for iOS and Mac OS
|
#import <CartoTypeBase.h>
Instance Methods | |
(id) | - initWithType:andLayer:andCoordType: |
(void) | - dealloc |
(void) | - appendX:andY: |
(void) | - appendX:andY:andPointType: |
(void) | - beginContour |
(void *) | - getGeometry |
Properties | |
uint32_t | mapHandle |
NSString * | layer |
double | radius |
CartoTypeCoordType | radiusCoordType |
uint32_t | intAttrib |
NSString * | stringAttrib |
uint64_t | objectId |
bool | replace |
Parameters used when inserting a map object into a writable map. After creating the parameter object, add points and optionally set other parameters, then call one of the functions which insert objects.
- (void) appendX: | (double) | aX | |
andY: | (double) | aY | |
Adds a new point to the object's geometry.
- (void) appendX: | (double) | aX | |
andY: | (double) | aY | |
andPointType: | (CartoTypePointType) | aPointType | |
Adds a new point to the object's geometry, specifying the point type as well as the coordinates.
- (void) beginContour |
Starts a new contour; use this if the object is made of multiple contours.
- (void) dealloc |
Destroys the parameter object.
- (void *) getGeometry |
(for internal use) Gets a pointer to the underlying C++ geometry object.
- (id) initWithType: | (CartoTypeMapObjectType) | aType | |
andLayer: | (NSString *) | aLayer | |
andCoordType: | (CartoTypeCoordType) | aCoordType | |
Initializes the parameter object with an object type, layer name and the coordinate type to be used when adding points.
|
readwritenonatomicassign |
Integer attribute value (default = 0).
|
readwritenonatomicstrong |
The name of the layer.
|
readwritenonatomicassign |
The map handle: 0 can be used for the writable in-memory map.
|
readwritenonatomicassign |
The object identifier (default = 0); if it is zero an identifier is assigned and returned in this property
|
readwritenonatomicassign |
The radius (default = 0); if it is greater than zero a a point object is turned into a circle of the given radius, and a line or polygon is turned into an envelope.
|
readwritenonatomicassign |
The coordinate type of the radius (default = MapMeterCoordType).
|
readwritenonatomicassign |
If true (the default) replace the object if its ID is a duplicate of that of an existing object.
|
readwritenonatomicstrong |
String attributes if any (default = null); if there are no string attributes this value map be null.