MaplyShape
Objective-C
@interface MaplyShape : NSObject
Swift
class MaplyShape : NSObject
Maply Shape is the base class for the actual shape objects.
The maply shape is just the base class. Look to MaplyShapeCircle, MaplyShapeCylinder, MaplyShapeSphere, MaplyShapeGreatCircle, and MaplyShapeLinear.
-
The color of the shape.
We can set object color in the NSDictionary passed in with the add method. We can also override that here.
Declaration
Objective-C
@property (nonatomic, strong) UIColor * __nullable color
Swift
var color: UnsafeMutablePointer<Int32>? { get set }
-
If set, the object is selectable
The object is selectable if this is set when the object is passed in to an add call. If not set, you’ll never see it in selection.
Declaration
Objective-C
@property (nonatomic) _Bool selectable;
Swift
var selectable: Bool { get set }
-
User data object for selection
When the user selects a feature and the developer gets it in their delegate, this is an object they can use to figure out what the shape means to them.
Declaration
Objective-C
@property (nonatomic, strong) id _Nullable userObject;
Swift
var userObject: Any? { get set }
-
If set, this shape is in clip coordinates and will not be transformed.
Some objects (the rectangle) can be used as overlays in clip coordinates. This is set if that’s the case.
Declaration
Objective-C
@property (nonatomic) _Bool clipCoords;
Swift
var clipCoords: Bool { get set }