MGLLineTranslationAnchor

enum MGLLineTranslationAnchor {}

Controls the frame of reference for MGLLineStyleLayer.lineTranslation.

Values of this type are used in the MGLLineStyleLayer.lineTranslationAnchor property.

MGLLineTranslationAnchorMap

The line is translated relative to the map.

Declaration

Objective-C

MGLLineTranslationAnchorMap

Swift

case map = 0

MGLLineTranslationAnchorViewport

The line is translated relative to the viewport.

Declaration

Objective-C

MGLLineTranslationAnchorViewport

Swift

case viewport = 1
iOS SDK

SDK JS Reference

On this page