MGLTextWritingMode

enum MGLTextWritingMode {}

The property allows control over a symbol’s orientation. Note that the property values act as a hint, so that a symbol whose language doesn’t support the provided orientation will be laid out in its natural orientation. Example: English point symbol will be rendered horizontally even if array value contains single ‘vertical’ enum value. The order of elements in an array define priority order for the placement of an orientation variant.

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

MGLTextWritingModeHorizontal

If a text’s language supports horizontal writing mode, symbols with point placement would be laid out horizontally.

Declaration

Objective-C

MGLTextWritingModeHorizontal

Swift

case horizontal = 0

MGLTextWritingModeVertical

If a text’s language supports vertical writing mode, symbols with point placement would be laid out vertically.

Declaration

Objective-C

MGLTextWritingModeVertical

Swift

case vertical = 1
iOS SDK

SDK JS Reference

On this page