NSValue(MGLSymbolStyleLayerAdditions)
@interface NSValue (MGLSymbolStyleLayerAdditions)
Methods for wrapping an enumeration value for a style layer attribute in an MGLSymbolStyleLayer
object and unwrapping its raw value.
Working with Symbol Style Layer Attribute Values
+valueWithMGLIconAnchor:
Creates a new value object containing the given MGLIconAnchor
enumeration.
Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLIconAnchor:(MGLIconAnchor)iconAnchor;
Swift
convenience init(mglIconAnchor iconAnchor: MGLIconAnchor)
Parameters
iconAnchor
The value for the new object.
Return Value
A new value object that contains the enumeration value.
MGLIconAnchorValue
The MGLIconAnchor
enumeration representation of the value.
Declaration
Objective-C
@property (atomic, readonly) MGLIconAnchor MGLIconAnchorValue;
Swift
var mglIconAnchorValue: MGLIconAnchor { get }
+valueWithMGLIconPitchAlignment:
Creates a new value object containing the given MGLIconPitchAlignment
enumeration.
Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLIconPitchAlignment:
(MGLIconPitchAlignment)iconPitchAlignment;
Swift
convenience init(mglIconPitchAlignment iconPitchAlignment: MGLIconPitchAlignment)
Parameters
iconPitchAlignment
The value for the new object.
Return Value
A new value object that contains the enumeration value.
MGLIconPitchAlignmentValue
The MGLIconPitchAlignment
enumeration representation of the value.
Declaration
Objective-C
@property (atomic, readonly) MGLIconPitchAlignment MGLIconPitchAlignmentValue;
Swift
var mglIconPitchAlignmentValue: MGLIconPitchAlignment { get }
+valueWithMGLIconRotationAlignment:
Creates a new value object containing the given MGLIconRotationAlignment
enumeration.
Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLIconRotationAlignment:
(MGLIconRotationAlignment)iconRotationAlignment;
Swift
convenience init(mglIconRotationAlignment iconRotationAlignment: MGLIconRotationAlignment)
Parameters
iconRotationAlignment
The value for the new object.
Return Value
A new value object that contains the enumeration value.
MGLIconRotationAlignmentValue
The MGLIconRotationAlignment
enumeration representation of the value.
Declaration
Objective-C
@property (atomic, readonly)
MGLIconRotationAlignment MGLIconRotationAlignmentValue;
Swift
var mglIconRotationAlignmentValue: MGLIconRotationAlignment { get }
+valueWithMGLIconTextFit:
Creates a new value object containing the given MGLIconTextFit
enumeration.
Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLIconTextFit:(MGLIconTextFit)iconTextFit;
Swift
convenience init(mglIconTextFit iconTextFit: MGLIconTextFit)
Parameters
iconTextFit
The value for the new object.
Return Value
A new value object that contains the enumeration value.
MGLIconTextFitValue
The MGLIconTextFit
enumeration representation of the value.
Declaration
Objective-C
@property (atomic, readonly) MGLIconTextFit MGLIconTextFitValue;
Swift
var mglIconTextFitValue: MGLIconTextFit { get }
+valueWithMGLSymbolPlacement:
Creates a new value object containing the given MGLSymbolPlacement
enumeration.
Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLSymbolPlacement:
(MGLSymbolPlacement)symbolPlacement;
Swift
convenience init(mglSymbolPlacement symbolPlacement: MGLSymbolPlacement)
Parameters
symbolPlacement
The value for the new object.
Return Value
A new value object that contains the enumeration value.
MGLSymbolPlacementValue
The MGLSymbolPlacement
enumeration representation of the value.
Declaration
Objective-C
@property (atomic, readonly) MGLSymbolPlacement MGLSymbolPlacementValue;
Swift
var mglSymbolPlacementValue: MGLSymbolPlacement { get }
+valueWithMGLSymbolZOrder:
Creates a new value object containing the given MGLSymbolZOrder
enumeration.
Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLSymbolZOrder:(MGLSymbolZOrder)symbolZOrder;
Swift
convenience init(mglSymbolZOrder symbolZOrder: MGLSymbolZOrder)
Parameters
symbolZOrder
The value for the new object.
Return Value
A new value object that contains the enumeration value.
MGLSymbolZOrderValue
The MGLSymbolZOrder
enumeration representation of the value.
Declaration
Objective-C
@property (atomic, readonly) MGLSymbolZOrder MGLSymbolZOrderValue;
Swift
var mglSymbolZOrderValue: MGLSymbolZOrder { get }
+valueWithMGLTextAnchor:
Creates a new value object containing the given MGLTextAnchor
enumeration.
Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextAnchor:(MGLTextAnchor)textAnchor;
Swift
convenience init(mglTextAnchor textAnchor: MGLTextAnchor)
Parameters
textAnchor
The value for the new object.
Return Value
A new value object that contains the enumeration value.
MGLTextAnchorValue
The MGLTextAnchor
enumeration representation of the value.
Declaration
Objective-C
@property (atomic, readonly) MGLTextAnchor MGLTextAnchorValue;
Swift
var mglTextAnchorValue: MGLTextAnchor { get }
+valueWithMGLTextJustification:
Creates a new value object containing the given MGLTextJustification
enumeration.
Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextJustification:
(MGLTextJustification)textJustification;
Swift
convenience init(mglTextJustification textJustification: MGLTextJustification)
Parameters
textJustification
The value for the new object.
Return Value
A new value object that contains the enumeration value.
MGLTextJustificationValue
The MGLTextJustification
enumeration representation of the value.
Declaration
Objective-C
@property (atomic, readonly) MGLTextJustification MGLTextJustificationValue;
Swift
var mglTextJustificationValue: MGLTextJustification { get }
+valueWithMGLTextPitchAlignment:
Creates a new value object containing the given MGLTextPitchAlignment
enumeration.
Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextPitchAlignment:
(MGLTextPitchAlignment)textPitchAlignment;
Swift
convenience init(mglTextPitchAlignment textPitchAlignment: MGLTextPitchAlignment)
Parameters
textPitchAlignment
The value for the new object.
Return Value
A new value object that contains the enumeration value.
MGLTextPitchAlignmentValue
The MGLTextPitchAlignment
enumeration representation of the value.
Declaration
Objective-C
@property (atomic, readonly) MGLTextPitchAlignment MGLTextPitchAlignmentValue;
Swift
var mglTextPitchAlignmentValue: MGLTextPitchAlignment { get }
+valueWithMGLTextRotationAlignment:
Creates a new value object containing the given MGLTextRotationAlignment
enumeration.
Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextRotationAlignment:
(MGLTextRotationAlignment)textRotationAlignment;
Swift
convenience init(mglTextRotationAlignment textRotationAlignment: MGLTextRotationAlignment)
Parameters
textRotationAlignment
The value for the new object.
Return Value
A new value object that contains the enumeration value.
MGLTextRotationAlignmentValue
The MGLTextRotationAlignment
enumeration representation of the value.
Declaration
Objective-C
@property (atomic, readonly)
MGLTextRotationAlignment MGLTextRotationAlignmentValue;
Swift
var mglTextRotationAlignmentValue: MGLTextRotationAlignment { get }
+valueWithMGLTextTransform:
Creates a new value object containing the given MGLTextTransform
enumeration.
Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextTransform:
(MGLTextTransform)textTransform;
Swift
convenience init(mglTextTransform textTransform: MGLTextTransform)
Parameters
textTransform
The value for the new object.
Return Value
A new value object that contains the enumeration value.
MGLTextTransformValue
The MGLTextTransform
enumeration representation of the value.
Declaration
Objective-C
@property (atomic, readonly) MGLTextTransform MGLTextTransformValue;
Swift
var mglTextTransformValue: MGLTextTransform { get }
+valueWithMGLTextWritingMode:
Creates a new value object containing the given MGLTextWritingMode
enumeration.
Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextWritingMode:
(MGLTextWritingMode)textWritingModes;
Swift
convenience init(mglTextWritingMode textWritingModes: MGLTextWritingMode)
Parameters
textWritingModes
The value for the new object.
Return Value
A new value object that contains the enumeration value.
MGLTextWritingModeValue
The MGLTextWritingMode
enumeration representation of the value.
Declaration
Objective-C
@property (atomic, readonly) MGLTextWritingMode MGLTextWritingModeValue;
Swift
var mglTextWritingModeValue: MGLTextWritingMode { get }
+valueWithMGLIconTranslationAnchor:
Creates a new value object containing the given MGLIconTranslationAnchor
enumeration.
Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLIconTranslationAnchor:
(MGLIconTranslationAnchor)iconTranslationAnchor;
Swift
convenience init(mglIconTranslationAnchor iconTranslationAnchor: MGLIconTranslationAnchor)
Parameters
iconTranslationAnchor
The value for the new object.
Return Value
A new value object that contains the enumeration value.
MGLIconTranslationAnchorValue
The MGLIconTranslationAnchor
enumeration representation of the value.
Declaration
Objective-C
@property (atomic, readonly)
MGLIconTranslationAnchor MGLIconTranslationAnchorValue;
Swift
var mglIconTranslationAnchorValue: MGLIconTranslationAnchor { get }
+valueWithMGLTextTranslationAnchor:
Creates a new value object containing the given MGLTextTranslationAnchor
enumeration.
Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextTranslationAnchor:
(MGLTextTranslationAnchor)textTranslationAnchor;
Swift
convenience init(mglTextTranslationAnchor textTranslationAnchor: MGLTextTranslationAnchor)
Parameters
textTranslationAnchor
The value for the new object.
Return Value
A new value object that contains the enumeration value.
MGLTextTranslationAnchorValue
The MGLTextTranslationAnchor
enumeration representation of the value.
Declaration
Objective-C
@property (atomic, readonly)
MGLTextTranslationAnchor MGLTextTranslationAnchorValue;
Swift
var mglTextTranslationAnchorValue: MGLTextTranslationAnchor { get }
iOS SDK
Examples
SDK JS Reference
- MGLAnnotationImage
- MGLErrorCode
- MGLNetworkConfiguration
- MGLCircleStyleLayer
- MGLUserTrackingMode
- MGLTransition
- MGLCoordinateFormatter
- MGLImageSource
- MGLOrnamentPosition
- MGLAnnotation
- Other Type Definitions
- MGLAnnotationViewDragState
- NSValue(MGLCircleStyleLayerAdditions)
- MGLPolyline
- MGLCoordinateQuad
- MGLDEMEncoding
- Styling the Map
- MGLAttributionInfoStyle
- MGLTextTranslationAnchor
- MGLSymbolPlacement
- MGLOfflineStorage
- MGLHillshadeStyleLayer
- Other Functions
- MGLCompassButton
- MGLAttributionInfo
- MGLHeatmapStyleLayer
- Other Categories
- MGLSphericalPosition
- MGLCirclePitchAlignment
- User Interaction
- Location Updates
- MGLSphericalPosition
- Offline Maps
- MGLSymbolZOrder
- MGLIconRotationAlignment
- MGLLightAnchor
- MGLLocationManagerDelegate
- MGLAttributedExpression
- MGLLight
- MGLStyleLayer
- NSExpression(MGLAdditions)
- MGLAccountManager
- MGLShapeOfflineRegion
- Geometry
- MGLHillshadeIlluminationAnchor
- Info.plist Keys
- MGLBackgroundStyleLayer
- MGLSource
- MGLSymbolStyleLayer
- MGLResourceKind
- MGLCoordinateSpan
- MGLOrnamentVisibility
- NSValue(MGLFillExtrusionStyleLayerAdditions)
- NSValue(MGLHillshadeStyleLayerAdditions)
- MGLOfflineStorageDelegate
- MGLCluster
- Appendices
- MGLUserLocationAnnotationViewStyle
- NSValue(MGLLineStyleLayerAdditions)
- MGLStyle
- MGLMapSnapshotterDelegate
- MGLTextWritingMode
- MGLRasterResamplingMode
- MGLUserLocation
- MGLOfflinePackProgress
- MGLFillExtrusionTranslationAnchor
- MGLForegroundStyleLayer
- MGLLoggingConfiguration
- MGLTilePyramidOfflineRegion
- MGLRasterTileSource
- MGLAnnotationView
- Working with GeoJSON Data
- MGLVectorStyleLayer
- MGLMapSnapshotOptions
- MGLMapViewDelegate
- MGLMapDebugMaskOptions
- MGLMapSnapshotOverlay
- MGLIconTranslationAnchor
- Other Enumerations
- Other Protocols
- MGLTextRotationAlignment
- MGLUserLocationAnnotationView
- MGLTextPitchAlignment
- MGLCalloutViewDelegate
- Annotations
- MGLLineTranslationAnchor
- MGLShapeSource
- NSValue(MGLSymbolStyleLayerAdditions)
- MGLOfflinePackState
- MGLTextJustification
- Other Classes
- MGLMapSnapshotter
- MGLIconPitchAlignment
- MGLComputedShapeSource
- MGLRasterStyleLayer
- MGLCoordinateQuad
- MGLFeature
- MGLComputedShapeSourceDataSource
- MGLOfflineRegion
- MGLLineCap
- MGLLoggingLevel
- MGLFillExtrusionStyleLayer
- Style Content
- NSValue(MGLFillStyleLayerAdditions)
- NSValue(MGLRasterStyleLayerAdditions)
- MGLLocationManager
- MGLMapCamera
- MGLIconTextFit
- MGLLineStyleLayer
- MGLPointCollection
- MGLMultiPolygon
- MGLCircleTranslationAnchor
- Other Structures
- MGLFillStyleLayer
- MGLShapeCollection
- Primitive Shapes
- MGLTransition
- Information for Style Authors
- MGLLineJoin
- MGLPointAnnotation
- MGLTileSource
- MGLVectorTileSource
- MGLCoordinateBounds
- Gesture Recognizers
- NSValue(MGLAdditions)
- MGLCompassDirectionFormatter
- MGLIconAnchor
- Migrating to Expressions
- MGLPolygon
- MGLDistanceFormatter
- MGLFillTranslationAnchor
- MGLTextTransform
- MGLMultiPoint
- Customizing Fonts
- Maps
- MGLClockDirectionFormatter
- MGLCalloutView
- MGLTextAnchor
- MGLCircleScaleAlignment
- MGLCoordinateSpan
- MGLMapSnapshot
- MGLStylable
- MGLShape
- MGLOfflinePackProgress
- Style Primitives
- Predicates and expressions
- Formatters
- MGLMultiPolyline
- MGLTileCoordinateSystem
- MGLAnnotationVerticalAlignment
- MGLOverlay
- MGLCoordinateBounds
- Tile URL Templates
- MGLOfflinePack
- Style Layers
- MGLMapView
- Other Constants