MGLSphericalPosition

struct MGLSphericalPosition {}

A structure containing information about the position of the light source relative to lit geometries.

  • Distance from the center of the base of an object to its light.

    Declaration

    Objective-C

    CGFloat radial

    Swift

    var radial: CGFloat
  • Position of the light relative to 0° (0° when MGLLight.anchor is set to viewport corresponds to the top of the viewport, or 0° when MGLLight.anchor is set to map corresponds to due north, and degrees proceed clockwise).

    Declaration

    Objective-C

    CLLocationDirection azimuthal

    Swift

    var azimuthal: CLLocationDirection
  • Indicates the height of the light (from 0°, directly above, to 180°, directly below).

    Declaration

    Objective-C

    CLLocationDirection polar

    Swift

    var polar: CLLocationDirection