Other Enumerations
The following enumerations are available globally.
MGLAttributionInfoStyle
The attribution info is represented in the longest format available.
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.
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.
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.
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.
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.
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.
Declaration
Objective-C
enum MGLHillshadeIlluminationAnchor {}
Swift
enum MGLHillshadeIlluminationAnchor : UInt
MGLLightAnchor
Whether extruded geometries are lit relative to the map or viewport.
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.
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.
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.
Declaration
Objective-C
enum MGLLineTranslationAnchor {}
Swift
enum MGLLineTranslationAnchor : UInt
MGLLoggingLevel
Constants indicating the message’s logging level.
Declaration
Objective-C
enum MGLLoggingLevel {}
Swift
enum MGLLoggingLevel : Int
MGLResourceKind
The type of resource that is requested.
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.
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.
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.
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.
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.
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.
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.
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.
Declaration
Objective-C
enum MGLTextAnchor {}
Swift
enum MGLTextAnchor : UInt
MGLTextJustification
Text justification options.
Values of this type are used in the MGLSymbolStyleLayer.textJustification
property.
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.
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.
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.
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.
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.
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.
Declaration
Objective-C
enum MGLTextTranslationAnchor {}
Swift
enum MGLTextTranslationAnchor : UInt
MGLTileCoordinateSystem
Tile coordinate systems that determine how tile coordinates in tile URLs are interpreted.
Declaration
Objective-C
enum MGLTileCoordinateSystem {}
Swift
enum MGLTileCoordinateSystem : UInt
MGLDEMEncoding
The encoding formula used to generate the raster-dem tileset
Declaration
Objective-C
enum MGLDEMEncoding {}
Swift
enum MGLDEMEncoding : UInt
MGLErrorCode
Error constants for the SDK.
Declaration
Objective-C
enum MGLErrorCode {}
Swift
enum MGLErrorCode : Int
MGLMapDebugMaskOptions
Options for enabling debugging features in an MGLMapView
instance.
Declaration
Objective-C
enum MGLMapDebugMaskOptions {}
Swift
struct MGLMapDebugMaskOptions : OptionSet
MGLOrnamentVisibility
Constants indicating the visibility of different map ornaments.
Declaration
Objective-C
enum MGLOrnamentVisibility {}
Swift
enum MGLOrnamentVisibility : Int
MGLAnnotationViewDragState
These constants indicate the current drag state of an annotation view.
Declaration
Objective-C
enum MGLAnnotationViewDragState {}
Swift
enum MGLAnnotationViewDragState : UInt
MGLAnnotationVerticalAlignment
The vertical alignment of an annotation within a map view. Used with MGLMapView.userLocationVerticalAlignment
.
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
.
Declaration
Objective-C
enum MGLOrnamentPosition {}
Swift
enum MGLOrnamentPosition : UInt
iOS SDK
Examples
SDK JS Reference
- Annotations
- Appendices
- NSExpression(MGLAdditions)
- NSValue(MGLAdditions)
- NSValue(MGLCircleStyleLayerAdditions)
- NSValue(MGLFillExtrusionStyleLayerAdditions)
- NSValue(MGLFillStyleLayerAdditions)
- NSValue(MGLHillshadeStyleLayerAdditions)
- NSValue(MGLLineStyleLayerAdditions)
- NSValue(MGLRasterStyleLayerAdditions)
- NSValue(MGLSymbolStyleLayerAdditions)
- MGLAccountManager
- MGLAnnotationImage
- MGLAnnotationView
- MGLAttributedExpression
- MGLAttributionInfo
- MGLBackgroundStyleLayer
- MGLCircleStyleLayer
- MGLClockDirectionFormatter
- MGLCompassButton
- MGLCompassDirectionFormatter
- MGLComputedShapeSource
- MGLCoordinateFormatter
- MGLDistanceFormatter
- MGLFillExtrusionStyleLayer
- MGLFillStyleLayer
- MGLForegroundStyleLayer
- MGLHeatmapStyleLayer
- MGLHillshadeStyleLayer
- MGLImageSource
- MGLLight
- MGLLineStyleLayer
- MGLLoggingConfiguration
- MGLMapCamera
- MGLMapSnapshot
- MGLMapSnapshotOptions
- MGLMapSnapshotOverlay
- MGLMapSnapshotter
- MGLMapView
- MGLMultiPoint
- MGLMultiPolygon
- MGLMultiPolyline
- MGLNetworkConfiguration
- MGLOfflinePack
- MGLOfflineStorage
- MGLPointAnnotation
- MGLPointCollection
- MGLPolygon
- MGLPolyline
- MGLRasterStyleLayer
- MGLRasterTileSource
- MGLShape
- MGLShapeCollection
- MGLShapeOfflineRegion
- MGLShapeSource
- MGLSource
- MGLStyle
- MGLStyleLayer
- MGLSymbolStyleLayer
- MGLTilePyramidOfflineRegion
- MGLTileSource
- MGLUserLocation
- MGLUserLocationAnnotationView
- MGLUserLocationAnnotationViewStyle
- MGLVectorStyleLayer
- MGLVectorTileSource
- MGLAnnotationVerticalAlignment
- MGLAnnotationViewDragState
- MGLAttributionInfoStyle
- MGLCirclePitchAlignment
- MGLCircleScaleAlignment
- MGLCircleTranslationAnchor
- MGLDEMEncoding
- MGLErrorCode
- MGLFillExtrusionTranslationAnchor
- MGLFillTranslationAnchor
- MGLHillshadeIlluminationAnchor
- MGLIconAnchor
- MGLIconPitchAlignment
- MGLIconRotationAlignment
- MGLIconTextFit
- MGLIconTranslationAnchor
- MGLLightAnchor
- MGLLineCap
- MGLLineJoin
- MGLLineTranslationAnchor
- MGLLoggingLevel
- MGLMapDebugMaskOptions
- MGLOfflinePackState
- MGLOrnamentPosition
- MGLOrnamentVisibility
- MGLRasterResamplingMode
- MGLResourceKind
- MGLSymbolPlacement
- MGLSymbolZOrder
- MGLTextAnchor
- MGLTextJustification
- MGLTextPitchAlignment
- MGLTextRotationAlignment
- MGLTextTransform
- MGLTextTranslationAnchor
- MGLTextWritingMode
- MGLTileCoordinateSystem
- MGLUserTrackingMode
- Formatters
- Geometry
- Location Updates
- Maps
- Offline Maps
- Other Categories
- Other Classes
- Other Constants
- Other Enumerations
- Other Functions
- Other Protocols
- Other Structures
- Other Type Definitions
- Primitive Shapes
- MGLAnnotation
- MGLCalloutView
- MGLCalloutViewDelegate
- MGLCluster
- MGLComputedShapeSourceDataSource
- MGLFeature
- MGLLocationManager
- MGLLocationManagerDelegate
- MGLMapSnapshotterDelegate
- MGLMapViewDelegate
- MGLOfflineRegion
- MGLOfflineStorageDelegate
- MGLOverlay
- MGLStylable
- MGLCoordinateBounds
- MGLCoordinateQuad
- MGLCoordinateSpan
- MGLOfflinePackProgress
- MGLSphericalPosition
- MGLTransition
- Style Content
- Style Layers
- Style Primitives
- Styling the Map
- MGLCoordinateBounds
- MGLCoordinateQuad
- MGLCoordinateSpan
- MGLOfflinePackProgress
- MGLSphericalPosition
- MGLTransition
- User Interaction
- Customizing Fonts
- Information for Style Authors
- Gesture Recognizers
- Info.plist Keys
- Migrating to Expressions
- Predicates and expressions
- Tile URL Templates
- Working with GeoJSON Data