Other Structures
MGLSphericalPosition
struct MGLSphericalPosition {}
A structure containing information about the position of the light source relative to lit geometries.
-
radial
Distance from the center of the base of an object to its light.
Declaration
Objective-C
CGFloat radial
Swift
var radial: CGFloat
-
azimuthal
Position of the light relative to 0° (0° when
MGLLight.anchor
is set to viewport corresponds to the top of the viewport, or 0° whenMGLLight.anchor
is set to map corresponds to due north, and degrees proceed clockwise).Declaration
Objective-C
CLLocationDirection azimuthal
Swift
var azimuthal: CLLocationDirection
-
polar
Indicates the height of the light (from 0°, directly above, to 180°, directly below).
Declaration
Objective-C
CLLocationDirection polar
Swift
var polar: CLLocationDirection
MGLTransition
struct MGLTransition {}
A structure containing information about a transition.
-
duration
The amount of time the animation should take, not including the delay.
Declaration
Objective-C
NSTimeInterval duration
Swift
var duration: TimeInterval
-
delay
The amount of time in seconds to wait before beginning the animation.
Declaration
Objective-C
NSTimeInterval delay
Swift
var delay: TimeInterval