iOS SDK

API Reference

On This Page

Other Enumerations

The following enumerations are available globally.

MGLAttributionInfoStyle

The attribution info is represented in the longest format available.

See more

Declaration

Objective-C

enum MGLAttributionInfoStyle {}

Swift

enum MGLAttributionInfoStyle : UInt

MGLCirclePitchAlignment

Orientation of circle when map is pitched.

Values of this type are used in the MGLCircleStyleLayer.circlePitchAlignment property.

See more

Declaration

Objective-C

enum MGLCirclePitchAlignment {}

Swift

enum MGLCirclePitchAlignment : UInt

MGLCircleScaleAlignment

Controls the scaling behavior of the circle when the map is pitched.

Values of this type are used in the MGLCircleStyleLayer.circleScaleAlignment property.

See more

Declaration

Objective-C

enum MGLCircleScaleAlignment {}

Swift

enum MGLCircleScaleAlignment : UInt

MGLCircleTranslationAnchor

Controls the frame of reference for MGLCircleStyleLayer.circleTranslation.

Values of this type are used in the MGLCircleStyleLayer.circleTranslationAnchor property.

See more

Declaration

Objective-C

enum MGLCircleTranslationAnchor {}

Swift

enum MGLCircleTranslationAnchor : UInt

MGLFillExtrusionTranslationAnchor

Controls the frame of reference for MGLFillExtrusionStyleLayer.fillExtrusionTranslation.

Values of this type are used in the MGLFillExtrusionStyleLayer.fillExtrusionTranslationAnchor property.

See more

Declaration

Objective-C

enum MGLFillExtrusionTranslationAnchor {}

Swift

enum MGLFillExtrusionTranslationAnchor : UInt

MGLFillTranslationAnchor

Controls the frame of reference for MGLFillStyleLayer.fillTranslation.

Values of this type are used in the MGLFillStyleLayer.fillTranslationAnchor property.

See more

Declaration

Objective-C

enum MGLFillTranslationAnchor {}

Swift

enum MGLFillTranslationAnchor : UInt

MGLHillshadeIlluminationAnchor

Direction of light source when map is rotated.

Values of this type are used in the MGLHillshadeStyleLayer.hillshadeIlluminationAnchor property.

See more

Declaration

Objective-C

enum MGLHillshadeIlluminationAnchor {}

Swift

enum MGLHillshadeIlluminationAnchor : UInt

MGLLightAnchor

Whether extruded geometries are lit relative to the map or viewport.

See more

Declaration

Objective-C

enum MGLLightAnchor {}

Swift

enum MGLLightAnchor : UInt

MGLLineCap

The display of line endings.

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

See more

Declaration

Objective-C

enum MGLLineCap {}

Swift

enum MGLLineCap : UInt

MGLLineJoin

The display of lines when joining.

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

See more

Declaration

Objective-C

enum MGLLineJoin {}

Swift

enum MGLLineJoin : UInt

MGLLineTranslationAnchor

Controls the frame of reference for MGLLineStyleLayer.lineTranslation.

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

See more

Declaration

Objective-C

enum MGLLineTranslationAnchor {}

Swift

enum MGLLineTranslationAnchor : UInt

MGLLoggingLevel

Constants indicating the message’s logging level.

See more

Declaration

Objective-C

enum MGLLoggingLevel {}

Swift

enum MGLLoggingLevel : Int

MGLResourceKind

The type of resource that is requested.

See more

Declaration

Objective-C

enum MGLResourceKind {}

Swift

enum MGLResourceKind : UInt

MGLRasterResamplingMode

The resampling/interpolation method to use for overscaling, also known as texture magnification filter

Values of this type are used in the MGLRasterStyleLayer.rasterResamplingMode property.

See more

Declaration

Objective-C

enum MGLRasterResamplingMode {}

Swift

enum MGLRasterResamplingMode : UInt

MGLIconAnchor

Part of the icon placed closest to the anchor.

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

See more

Declaration

Objective-C

enum MGLIconAnchor {}

Swift

enum MGLIconAnchor : UInt

MGLIconPitchAlignment

Orientation of icon when map is pitched.

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

See more

Declaration

Objective-C

enum MGLIconPitchAlignment {}

Swift

enum MGLIconPitchAlignment : UInt

MGLIconRotationAlignment

In combination with MGLSymbolStyleLayer.symbolPlacement, determines the rotation behavior of icons.

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

See more

Declaration

Objective-C

enum MGLIconRotationAlignment {}

Swift

enum MGLIconRotationAlignment : UInt

MGLIconTextFit

The directions in which the icon stretches to fit around the text. If the icon image is a resizable image, the resizable areas may be stretched, while the cap insets are always drawn at the original scale.

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

See more

Declaration

Objective-C

enum MGLIconTextFit {}

Swift

enum MGLIconTextFit : UInt

MGLSymbolPlacement

Label placement relative to its geometry.

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

See more

Declaration

Objective-C

enum MGLSymbolPlacement {}

Swift

enum MGLSymbolPlacement : UInt

MGLSymbolZOrder

Controls the order in which overlapping symbols in the same layer are rendered

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

See more

Declaration

Objective-C

enum MGLSymbolZOrder {}

Swift

enum MGLSymbolZOrder : UInt

MGLTextAnchor

Part of the text placed closest to the anchor.

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

See more

Declaration

Objective-C

enum MGLTextAnchor {}

Swift

enum MGLTextAnchor : UInt

MGLTextJustification

Text justification options.

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

See more

Declaration

Objective-C

enum MGLTextJustification {}

Swift

enum MGLTextJustification : UInt

MGLTextPitchAlignment

Orientation of text when map is pitched.

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

See more

Declaration

Objective-C

enum MGLTextPitchAlignment {}

Swift

enum MGLTextPitchAlignment : UInt

MGLTextRotationAlignment

In combination with MGLSymbolStyleLayer.symbolPlacement, determines the rotation behavior of the individual glyphs forming the text.

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

See more

Declaration

Objective-C

enum MGLTextRotationAlignment {}

Swift

enum MGLTextRotationAlignment : UInt

MGLTextTransform

Specifies how to capitalize text.

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

See more

Declaration

Objective-C

enum MGLTextTransform {}

Swift

enum MGLTextTransform : UInt

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.

See more

Declaration

Objective-C

enum MGLTextWritingMode {}

Swift

enum MGLTextWritingMode : UInt

MGLIconTranslationAnchor

Controls the frame of reference for MGLSymbolStyleLayer.iconTranslation.

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

See more

Declaration

Objective-C

enum MGLIconTranslationAnchor {}

Swift

enum MGLIconTranslationAnchor : UInt

MGLTextTranslationAnchor

Controls the frame of reference for MGLSymbolStyleLayer.textTranslation.

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

See more

Declaration

Objective-C

enum MGLTextTranslationAnchor {}

Swift

enum MGLTextTranslationAnchor : UInt

MGLTileCoordinateSystem

Tile coordinate systems that determine how tile coordinates in tile URLs are interpreted.

See more

Declaration

Objective-C

enum MGLTileCoordinateSystem {}

Swift

enum MGLTileCoordinateSystem : UInt

MGLDEMEncoding

The encoding formula used to generate the raster-dem tileset

See more

Declaration

Objective-C

enum MGLDEMEncoding {}

Swift

enum MGLDEMEncoding : UInt

MGLErrorCode

Error constants for the Mapbox SDK.

See more

Declaration

Objective-C

enum MGLErrorCode {}

Swift

enum MGLErrorCode : Int

MGLMapDebugMaskOptions

Options for enabling debugging features in an MGLMapView instance.

See more

Declaration

Objective-C

enum MGLMapDebugMaskOptions {}

Swift

struct MGLMapDebugMaskOptions : OptionSet

MGLOrnamentVisibility

Constants indicating the visibility of different map ornaments.

See more

Declaration

Objective-C

enum MGLOrnamentVisibility {}

Swift

enum MGLOrnamentVisibility : Int

MGLAnnotationViewDragState

These constants indicate the current drag state of an annotation view.

See more

Declaration

Objective-C

enum MGLAnnotationViewDragState {}

Swift

enum MGLAnnotationViewDragState : UInt

MGLAnnotationVerticalAlignment

The vertical alignment of an annotation within a map view. Used with MGLMapView.userLocationVerticalAlignment.

See more

Declaration

Objective-C

enum MGLAnnotationVerticalAlignment {}

Swift

enum MGLAnnotationVerticalAlignment : UInt

MGLOrnamentPosition

The position of scale bar, compass, logo and attribution in a map view. Used with MGLMapView.scaleBarPosition, MGLMapView.compassViewPosition, MGLMapView.logoViewPosition, MGLMapView.attributionButtonPosition.

See more

Declaration

Objective-C

enum MGLOrnamentPosition {}

Swift

enum MGLOrnamentPosition : UInt