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
iOS SDK

SDK JS Reference

On this page