# MGLLightAnchor

    enum MGLLightAnchor {}

Whether extruded geometries are lit relative to the map or viewport.

- `MGLLightAnchorMap`

  The position of the light source is aligned to the rotation of the map.

  #### Declaration

  Objective-C

      MGLLightAnchorMap

  Swift

      case map = 0

  View Source on GitHub
- `MGLLightAnchorViewport`

  The position of the light source is aligned to the rotation of the viewport.

  #### Declaration

  Objective-C

      MGLLightAnchorViewport

  Swift

      case viewport = 1

  View Source on GitHub