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
- 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