iOS SDK

API Reference

On This Page

MGLTextTranslationAnchor

enum MGLTextTranslationAnchor {}

Controls the frame of reference for MGLSymbolStyleLayer.textTranslation.

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

MGLTextTranslationAnchorMap

The text is translated relative to the map.

Declaration

Objective-C

MGLTextTranslationAnchorMap

Swift

case map = 0

MGLTextTranslationAnchorViewport

The text is translated relative to the viewport.

Declaration

Objective-C

MGLTextTranslationAnchorViewport

Swift

case viewport = 1