|
CartoType iOS API 9.2-12-g6c2dcf66f
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 *) | - geometry |
Properties | |
| uint32_t | mapHandle |
| NSString * | layer |
| double | radius |
| double | radiusX |
| double | radiusY |
| CtCoordType | radiusCoordType |
| double | rotationDegrees |
| CtFeatureInfo * | featureInfo |
| 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: | (CtPointType) | 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 *) geometry |
(for internal use) Gets a pointer to the underlying C++ geometry object.
| - (id) initWithType: | (CtMapObjectType) | aType | |
| andLayer: | (NSString *) | aLayer | |
| andCoordType: | (CtCoordType) | aCoordType | |
Initializes the parameter object with an object type, layer name and the coordinate type to be used when adding points.
|
readwritenonatomicstrong |
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 the radius is greater than zero, a point object is turned into a circle with the given radius, and other objects are made into envelopes of that size.
|
readwritenonatomicassign |
The coordinate type of the radii (default = MapMeterCoordType).
|
readwritenonatomicassign |
The X radius (default = 0); if x and y radii are greater than zero, a point object is turned into an ellipse with the given radii.
|
readwritenonatomicassign |
The Y radius (default = 0); if x and y radii are greater than zero, a point object is turned into an ellipse with the given radii.
|
readwritenonatomicassign |
If true (the default) replace the object if its ID is a duplicate of that of an existing object.
|
readwritenonatomicassign |
The rotation in degrees applied to an ellipse map object.
|
readwritenonatomicstrong |
String attributes if any (default = null); if there are no string attributes this value map be null.