MaplyShapeSphere
Objective-C
@interface MaplyShapeSphere : MaplyShape
Swift
class MaplyShapeSphere : MaplyShape
Display a sphere at the given location with the given radius.
This object represents a sphere at the
-
Center of the sphere in local coordinates.
The x and y coordinates correspond to longitude and latitude and are in geographic (radians). The Z value is in display coordinates. For that globe that’s based on a radius of 1.0. Scale accordingly.
Declaration
Objective-C
@property (nonatomic) MaplyCoordinate center;
Swift
var center: MaplyCoordinate { get set }
-
Radius of the sphere in display units.
This is the radius of the sphere, 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 sphere. It’s also in display units, like the radius.
Declaration
Objective-C
@property (nonatomic) float height;
Swift
var height: Float { get set }