iOS SDK

API Reference

On This Page

MGLIconTranslationAnchor

enum MGLIconTranslationAnchor {}

Controls the frame of reference for MGLSymbolStyleLayer.iconTranslation.

Values of this type are used in the MGLSymbolStyleLayer.iconTranslationAnchor property.

MGLIconTranslationAnchorMap

Icons are translated relative to the map.

Declaration

Objective-C

MGLIconTranslationAnchorMap

Swift

case map = 0

MGLIconTranslationAnchorViewport

Icons are translated relative to the viewport.

Declaration

Objective-C

MGLIconTranslationAnchorViewport

Swift

case viewport = 1