iOS SDK

API Reference

On This Page

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

MGLLightAnchorViewport

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

Declaration

Objective-C

MGLLightAnchorViewport

Swift

case viewport = 1