MaplyShapeCircle
Objective-C
@interface MaplyShapeCircle : MaplyShape
Swift
class MaplyShapeCircle : MaplyShape
Shows a circle at the given location on the globe or map.
This object represents a circle at the given geographic location. It needs a radius (in display coordinates) and can optionally have a height above the globe or map.
-
Center of the circle in local coordinates.
This is the center of the circle in geographic.
Declaration
Objective-C
@property (nonatomic) MaplyCoordinate center;
Swift
var center: MaplyCoordinate { get set }
-
Radius of the circle in display units.
This is the radius of the circle, but not in geographic. It’s in display units. Display units for the globe are based on a radius of 1.0. Scale accordingly. For the map, display units typically run from -PI to +PI, depending on the coordinate system.
Declaration
Objective-C
@property (nonatomic) float radius;
Swift
var radius: Float { get set }
-
Offset height above the globe in display units.
This is the height above the globe for the center of the circle. It’s also in display units, like the radius.
Declaration
Objective-C
@property (nonatomic) float height;
Swift
var height: Float { get set }