diff options
Diffstat (limited to 'macos/0.9.0/Classes/MGLSymbolStyleLayer.html')
-rw-r--r-- | macos/0.9.0/Classes/MGLSymbolStyleLayer.html | 4321 |
1 files changed, 4321 insertions, 0 deletions
diff --git a/macos/0.9.0/Classes/MGLSymbolStyleLayer.html b/macos/0.9.0/Classes/MGLSymbolStyleLayer.html new file mode 100644 index 0000000000..00aa58bd34 --- /dev/null +++ b/macos/0.9.0/Classes/MGLSymbolStyleLayer.html @@ -0,0 +1,4321 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <title>MGLSymbolStyleLayer Class Reference</title> + <link rel="stylesheet" type="text/css" href="../css/jazzy.css" /> + <link rel="stylesheet" type="text/css" href="../css/highlight.css" /> + <meta charset="utf-8"> + <script src="../js/jquery.min.js" defer></script> + <script src="../js/jazzy.js" defer></script> + <link rel='shortcut icon' href='https://www.mapbox.com/img/favicon.ico' type='image/x-icon' /> + + <style type="text/css"> + .nav-group-name[data-name="MGLSymbolStyleLayer"] > .small-heading, + .nav-group-task[data-name="MGLSymbolStyleLayer"] { + background-color: #f5f8fc; + font-family: "Open Sans Bold"; + border-left: 3px solid #3a68d8; + padding-left: 5px + } + </style> + </head> + <body> + + <a name="//apple_ref/objc/Class/MGLSymbolStyleLayer" class="dashAnchor"></a> + + <a title="MGLSymbolStyleLayer Class Reference"></a> + + <header class="header-container"> + <div class="limiter"> + <div class="header"> + <p class="header-col header-col--primary"> + <a class="header-link" href="../index.html"> + <img style="height: 25px;" class="header-icon" src="../img/mapbox.svg" alt="Mapbox Maps SDK for macOS Docs"/> + <span class='header-tag'>Maps SDK for macOS Reference</span> + </a> + + </p> + + <p class="header-col header-col--secondary"> + <a class="header-link space-right2" href="https://github.com/mapbox/mapbox-gl-native"> + <svg style="margin-bottom: 1px;" class="header-icon" viewBox="0 0 33 33" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <path stroke="none" stroke-width="1" fill="white" fill-rule="evenodd" d="M16.6,0.4 C7.6,0.4 0.3,7.7 0.3,16.7 C0.3,23.9 5,30 11.4,32.2 C12.2,32.3 12.5,31.8 12.5,31.4 L12.5,28.6 C8,29.6 7,26.4 7,26.4 C6.3,24.5 5.2,24 5.2,24 C3.7,23 5.3,23 5.3,23 C6.9,23.1 7.8,24.7 7.8,24.7 C9.3,27.2 11.6,26.5 12.5,26.1 C12.6,25 13.1,24.3 13.5,23.9 C9.9,23.5 6.1,22.1 6.1,15.8 C6.1,14 6.7,12.6 7.8,11.4 C7.6,11 7.1,9.3 8,7.1 C8,7.1 9.4,6.7 12.5,8.8 C13.8,8.4 15.2,8.3 16.6,8.3 C18,8.3 19.4,8.5 20.7,8.8 C23.8,6.7 25.2,7.1 25.2,7.1 C26.1,9.3 25.5,11 25.4,11.4 C26.4,12.5 27.1,14 27.1,15.8 C27.1,22.1 23.3,23.4 19.7,23.8 C20.3,24.3 20.8,25.3 20.8,26.8 L20.8,31.3 C20.8,31.7 21.1,32.2 21.9,32.1 C28.4,29.9 33,23.8 33,16.6 C32.9,7.7 25.6,0.4 16.6,0.4 L16.6,0.4 Z"></path> + </svg> + View on GitHub + </a> + </p> + + <p class="header-col header-col--secondary"> + <a class="header-link bold" href="dash-feed://https%3A%2F%2Fmapbox%2Egithub%2Eio%2Fmapbox%2Dgl%2Dnative%2Fmacos%2Fdocsets%2FMapbox%2Exml"> + <img style="margin-bottom: 1px;" class="header-icon" src="../img/dash.png"/> + Install in Dash + </a> + </p> + </div> + </div> + </header> + + <div class="breadcrumbs"> + <div class="limiter"> + <a class="breadcrumb" href="../index.html">Mapbox Maps SDK for macOS Reference</a> + <img class="carat" src="../img/carat.png" /> + MGLSymbolStyleLayer Class Reference + </div> + </div> + + <div class="content-wrapper limiter"> + <nav class="navigation"> + <ul class="nav-groups"> + <li class="nav-group-name" data-name="Guides"> + <a class="small-heading" href="../Guides.html">Guides<span class="anchor-icon" /></a> + <ul class="nav-group-tasks"> + <li class="nav-group-task" data-name="Working with GeoJSON Data" data-url="working-with-geojson-data.html"> + <a title="Working with GeoJSON Data" class="nav-group-task-link" href="../working-with-geojson-data.html">Working with GeoJSON Data</a> + </li> + <li class="nav-group-task" data-name="Predicates and Expressions" data-url="predicates-and-expressions.html"> + <a title="Predicates and Expressions" class="nav-group-task-link" href="../predicates-and-expressions.html">Predicates and Expressions</a> + </li> + <li class="nav-group-task" data-name="For Style Authors" data-url="for-style-authors.html"> + <a title="For Style Authors" class="nav-group-task-link" href="../for-style-authors.html">For Style Authors</a> + </li> + <li class="nav-group-task" data-name="Migrating to Expressions" data-url="migrating-to-expressions.html"> + <a title="Migrating to Expressions" class="nav-group-task-link" href="../migrating-to-expressions.html">Migrating to Expressions</a> + </li> + <li class="nav-group-task" data-name="Tile URL Templates" data-url="tile-url-templates.html"> + <a title="Tile URL Templates" class="nav-group-task-link" href="../tile-url-templates.html">Tile URL Templates</a> + </li> + <li class="nav-group-task" data-name="Info.plist Keys" data-url="infoplist-keys.html"> + <a title="Info.plist Keys" class="nav-group-task-link" href="../infoplist-keys.html">Info.plist Keys</a> + </li> + </ul> + </li> + <li class="nav-group-name" data-name="Maps"> + <a class="small-heading" href="../Maps.html">Maps<span class="anchor-icon" /></a> + <ul class="nav-group-tasks"> + <li class="nav-group-task" data-name="MGLAccountManager" data-url="Classes/MGLAccountManager.html"> + <a title="MGLAccountManager" class="nav-group-task-link" href="../Classes/MGLAccountManager.html">MGLAccountManager</a> + </li> + <li class="nav-group-task" data-name="MGLMapCamera" data-url="Classes/MGLMapCamera.html"> + <a title="MGLMapCamera" class="nav-group-task-link" href="../Classes/MGLMapCamera.html">MGLMapCamera</a> + </li> + <li class="nav-group-task" data-name="MGLMapView" data-url="Classes/MGLMapView.html"> + <a title="MGLMapView" class="nav-group-task-link" href="../Classes/MGLMapView.html">MGLMapView</a> + </li> + <li class="nav-group-task" data-name="MGLMapViewDelegate" data-url="Protocols/MGLMapViewDelegate.html"> + <a title="MGLMapViewDelegate" class="nav-group-task-link" href="../Protocols/MGLMapViewDelegate.html">MGLMapViewDelegate</a> + </li> + <li class="nav-group-task" data-name="MGLMapSnapshot" data-url="Classes/MGLMapSnapshot.html"> + <a title="MGLMapSnapshot" class="nav-group-task-link" href="../Classes/MGLMapSnapshot.html">MGLMapSnapshot</a> + </li> + <li class="nav-group-task" data-name="MGLMapSnapshotOptions" data-url="Classes/MGLMapSnapshotOptions.html"> + <a title="MGLMapSnapshotOptions" class="nav-group-task-link" href="../Classes/MGLMapSnapshotOptions.html">MGLMapSnapshotOptions</a> + </li> + <li class="nav-group-task" data-name="MGLMapSnapshotter" data-url="Classes/MGLMapSnapshotter.html"> + <a title="MGLMapSnapshotter" class="nav-group-task-link" href="../Classes/MGLMapSnapshotter.html">MGLMapSnapshotter</a> + </li> + </ul> + </li> + <li class="nav-group-name" data-name="Shapes and Annotations"> + <a class="small-heading" href="../Shapes and Annotations.html">Shapes and Annotations<span class="anchor-icon" /></a> + <ul class="nav-group-tasks"> + <li class="nav-group-task" data-name="MGLAnnotation" data-url="Protocols/MGLAnnotation.html"> + <a title="MGLAnnotation" class="nav-group-task-link" href="../Protocols/MGLAnnotation.html">MGLAnnotation</a> + </li> + <li class="nav-group-task" data-name="MGLAnnotationImage" data-url="Classes/MGLAnnotationImage.html"> + <a title="MGLAnnotationImage" class="nav-group-task-link" href="../Classes/MGLAnnotationImage.html">MGLAnnotationImage</a> + </li> + <li class="nav-group-task" data-name="MGLOverlay" data-url="Protocols/MGLOverlay.html"> + <a title="MGLOverlay" class="nav-group-task-link" href="../Protocols/MGLOverlay.html">MGLOverlay</a> + </li> + <li class="nav-group-task" data-name="MGLShape" data-url="Classes/MGLShape.html"> + <a title="MGLShape" class="nav-group-task-link" href="../Classes/MGLShape.html">MGLShape</a> + </li> + <li class="nav-group-task" data-name="MGLMultiPoint" data-url="Classes/MGLMultiPoint.html"> + <a title="MGLMultiPoint" class="nav-group-task-link" href="../Classes/MGLMultiPoint.html">MGLMultiPoint</a> + </li> + <li class="nav-group-task" data-name="MGLPointAnnotation" data-url="Classes/MGLPointAnnotation.html"> + <a title="MGLPointAnnotation" class="nav-group-task-link" href="../Classes/MGLPointAnnotation.html">MGLPointAnnotation</a> + </li> + <li class="nav-group-task" data-name="MGLPointCollection" data-url="Classes/MGLPointCollection.html"> + <a title="MGLPointCollection" class="nav-group-task-link" href="../Classes/MGLPointCollection.html">MGLPointCollection</a> + </li> + <li class="nav-group-task" data-name="MGLPolygon" data-url="Classes/MGLPolygon.html"> + <a title="MGLPolygon" class="nav-group-task-link" href="../Classes/MGLPolygon.html">MGLPolygon</a> + </li> + <li class="nav-group-task" data-name="MGLPolyline" data-url="Classes/MGLPolyline.html"> + <a title="MGLPolyline" class="nav-group-task-link" href="../Classes/MGLPolyline.html">MGLPolyline</a> + </li> + <li class="nav-group-task" data-name="MGLMultiPolygon" data-url="Classes/MGLMultiPolygon.html"> + <a title="MGLMultiPolygon" class="nav-group-task-link" href="../Classes/MGLMultiPolygon.html">MGLMultiPolygon</a> + </li> + <li class="nav-group-task" data-name="MGLMultiPolyline" data-url="Classes/MGLMultiPolyline.html"> + <a title="MGLMultiPolyline" class="nav-group-task-link" href="../Classes/MGLMultiPolyline.html">MGLMultiPolyline</a> + </li> + <li class="nav-group-task" data-name="MGLShapeCollection" data-url="Classes/MGLShapeCollection.html"> + <a title="MGLShapeCollection" class="nav-group-task-link" href="../Classes/MGLShapeCollection.html">MGLShapeCollection</a> + </li> + </ul> + </li> + <li class="nav-group-name" data-name="Styling the Map"> + <a class="small-heading" href="../Styling the Map.html">Styling the Map<span class="anchor-icon" /></a> + <ul class="nav-group-tasks"> + <li class="nav-group-task" data-name="MGLStyle" data-url="Classes/MGLStyle.html"> + <a title="MGLStyle" class="nav-group-task-link" href="../Classes/MGLStyle.html">MGLStyle</a> + </li> + <li class="nav-group-task" data-name="MGLLight" data-url="Classes/MGLLight.html"> + <a title="MGLLight" class="nav-group-task-link" href="../Classes/MGLLight.html">MGLLight</a> + </li> + </ul> + </li> + <li class="nav-group-name" data-name="Content Primitives"> + <a class="small-heading" href="../Content Primitives.html">Content Primitives<span class="anchor-icon" /></a> + <ul class="nav-group-tasks"> + <li class="nav-group-task" data-name="MGLFeature" data-url="Protocols/MGLFeature.html"> + <a title="MGLFeature" class="nav-group-task-link" href="../Protocols/MGLFeature.html">MGLFeature</a> + </li> + <li class="nav-group-task" data-name="MGLPointFeature" data-url="Content Primitives.html#/c:objc(cs)MGLPointFeature"> + <a title="MGLPointFeature" class="nav-group-task-link" href="../Content Primitives.html#/c:objc(cs)MGLPointFeature">MGLPointFeature</a> + </li> + <li class="nav-group-task" data-name="MGLPolygonFeature" data-url="Content Primitives.html#/c:objc(cs)MGLPolygonFeature"> + <a title="MGLPolygonFeature" class="nav-group-task-link" href="../Content Primitives.html#/c:objc(cs)MGLPolygonFeature">MGLPolygonFeature</a> + </li> + <li class="nav-group-task" data-name="MGLPolylineFeature" data-url="Content Primitives.html#/c:objc(cs)MGLPolylineFeature"> + <a title="MGLPolylineFeature" class="nav-group-task-link" href="../Content Primitives.html#/c:objc(cs)MGLPolylineFeature">MGLPolylineFeature</a> + </li> + <li class="nav-group-task" data-name="MGLMultiPolygonFeature" data-url="Content Primitives.html#/c:objc(cs)MGLMultiPolygonFeature"> + <a title="MGLMultiPolygonFeature" class="nav-group-task-link" href="../Content Primitives.html#/c:objc(cs)MGLMultiPolygonFeature">MGLMultiPolygonFeature</a> + </li> + <li class="nav-group-task" data-name="MGLMultiPolylineFeature" data-url="Content Primitives.html#/c:objc(cs)MGLMultiPolylineFeature"> + <a title="MGLMultiPolylineFeature" class="nav-group-task-link" href="../Content Primitives.html#/c:objc(cs)MGLMultiPolylineFeature">MGLMultiPolylineFeature</a> + </li> + <li class="nav-group-task" data-name="MGLPointCollectionFeature" data-url="Content Primitives.html#/c:objc(cs)MGLPointCollectionFeature"> + <a title="MGLPointCollectionFeature" class="nav-group-task-link" href="../Content Primitives.html#/c:objc(cs)MGLPointCollectionFeature">MGLPointCollectionFeature</a> + </li> + <li class="nav-group-task" data-name="MGLShapeCollectionFeature" data-url="Content Primitives.html#/c:objc(cs)MGLShapeCollectionFeature"> + <a title="MGLShapeCollectionFeature" class="nav-group-task-link" href="../Content Primitives.html#/c:objc(cs)MGLShapeCollectionFeature">MGLShapeCollectionFeature</a> + </li> + </ul> + </li> + <li class="nav-group-name" data-name="Content Sources"> + <a class="small-heading" href="../Content Sources.html">Content Sources<span class="anchor-icon" /></a> + <ul class="nav-group-tasks"> + <li class="nav-group-task" data-name="MGLSource" data-url="Classes/MGLSource.html"> + <a title="MGLSource" class="nav-group-task-link" href="../Classes/MGLSource.html">MGLSource</a> + </li> + <li class="nav-group-task" data-name="MGLShapeSource" data-url="Classes/MGLShapeSource.html"> + <a title="MGLShapeSource" class="nav-group-task-link" href="../Classes/MGLShapeSource.html">MGLShapeSource</a> + </li> + <li class="nav-group-task" data-name="MGLComputedShapeSource" data-url="Classes/MGLComputedShapeSource.html"> + <a title="MGLComputedShapeSource" class="nav-group-task-link" href="../Classes/MGLComputedShapeSource.html">MGLComputedShapeSource</a> + </li> + <li class="nav-group-task" data-name="MGLTileSource" data-url="Classes/MGLTileSource.html"> + <a title="MGLTileSource" class="nav-group-task-link" href="../Classes/MGLTileSource.html">MGLTileSource</a> + </li> + <li class="nav-group-task" data-name="MGLRasterTileSource" data-url="Classes/MGLRasterTileSource.html"> + <a title="MGLRasterTileSource" class="nav-group-task-link" href="../Classes/MGLRasterTileSource.html">MGLRasterTileSource</a> + </li> + <li class="nav-group-task" data-name="MGLRasterDEMSource" data-url="Content Sources.html#/c:objc(cs)MGLRasterDEMSource"> + <a title="MGLRasterDEMSource" class="nav-group-task-link" href="../Content Sources.html#/c:objc(cs)MGLRasterDEMSource">MGLRasterDEMSource</a> + </li> + <li class="nav-group-task" data-name="MGLVectorTileSource" data-url="Classes/MGLVectorTileSource.html"> + <a title="MGLVectorTileSource" class="nav-group-task-link" href="../Classes/MGLVectorTileSource.html">MGLVectorTileSource</a> + </li> + <li class="nav-group-task" data-name="MGLImageSource" data-url="Classes/MGLImageSource.html"> + <a title="MGLImageSource" class="nav-group-task-link" href="../Classes/MGLImageSource.html">MGLImageSource</a> + </li> + </ul> + </li> + <li class="nav-group-name" data-name="Style Layers"> + <a class="small-heading" href="../Style Layers.html">Style Layers<span class="anchor-icon" /></a> + <ul class="nav-group-tasks"> + <li class="nav-group-task" data-name="MGLStyleLayer" data-url="Classes/MGLStyleLayer.html"> + <a title="MGLStyleLayer" class="nav-group-task-link" href="../Classes/MGLStyleLayer.html">MGLStyleLayer</a> + </li> + <li class="nav-group-task" data-name="MGLForegroundStyleLayer" data-url="Classes/MGLForegroundStyleLayer.html"> + <a title="MGLForegroundStyleLayer" class="nav-group-task-link" href="../Classes/MGLForegroundStyleLayer.html">MGLForegroundStyleLayer</a> + </li> + <li class="nav-group-task" data-name="MGLBackgroundStyleLayer" data-url="Classes/MGLBackgroundStyleLayer.html"> + <a title="MGLBackgroundStyleLayer" class="nav-group-task-link" href="../Classes/MGLBackgroundStyleLayer.html">MGLBackgroundStyleLayer</a> + </li> + <li class="nav-group-task" data-name="MGLRasterStyleLayer" data-url="Classes/MGLRasterStyleLayer.html"> + <a title="MGLRasterStyleLayer" class="nav-group-task-link" href="../Classes/MGLRasterStyleLayer.html">MGLRasterStyleLayer</a> + </li> + <li class="nav-group-task" data-name="MGLVectorStyleLayer" data-url="Classes/MGLVectorStyleLayer.html"> + <a title="MGLVectorStyleLayer" class="nav-group-task-link" href="../Classes/MGLVectorStyleLayer.html">MGLVectorStyleLayer</a> + </li> + <li class="nav-group-task" data-name="MGLCircleStyleLayer" data-url="Classes/MGLCircleStyleLayer.html"> + <a title="MGLCircleStyleLayer" class="nav-group-task-link" href="../Classes/MGLCircleStyleLayer.html">MGLCircleStyleLayer</a> + </li> + <li class="nav-group-task" data-name="MGLFillStyleLayer" data-url="Classes/MGLFillStyleLayer.html"> + <a title="MGLFillStyleLayer" class="nav-group-task-link" href="../Classes/MGLFillStyleLayer.html">MGLFillStyleLayer</a> + </li> + <li class="nav-group-task" data-name="MGLFillExtrusionStyleLayer" data-url="Classes/MGLFillExtrusionStyleLayer.html"> + <a title="MGLFillExtrusionStyleLayer" class="nav-group-task-link" href="../Classes/MGLFillExtrusionStyleLayer.html">MGLFillExtrusionStyleLayer</a> + </li> + <li class="nav-group-task" data-name="MGLHeatmapStyleLayer" data-url="Classes/MGLHeatmapStyleLayer.html"> + <a title="MGLHeatmapStyleLayer" class="nav-group-task-link" href="../Classes/MGLHeatmapStyleLayer.html">MGLHeatmapStyleLayer</a> + </li> + <li class="nav-group-task" data-name="MGLHillshadeStyleLayer" data-url="Classes/MGLHillshadeStyleLayer.html"> + <a title="MGLHillshadeStyleLayer" class="nav-group-task-link" href="../Classes/MGLHillshadeStyleLayer.html">MGLHillshadeStyleLayer</a> + </li> + <li class="nav-group-task" data-name="MGLLineStyleLayer" data-url="Classes/MGLLineStyleLayer.html"> + <a title="MGLLineStyleLayer" class="nav-group-task-link" href="../Classes/MGLLineStyleLayer.html">MGLLineStyleLayer</a> + </li> + <li class="nav-group-task" data-name="MGLSymbolStyleLayer" data-url="Classes/MGLSymbolStyleLayer.html"> + <a title="MGLSymbolStyleLayer" class="nav-group-task-link" href="../Classes/MGLSymbolStyleLayer.html">MGLSymbolStyleLayer</a> + </li> + </ul> + </li> + <li class="nav-group-name" data-name="Offline Maps"> + <a class="small-heading" href="../Offline Maps.html">Offline Maps<span class="anchor-icon" /></a> + <ul class="nav-group-tasks"> + <li class="nav-group-task" data-name="MGLOfflineRegion" data-url="Offline Maps.html#/c:objc(pl)MGLOfflineRegion"> + <a title="MGLOfflineRegion" class="nav-group-task-link" href="../Offline Maps.html#/c:objc(pl)MGLOfflineRegion">MGLOfflineRegion</a> + </li> + <li class="nav-group-task" data-name="MGLOfflineStorage" data-url="Classes/MGLOfflineStorage.html"> + <a title="MGLOfflineStorage" class="nav-group-task-link" href="../Classes/MGLOfflineStorage.html">MGLOfflineStorage</a> + </li> + <li class="nav-group-task" data-name="MGLOfflinePack" data-url="Classes/MGLOfflinePack.html"> + <a title="MGLOfflinePack" class="nav-group-task-link" href="../Classes/MGLOfflinePack.html">MGLOfflinePack</a> + </li> + <li class="nav-group-task" data-name="MGLOfflinePackProgress" data-url="Structs/MGLOfflinePackProgress.html"> + <a title="MGLOfflinePackProgress" class="nav-group-task-link" href="../Structs/MGLOfflinePackProgress.html">MGLOfflinePackProgress</a> + </li> + <li class="nav-group-task" data-name="MGLOfflinePackState" data-url="Enums/MGLOfflinePackState.html"> + <a title="MGLOfflinePackState" class="nav-group-task-link" href="../Enums/MGLOfflinePackState.html">MGLOfflinePackState</a> + </li> + <li class="nav-group-task" data-name="MGLTilePyramidOfflineRegion" data-url="Classes/MGLTilePyramidOfflineRegion.html"> + <a title="MGLTilePyramidOfflineRegion" class="nav-group-task-link" href="../Classes/MGLTilePyramidOfflineRegion.html">MGLTilePyramidOfflineRegion</a> + </li> + </ul> + </li> + <li class="nav-group-name" data-name="Geometry"> + <a class="small-heading" href="../Geometry.html">Geometry<span class="anchor-icon" /></a> + <ul class="nav-group-tasks"> + <li class="nav-group-task" data-name="MGLCoordinateBounds" data-url="Structs/MGLCoordinateBounds.html"> + <a title="MGLCoordinateBounds" class="nav-group-task-link" href="../Structs/MGLCoordinateBounds.html">MGLCoordinateBounds</a> + </li> + <li class="nav-group-task" data-name="MGLCoordinateBoundsEqualToCoordinateBounds" data-url="Geometry.html#/c:MGLGeometry.h@F@MGLCoordinateBoundsEqualToCoordinateBounds"> + <a title="MGLCoordinateBoundsEqualToCoordinateBounds" class="nav-group-task-link" href="../Geometry.html#/c:MGLGeometry.h@F@MGLCoordinateBoundsEqualToCoordinateBounds">MGLCoordinateBoundsEqualToCoordinateBounds</a> + </li> + <li class="nav-group-task" data-name="MGLCoordinateBoundsGetCoordinateSpan" data-url="Geometry.html#/c:MGLGeometry.h@F@MGLCoordinateBoundsGetCoordinateSpan"> + <a title="MGLCoordinateBoundsGetCoordinateSpan" class="nav-group-task-link" href="../Geometry.html#/c:MGLGeometry.h@F@MGLCoordinateBoundsGetCoordinateSpan">MGLCoordinateBoundsGetCoordinateSpan</a> + </li> + <li class="nav-group-task" data-name="MGLCoordinateBoundsIntersectsCoordinateBounds" data-url="Geometry.html#/c:MGLGeometry.h@F@MGLCoordinateBoundsIntersectsCoordinateBounds"> + <a title="MGLCoordinateBoundsIntersectsCoordinateBounds" class="nav-group-task-link" href="../Geometry.html#/c:MGLGeometry.h@F@MGLCoordinateBoundsIntersectsCoordinateBounds">MGLCoordinateBoundsIntersectsCoordinateBounds</a> + </li> + <li class="nav-group-task" data-name="MGLCoordinateBoundsIsEmpty" data-url="Geometry.html#/c:MGLGeometry.h@F@MGLCoordinateBoundsIsEmpty"> + <a title="MGLCoordinateBoundsIsEmpty" class="nav-group-task-link" href="../Geometry.html#/c:MGLGeometry.h@F@MGLCoordinateBoundsIsEmpty">MGLCoordinateBoundsIsEmpty</a> + </li> + <li class="nav-group-task" data-name="MGLCoordinateBoundsMake" data-url="Geometry.html#/c:MGLGeometry.h@F@MGLCoordinateBoundsMake"> + <a title="MGLCoordinateBoundsMake" class="nav-group-task-link" href="../Geometry.html#/c:MGLGeometry.h@F@MGLCoordinateBoundsMake">MGLCoordinateBoundsMake</a> + </li> + <li class="nav-group-task" data-name="MGLCoordinateBoundsOffset" data-url="Geometry.html#/c:MGLGeometry.h@F@MGLCoordinateBoundsOffset"> + <a title="MGLCoordinateBoundsOffset" class="nav-group-task-link" href="../Geometry.html#/c:MGLGeometry.h@F@MGLCoordinateBoundsOffset">MGLCoordinateBoundsOffset</a> + </li> + <li class="nav-group-task" data-name="MGLCoordinateInCoordinateBounds" data-url="Geometry.html#/c:MGLGeometry.h@F@MGLCoordinateInCoordinateBounds"> + <a title="MGLCoordinateInCoordinateBounds" class="nav-group-task-link" href="../Geometry.html#/c:MGLGeometry.h@F@MGLCoordinateInCoordinateBounds">MGLCoordinateInCoordinateBounds</a> + </li> + <li class="nav-group-task" data-name="MGLCoordinateSpan" data-url="Structs/MGLCoordinateSpan.html"> + <a title="MGLCoordinateSpan" class="nav-group-task-link" href="../Structs/MGLCoordinateSpan.html">MGLCoordinateSpan</a> + </li> + <li class="nav-group-task" data-name="MGLCoordinateSpanEqualToCoordinateSpan" data-url="Geometry.html#/c:MGLGeometry.h@F@MGLCoordinateSpanEqualToCoordinateSpan"> + <a title="MGLCoordinateSpanEqualToCoordinateSpan" class="nav-group-task-link" href="../Geometry.html#/c:MGLGeometry.h@F@MGLCoordinateSpanEqualToCoordinateSpan">MGLCoordinateSpanEqualToCoordinateSpan</a> + </li> + <li class="nav-group-task" data-name="MGLCoordinateSpanMake" data-url="Geometry.html#/c:MGLGeometry.h@F@MGLCoordinateSpanMake"> + <a title="MGLCoordinateSpanMake" class="nav-group-task-link" href="../Geometry.html#/c:MGLGeometry.h@F@MGLCoordinateSpanMake">MGLCoordinateSpanMake</a> + </li> + <li class="nav-group-task" data-name="MGLCoordinateSpanZero" data-url="Geometry.html#/c:@MGLCoordinateSpanZero"> + <a title="MGLCoordinateSpanZero" class="nav-group-task-link" href="../Geometry.html#/c:@MGLCoordinateSpanZero">MGLCoordinateSpanZero</a> + </li> + <li class="nav-group-task" data-name="MGLDegreesFromRadians" data-url="Geometry.html#/c:MGLGeometry.h@F@MGLDegreesFromRadians"> + <a title="MGLDegreesFromRadians" class="nav-group-task-link" href="../Geometry.html#/c:MGLGeometry.h@F@MGLDegreesFromRadians">MGLDegreesFromRadians</a> + </li> + <li class="nav-group-task" data-name="MGLRadiansFromDegrees" data-url="Geometry.html#/c:MGLGeometry.h@F@MGLRadiansFromDegrees"> + <a title="MGLRadiansFromDegrees" class="nav-group-task-link" href="../Geometry.html#/c:MGLGeometry.h@F@MGLRadiansFromDegrees">MGLRadiansFromDegrees</a> + </li> + <li class="nav-group-task" data-name="MGLStringFromCoordinateBounds" data-url="Geometry.html#/c:MGLGeometry.h@F@MGLStringFromCoordinateBounds"> + <a title="MGLStringFromCoordinateBounds" class="nav-group-task-link" href="../Geometry.html#/c:MGLGeometry.h@F@MGLStringFromCoordinateBounds">MGLStringFromCoordinateBounds</a> + </li> + </ul> + </li> + <li class="nav-group-name" data-name="Formatters"> + <a class="small-heading" href="../Formatters.html">Formatters<span class="anchor-icon" /></a> + <ul class="nav-group-tasks"> + <li class="nav-group-task" data-name="MGLClockDirectionFormatter" data-url="Classes/MGLClockDirectionFormatter.html"> + <a title="MGLClockDirectionFormatter" class="nav-group-task-link" href="../Classes/MGLClockDirectionFormatter.html">MGLClockDirectionFormatter</a> + </li> + <li class="nav-group-task" data-name="MGLCompassDirectionFormatter" data-url="Classes/MGLCompassDirectionFormatter.html"> + <a title="MGLCompassDirectionFormatter" class="nav-group-task-link" href="../Classes/MGLCompassDirectionFormatter.html">MGLCompassDirectionFormatter</a> + </li> + <li class="nav-group-task" data-name="MGLCoordinateFormatter" data-url="Classes/MGLCoordinateFormatter.html"> + <a title="MGLCoordinateFormatter" class="nav-group-task-link" href="../Classes/MGLCoordinateFormatter.html">MGLCoordinateFormatter</a> + </li> + <li class="nav-group-task" data-name="MGLDistanceFormatter" data-url="Classes/MGLDistanceFormatter.html"> + <a title="MGLDistanceFormatter" class="nav-group-task-link" href="../Classes/MGLDistanceFormatter.html">MGLDistanceFormatter</a> + </li> + </ul> + </li> + <li class="nav-group-name" data-name="Other Categories"> + <a class="small-heading" href="../Other Categories.html">Other Categories<span class="anchor-icon" /></a> + <ul class="nav-group-tasks"> + <li class="nav-group-task" data-name="NSExpression(MGLAdditions)" data-url="Categories/NSExpression(MGLAdditions).html"> + <a title="NSExpression(MGLAdditions)" class="nav-group-task-link" href="../Categories/NSExpression(MGLAdditions).html">NSExpression(MGLAdditions)</a> + </li> + <li class="nav-group-task" data-name="NSValue(MGLAdditions)" data-url="Categories/NSValue(MGLAdditions).html"> + <a title="NSValue(MGLAdditions)" class="nav-group-task-link" href="../Categories/NSValue(MGLAdditions).html">NSValue(MGLAdditions)</a> + </li> + <li class="nav-group-task" data-name="NSValue(MGLCircleStyleLayerAdditions)" data-url="Categories/NSValue(MGLCircleStyleLayerAdditions).html"> + <a title="NSValue(MGLCircleStyleLayerAdditions)" class="nav-group-task-link" href="../Categories/NSValue(MGLCircleStyleLayerAdditions).html">NSValue(MGLCircleStyleLayerAdditions)</a> + </li> + <li class="nav-group-task" data-name="NSValue(MGLFillExtrusionStyleLayerAdditions)" data-url="Categories/NSValue(MGLFillExtrusionStyleLayerAdditions).html"> + <a title="NSValue(MGLFillExtrusionStyleLayerAdditions)" class="nav-group-task-link" href="../Categories/NSValue(MGLFillExtrusionStyleLayerAdditions).html">NSValue(MGLFillExtrusionStyleLayerAdditions)</a> + </li> + <li class="nav-group-task" data-name="NSValue(MGLFillStyleLayerAdditions)" data-url="Categories/NSValue(MGLFillStyleLayerAdditions).html"> + <a title="NSValue(MGLFillStyleLayerAdditions)" class="nav-group-task-link" href="../Categories/NSValue(MGLFillStyleLayerAdditions).html">NSValue(MGLFillStyleLayerAdditions)</a> + </li> + <li class="nav-group-task" data-name="NSValue(MGLHillshadeStyleLayerAdditions)" data-url="Categories/NSValue(MGLHillshadeStyleLayerAdditions).html"> + <a title="NSValue(MGLHillshadeStyleLayerAdditions)" class="nav-group-task-link" href="../Categories/NSValue(MGLHillshadeStyleLayerAdditions).html">NSValue(MGLHillshadeStyleLayerAdditions)</a> + </li> + <li class="nav-group-task" data-name="NSValue(MGLLineStyleLayerAdditions)" data-url="Categories/NSValue(MGLLineStyleLayerAdditions).html"> + <a title="NSValue(MGLLineStyleLayerAdditions)" class="nav-group-task-link" href="../Categories/NSValue(MGLLineStyleLayerAdditions).html">NSValue(MGLLineStyleLayerAdditions)</a> + </li> + <li class="nav-group-task" data-name="NSValue(MGLRasterStyleLayerAdditions)" data-url="Categories/NSValue(MGLRasterStyleLayerAdditions).html"> + <a title="NSValue(MGLRasterStyleLayerAdditions)" class="nav-group-task-link" href="../Categories/NSValue(MGLRasterStyleLayerAdditions).html">NSValue(MGLRasterStyleLayerAdditions)</a> + </li> + <li class="nav-group-task" data-name="NSValue(MGLSymbolStyleLayerAdditions)" data-url="Categories/NSValue(MGLSymbolStyleLayerAdditions).html"> + <a title="NSValue(MGLSymbolStyleLayerAdditions)" class="nav-group-task-link" href="../Categories/NSValue(MGLSymbolStyleLayerAdditions).html">NSValue(MGLSymbolStyleLayerAdditions)</a> + </li> + </ul> + </li> + <li class="nav-group-name" data-name="Other Classes"> + <a class="small-heading" href="../Other Classes.html">Other Classes<span class="anchor-icon" /></a> + <ul class="nav-group-tasks"> + <li class="nav-group-task" data-name="MGLAttributionInfo" data-url="Classes/MGLAttributionInfo.html"> + <a title="MGLAttributionInfo" class="nav-group-task-link" href="../Classes/MGLAttributionInfo.html">MGLAttributionInfo</a> + </li> + </ul> + </li> + <li class="nav-group-name" data-name="Other Constants"> + <a class="small-heading" href="../Other Constants.html">Other Constants<span class="anchor-icon" /></a> + <ul class="nav-group-tasks"> + <li class="nav-group-task" data-name="MGLErrorDomain" data-url="Other Constants.html#/c:@MGLErrorDomain"> + <a title="MGLErrorDomain" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLErrorDomain">MGLErrorDomain</a> + </li> + <li class="nav-group-task" data-name="MGLExpressionInterpolationModeCubicBezier" data-url="Other Constants.html#/c:@MGLExpressionInterpolationModeCubicBezier"> + <a title="MGLExpressionInterpolationModeCubicBezier" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLExpressionInterpolationModeCubicBezier">MGLExpressionInterpolationModeCubicBezier</a> + </li> + <li class="nav-group-task" data-name="MGLExpressionInterpolationModeExponential" data-url="Other Constants.html#/c:@MGLExpressionInterpolationModeExponential"> + <a title="MGLExpressionInterpolationModeExponential" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLExpressionInterpolationModeExponential">MGLExpressionInterpolationModeExponential</a> + </li> + <li class="nav-group-task" data-name="MGLExpressionInterpolationModeLinear" data-url="Other Constants.html#/c:@MGLExpressionInterpolationModeLinear"> + <a title="MGLExpressionInterpolationModeLinear" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLExpressionInterpolationModeLinear">MGLExpressionInterpolationModeLinear</a> + </li> + <li class="nav-group-task" data-name="MGLOfflinePackErrorNotification" data-url="Other Constants.html#/c:@MGLOfflinePackErrorNotification"> + <a title="MGLOfflinePackErrorNotification" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLOfflinePackErrorNotification">MGLOfflinePackErrorNotification</a> + </li> + <li class="nav-group-task" data-name="MGLOfflinePackMaximumMapboxTilesReachedNotification" data-url="Other Constants.html#/c:@MGLOfflinePackMaximumMapboxTilesReachedNotification"> + <a title="MGLOfflinePackMaximumMapboxTilesReachedNotification" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLOfflinePackMaximumMapboxTilesReachedNotification">MGLOfflinePackMaximumMapboxTilesReachedNotification</a> + </li> + <li class="nav-group-task" data-name="MGLOfflinePackProgressChangedNotification" data-url="Other Constants.html#/c:@MGLOfflinePackProgressChangedNotification"> + <a title="MGLOfflinePackProgressChangedNotification" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLOfflinePackProgressChangedNotification">MGLOfflinePackProgressChangedNotification</a> + </li> + <li class="nav-group-task" data-name="MGLOfflinePackUserInfoKeyError" data-url="Other Constants.html#/c:@MGLOfflinePackUserInfoKeyError"> + <a title="MGLOfflinePackUserInfoKeyError" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLOfflinePackUserInfoKeyError">MGLOfflinePackUserInfoKeyError</a> + </li> + <li class="nav-group-task" data-name="MGLOfflinePackUserInfoKeyMaximumCount" data-url="Other Constants.html#/c:@MGLOfflinePackUserInfoKeyMaximumCount"> + <a title="MGLOfflinePackUserInfoKeyMaximumCount" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLOfflinePackUserInfoKeyMaximumCount">MGLOfflinePackUserInfoKeyMaximumCount</a> + </li> + <li class="nav-group-task" data-name="MGLOfflinePackUserInfoKeyProgress" data-url="Other Constants.html#/c:@MGLOfflinePackUserInfoKeyProgress"> + <a title="MGLOfflinePackUserInfoKeyProgress" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLOfflinePackUserInfoKeyProgress">MGLOfflinePackUserInfoKeyProgress</a> + </li> + <li class="nav-group-task" data-name="MGLOfflinePackUserInfoKeyState" data-url="Other Constants.html#/c:@MGLOfflinePackUserInfoKeyState"> + <a title="MGLOfflinePackUserInfoKeyState" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLOfflinePackUserInfoKeyState">MGLOfflinePackUserInfoKeyState</a> + </li> + <li class="nav-group-task" data-name="MGLShapeSourceOptionBuffer" data-url="Other Constants.html#/c:@MGLShapeSourceOptionBuffer"> + <a title="MGLShapeSourceOptionBuffer" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLShapeSourceOptionBuffer">MGLShapeSourceOptionBuffer</a> + </li> + <li class="nav-group-task" data-name="MGLShapeSourceOptionClipsCoordinates" data-url="Other Constants.html#/c:@MGLShapeSourceOptionClipsCoordinates"> + <a title="MGLShapeSourceOptionClipsCoordinates" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLShapeSourceOptionClipsCoordinates">MGLShapeSourceOptionClipsCoordinates</a> + </li> + <li class="nav-group-task" data-name="MGLShapeSourceOptionClusterRadius" data-url="Other Constants.html#/c:@MGLShapeSourceOptionClusterRadius"> + <a title="MGLShapeSourceOptionClusterRadius" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLShapeSourceOptionClusterRadius">MGLShapeSourceOptionClusterRadius</a> + </li> + <li class="nav-group-task" data-name="MGLShapeSourceOptionClustered" data-url="Other Constants.html#/c:@MGLShapeSourceOptionClustered"> + <a title="MGLShapeSourceOptionClustered" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLShapeSourceOptionClustered">MGLShapeSourceOptionClustered</a> + </li> + <li class="nav-group-task" data-name="MGLShapeSourceOptionMaximumZoomLevel" data-url="Other Constants.html#/c:@MGLShapeSourceOptionMaximumZoomLevel"> + <a title="MGLShapeSourceOptionMaximumZoomLevel" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLShapeSourceOptionMaximumZoomLevel">MGLShapeSourceOptionMaximumZoomLevel</a> + </li> + <li class="nav-group-task" data-name="MGLShapeSourceOptionMaximumZoomLevelForClustering" data-url="Other Constants.html#/c:@MGLShapeSourceOptionMaximumZoomLevelForClustering"> + <a title="MGLShapeSourceOptionMaximumZoomLevelForClustering" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLShapeSourceOptionMaximumZoomLevelForClustering">MGLShapeSourceOptionMaximumZoomLevelForClustering</a> + </li> + <li class="nav-group-task" data-name="MGLShapeSourceOptionMinimumZoomLevel" data-url="Other Constants.html#/c:@MGLShapeSourceOptionMinimumZoomLevel"> + <a title="MGLShapeSourceOptionMinimumZoomLevel" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLShapeSourceOptionMinimumZoomLevel">MGLShapeSourceOptionMinimumZoomLevel</a> + </li> + <li class="nav-group-task" data-name="MGLShapeSourceOptionSimplificationTolerance" data-url="Other Constants.html#/c:@MGLShapeSourceOptionSimplificationTolerance"> + <a title="MGLShapeSourceOptionSimplificationTolerance" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLShapeSourceOptionSimplificationTolerance">MGLShapeSourceOptionSimplificationTolerance</a> + </li> + <li class="nav-group-task" data-name="MGLShapeSourceOptionWrapsCoordinates" data-url="Other Constants.html#/c:@MGLShapeSourceOptionWrapsCoordinates"> + <a title="MGLShapeSourceOptionWrapsCoordinates" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLShapeSourceOptionWrapsCoordinates">MGLShapeSourceOptionWrapsCoordinates</a> + </li> + <li class="nav-group-task" data-name="MGLStyleDefaultVersion" data-url="Other Constants.html#/c:MGLStyle.h@MGLStyleDefaultVersion"> + <a title="MGLStyleDefaultVersion" class="nav-group-task-link" href="../Other Constants.html#/c:MGLStyle.h@MGLStyleDefaultVersion">MGLStyleDefaultVersion</a> + </li> + <li class="nav-group-task" data-name="MGLTileSourceOptionAttributionHTMLString" data-url="Other Constants.html#/c:@MGLTileSourceOptionAttributionHTMLString"> + <a title="MGLTileSourceOptionAttributionHTMLString" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLTileSourceOptionAttributionHTMLString">MGLTileSourceOptionAttributionHTMLString</a> + </li> + <li class="nav-group-task" data-name="MGLTileSourceOptionAttributionInfos" data-url="Other Constants.html#/c:@MGLTileSourceOptionAttributionInfos"> + <a title="MGLTileSourceOptionAttributionInfos" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLTileSourceOptionAttributionInfos">MGLTileSourceOptionAttributionInfos</a> + </li> + <li class="nav-group-task" data-name="MGLTileSourceOptionCoordinateBounds" data-url="Other Constants.html#/c:@MGLTileSourceOptionCoordinateBounds"> + <a title="MGLTileSourceOptionCoordinateBounds" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLTileSourceOptionCoordinateBounds">MGLTileSourceOptionCoordinateBounds</a> + </li> + <li class="nav-group-task" data-name="MGLTileSourceOptionDEMEncoding" data-url="Other Constants.html#/c:@MGLTileSourceOptionDEMEncoding"> + <a title="MGLTileSourceOptionDEMEncoding" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLTileSourceOptionDEMEncoding">MGLTileSourceOptionDEMEncoding</a> + </li> + <li class="nav-group-task" data-name="MGLTileSourceOptionMaximumZoomLevel" data-url="Other Constants.html#/c:@MGLTileSourceOptionMaximumZoomLevel"> + <a title="MGLTileSourceOptionMaximumZoomLevel" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLTileSourceOptionMaximumZoomLevel">MGLTileSourceOptionMaximumZoomLevel</a> + </li> + <li class="nav-group-task" data-name="MGLTileSourceOptionMinimumZoomLevel" data-url="Other Constants.html#/c:@MGLTileSourceOptionMinimumZoomLevel"> + <a title="MGLTileSourceOptionMinimumZoomLevel" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLTileSourceOptionMinimumZoomLevel">MGLTileSourceOptionMinimumZoomLevel</a> + </li> + <li class="nav-group-task" data-name="MGLTileSourceOptionTileCoordinateSystem" data-url="Other Constants.html#/c:@MGLTileSourceOptionTileCoordinateSystem"> + <a title="MGLTileSourceOptionTileCoordinateSystem" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLTileSourceOptionTileCoordinateSystem">MGLTileSourceOptionTileCoordinateSystem</a> + </li> + <li class="nav-group-task" data-name="MGLTileSourceOptionTileSize" data-url="Other Constants.html#/c:@MGLTileSourceOptionTileSize"> + <a title="MGLTileSourceOptionTileSize" class="nav-group-task-link" href="../Other Constants.html#/c:@MGLTileSourceOptionTileSize">MGLTileSourceOptionTileSize</a> + </li> + <li class="nav-group-task" data-name="MapboxVersionNumber" data-url="Other Constants.html#/c:@MapboxVersionNumber"> + <a title="MapboxVersionNumber" class="nav-group-task-link" href="../Other Constants.html#/c:@MapboxVersionNumber">MapboxVersionNumber</a> + </li> + <li class="nav-group-task" data-name="MapboxVersionString" data-url="Other Constants.html#/c:@MapboxVersionString"> + <a title="MapboxVersionString" class="nav-group-task-link" href="../Other Constants.html#/c:@MapboxVersionString">MapboxVersionString</a> + </li> + </ul> + </li> + <li class="nav-group-name" data-name="Other Enumerations"> + <a class="small-heading" href="../Other Enumerations.html">Other Enumerations<span class="anchor-icon" /></a> + <ul class="nav-group-tasks"> + <li class="nav-group-task" data-name="MGLAttributionInfoStyle" data-url="Enums/MGLAttributionInfoStyle.html"> + <a title="MGLAttributionInfoStyle" class="nav-group-task-link" href="../Enums/MGLAttributionInfoStyle.html">MGLAttributionInfoStyle</a> + </li> + <li class="nav-group-task" data-name="MGLCirclePitchAlignment" data-url="Enums/MGLCirclePitchAlignment.html"> + <a title="MGLCirclePitchAlignment" class="nav-group-task-link" href="../Enums/MGLCirclePitchAlignment.html">MGLCirclePitchAlignment</a> + </li> + <li class="nav-group-task" data-name="MGLCircleScaleAlignment" data-url="Enums/MGLCircleScaleAlignment.html"> + <a title="MGLCircleScaleAlignment" class="nav-group-task-link" href="../Enums/MGLCircleScaleAlignment.html">MGLCircleScaleAlignment</a> + </li> + <li class="nav-group-task" data-name="MGLCircleTranslationAnchor" data-url="Enums/MGLCircleTranslationAnchor.html"> + <a title="MGLCircleTranslationAnchor" class="nav-group-task-link" href="../Enums/MGLCircleTranslationAnchor.html">MGLCircleTranslationAnchor</a> + </li> + <li class="nav-group-task" data-name="MGLDEMEncoding" data-url="Enums/MGLDEMEncoding.html"> + <a title="MGLDEMEncoding" class="nav-group-task-link" href="../Enums/MGLDEMEncoding.html">MGLDEMEncoding</a> + </li> + <li class="nav-group-task" data-name="MGLErrorCode" data-url="Enums/MGLErrorCode.html"> + <a title="MGLErrorCode" class="nav-group-task-link" href="../Enums/MGLErrorCode.html">MGLErrorCode</a> + </li> + <li class="nav-group-task" data-name="MGLFillExtrusionTranslationAnchor" data-url="Enums/MGLFillExtrusionTranslationAnchor.html"> + <a title="MGLFillExtrusionTranslationAnchor" class="nav-group-task-link" href="../Enums/MGLFillExtrusionTranslationAnchor.html">MGLFillExtrusionTranslationAnchor</a> + </li> + <li class="nav-group-task" data-name="MGLFillTranslationAnchor" data-url="Enums/MGLFillTranslationAnchor.html"> + <a title="MGLFillTranslationAnchor" class="nav-group-task-link" href="../Enums/MGLFillTranslationAnchor.html">MGLFillTranslationAnchor</a> + </li> + <li class="nav-group-task" data-name="MGLHillshadeIlluminationAnchor" data-url="Enums/MGLHillshadeIlluminationAnchor.html"> + <a title="MGLHillshadeIlluminationAnchor" class="nav-group-task-link" href="../Enums/MGLHillshadeIlluminationAnchor.html">MGLHillshadeIlluminationAnchor</a> + </li> + <li class="nav-group-task" data-name="MGLIconAnchor" data-url="Enums/MGLIconAnchor.html"> + <a title="MGLIconAnchor" class="nav-group-task-link" href="../Enums/MGLIconAnchor.html">MGLIconAnchor</a> + </li> + <li class="nav-group-task" data-name="MGLIconPitchAlignment" data-url="Enums/MGLIconPitchAlignment.html"> + <a title="MGLIconPitchAlignment" class="nav-group-task-link" href="../Enums/MGLIconPitchAlignment.html">MGLIconPitchAlignment</a> + </li> + <li class="nav-group-task" data-name="MGLIconRotationAlignment" data-url="Enums/MGLIconRotationAlignment.html"> + <a title="MGLIconRotationAlignment" class="nav-group-task-link" href="../Enums/MGLIconRotationAlignment.html">MGLIconRotationAlignment</a> + </li> + <li class="nav-group-task" data-name="MGLIconTextFit" data-url="Enums/MGLIconTextFit.html"> + <a title="MGLIconTextFit" class="nav-group-task-link" href="../Enums/MGLIconTextFit.html">MGLIconTextFit</a> + </li> + <li class="nav-group-task" data-name="MGLIconTranslationAnchor" data-url="Enums/MGLIconTranslationAnchor.html"> + <a title="MGLIconTranslationAnchor" class="nav-group-task-link" href="../Enums/MGLIconTranslationAnchor.html">MGLIconTranslationAnchor</a> + </li> + <li class="nav-group-task" data-name="MGLLightAnchor" data-url="Enums/MGLLightAnchor.html"> + <a title="MGLLightAnchor" class="nav-group-task-link" href="../Enums/MGLLightAnchor.html">MGLLightAnchor</a> + </li> + <li class="nav-group-task" data-name="MGLLineCap" data-url="Enums/MGLLineCap.html"> + <a title="MGLLineCap" class="nav-group-task-link" href="../Enums/MGLLineCap.html">MGLLineCap</a> + </li> + <li class="nav-group-task" data-name="MGLLineJoin" data-url="Enums/MGLLineJoin.html"> + <a title="MGLLineJoin" class="nav-group-task-link" href="../Enums/MGLLineJoin.html">MGLLineJoin</a> + </li> + <li class="nav-group-task" data-name="MGLLineTranslationAnchor" data-url="Enums/MGLLineTranslationAnchor.html"> + <a title="MGLLineTranslationAnchor" class="nav-group-task-link" href="../Enums/MGLLineTranslationAnchor.html">MGLLineTranslationAnchor</a> + </li> + <li class="nav-group-task" data-name="MGLMapDebugMaskOptions" data-url="Enums/MGLMapDebugMaskOptions.html"> + <a title="MGLMapDebugMaskOptions" class="nav-group-task-link" href="../Enums/MGLMapDebugMaskOptions.html">MGLMapDebugMaskOptions</a> + </li> + <li class="nav-group-task" data-name="MGLRasterResamplingMode" data-url="Enums/MGLRasterResamplingMode.html"> + <a title="MGLRasterResamplingMode" class="nav-group-task-link" href="../Enums/MGLRasterResamplingMode.html">MGLRasterResamplingMode</a> + </li> + <li class="nav-group-task" data-name="MGLResourceKind" data-url="Enums/MGLResourceKind.html"> + <a title="MGLResourceKind" class="nav-group-task-link" href="../Enums/MGLResourceKind.html">MGLResourceKind</a> + </li> + <li class="nav-group-task" data-name="MGLSymbolPlacement" data-url="Enums/MGLSymbolPlacement.html"> + <a title="MGLSymbolPlacement" class="nav-group-task-link" href="../Enums/MGLSymbolPlacement.html">MGLSymbolPlacement</a> + </li> + <li class="nav-group-task" data-name="MGLTextAnchor" data-url="Enums/MGLTextAnchor.html"> + <a title="MGLTextAnchor" class="nav-group-task-link" href="../Enums/MGLTextAnchor.html">MGLTextAnchor</a> + </li> + <li class="nav-group-task" data-name="MGLTextJustification" data-url="Enums/MGLTextJustification.html"> + <a title="MGLTextJustification" class="nav-group-task-link" href="../Enums/MGLTextJustification.html">MGLTextJustification</a> + </li> + <li class="nav-group-task" data-name="MGLTextPitchAlignment" data-url="Enums/MGLTextPitchAlignment.html"> + <a title="MGLTextPitchAlignment" class="nav-group-task-link" href="../Enums/MGLTextPitchAlignment.html">MGLTextPitchAlignment</a> + </li> + <li class="nav-group-task" data-name="MGLTextRotationAlignment" data-url="Enums/MGLTextRotationAlignment.html"> + <a title="MGLTextRotationAlignment" class="nav-group-task-link" href="../Enums/MGLTextRotationAlignment.html">MGLTextRotationAlignment</a> + </li> + <li class="nav-group-task" data-name="MGLTextTransform" data-url="Enums/MGLTextTransform.html"> + <a title="MGLTextTransform" class="nav-group-task-link" href="../Enums/MGLTextTransform.html">MGLTextTransform</a> + </li> + <li class="nav-group-task" data-name="MGLTextTranslationAnchor" data-url="Enums/MGLTextTranslationAnchor.html"> + <a title="MGLTextTranslationAnchor" class="nav-group-task-link" href="../Enums/MGLTextTranslationAnchor.html">MGLTextTranslationAnchor</a> + </li> + <li class="nav-group-task" data-name="MGLTileCoordinateSystem" data-url="Enums/MGLTileCoordinateSystem.html"> + <a title="MGLTileCoordinateSystem" class="nav-group-task-link" href="../Enums/MGLTileCoordinateSystem.html">MGLTileCoordinateSystem</a> + </li> + </ul> + </li> + <li class="nav-group-name" data-name="Other Protocols"> + <a class="small-heading" href="../Other Protocols.html">Other Protocols<span class="anchor-icon" /></a> + <ul class="nav-group-tasks"> + <li class="nav-group-task" data-name="MGLComputedShapeSourceDataSource" data-url="Protocols/MGLComputedShapeSourceDataSource.html"> + <a title="MGLComputedShapeSourceDataSource" class="nav-group-task-link" href="../Protocols/MGLComputedShapeSourceDataSource.html">MGLComputedShapeSourceDataSource</a> + </li> + <li class="nav-group-task" data-name="MGLOfflineStorageDelegate" data-url="Protocols/MGLOfflineStorageDelegate.html"> + <a title="MGLOfflineStorageDelegate" class="nav-group-task-link" href="../Protocols/MGLOfflineStorageDelegate.html">MGLOfflineStorageDelegate</a> + </li> + </ul> + </li> + <li class="nav-group-name" data-name="Other Type Definitions"> + <a class="small-heading" href="../Other Type Definitions.html">Other Type Definitions<span class="anchor-icon" /></a> + <ul class="nav-group-tasks"> + <li class="nav-group-task" data-name="MGLMapSnapshotCompletionHandler" data-url="Other Type Definitions.html#/c:MGLMapSnapshotter.h@T@MGLMapSnapshotCompletionHandler"> + <a title="MGLMapSnapshotCompletionHandler" class="nav-group-task-link" href="../Other Type Definitions.html#/c:MGLMapSnapshotter.h@T@MGLMapSnapshotCompletionHandler">MGLMapSnapshotCompletionHandler</a> + </li> + <li class="nav-group-task" data-name="MGLOfflinePackAdditionCompletionHandler" data-url="Other Type Definitions.html#/c:MGLOfflineStorage.h@T@MGLOfflinePackAdditionCompletionHandler"> + <a title="MGLOfflinePackAdditionCompletionHandler" class="nav-group-task-link" href="../Other Type Definitions.html#/c:MGLOfflineStorage.h@T@MGLOfflinePackAdditionCompletionHandler">MGLOfflinePackAdditionCompletionHandler</a> + </li> + <li class="nav-group-task" data-name="MGLOfflinePackRemovalCompletionHandler" data-url="Other Type Definitions.html#/c:MGLOfflineStorage.h@T@MGLOfflinePackRemovalCompletionHandler"> + <a title="MGLOfflinePackRemovalCompletionHandler" class="nav-group-task-link" href="../Other Type Definitions.html#/c:MGLOfflineStorage.h@T@MGLOfflinePackRemovalCompletionHandler">MGLOfflinePackRemovalCompletionHandler</a> + </li> + <li class="nav-group-task" data-name="MGLOfflinePackUserInfoKey" data-url="Other Type Definitions.html#/c:MGLOfflineStorage.h@T@MGLOfflinePackUserInfoKey"> + <a title="MGLOfflinePackUserInfoKey" class="nav-group-task-link" href="../Other Type Definitions.html#/c:MGLOfflineStorage.h@T@MGLOfflinePackUserInfoKey">MGLOfflinePackUserInfoKey</a> + </li> + <li class="nav-group-task" data-name="MGLShapeSourceOption" data-url="Other Type Definitions.html#/c:MGLShapeSource.h@T@MGLShapeSourceOption"> + <a title="MGLShapeSourceOption" class="nav-group-task-link" href="../Other Type Definitions.html#/c:MGLShapeSource.h@T@MGLShapeSourceOption">MGLShapeSourceOption</a> + </li> + <li class="nav-group-task" data-name="MGLTileSourceOption" data-url="Other Type Definitions.html#/c:MGLTileSource.h@T@MGLTileSourceOption"> + <a title="MGLTileSourceOption" class="nav-group-task-link" href="../Other Type Definitions.html#/c:MGLTileSource.h@T@MGLTileSourceOption">MGLTileSourceOption</a> + </li> + </ul> + </li> + <li class="nav-group-name" data-name="Other Functions"> + <a class="small-heading" href="../Other Functions.html">Other Functions<span class="anchor-icon" /></a> + <ul class="nav-group-tasks"> + <li class="nav-group-task" data-name="MGLCoordinateQuadFromCoordinateBounds" data-url="Other Functions.html#/c:MGLGeometry.h@F@MGLCoordinateQuadFromCoordinateBounds"> + <a title="MGLCoordinateQuadFromCoordinateBounds" class="nav-group-task-link" href="../Other Functions.html#/c:MGLGeometry.h@F@MGLCoordinateQuadFromCoordinateBounds">MGLCoordinateQuadFromCoordinateBounds</a> + </li> + <li class="nav-group-task" data-name="MGLCoordinateQuadMake" data-url="Other Functions.html#/c:MGLGeometry.h@F@MGLCoordinateQuadMake"> + <a title="MGLCoordinateQuadMake" class="nav-group-task-link" href="../Other Functions.html#/c:MGLGeometry.h@F@MGLCoordinateQuadMake">MGLCoordinateQuadMake</a> + </li> + <li class="nav-group-task" data-name="MGLMapPointForCoordinate" data-url="Other Functions.html#/c:@F@MGLMapPointForCoordinate"> + <a title="MGLMapPointForCoordinate" class="nav-group-task-link" href="../Other Functions.html#/c:@F@MGLMapPointForCoordinate">MGLMapPointForCoordinate</a> + </li> + <li class="nav-group-task" data-name="MGLMapPointMake" data-url="Other Functions.html#/c:MGLGeometry.h@F@MGLMapPointMake"> + <a title="MGLMapPointMake" class="nav-group-task-link" href="../Other Functions.html#/c:MGLGeometry.h@F@MGLMapPointMake">MGLMapPointMake</a> + </li> + <li class="nav-group-task" data-name="MGLSphericalPositionMake" data-url="Other Functions.html#/c:MGLLight.h@F@MGLSphericalPositionMake"> + <a title="MGLSphericalPositionMake" class="nav-group-task-link" href="../Other Functions.html#/c:MGLLight.h@F@MGLSphericalPositionMake">MGLSphericalPositionMake</a> + </li> + <li class="nav-group-task" data-name="MGLStringFromCoordinateQuad" data-url="Other Functions.html#/c:MGLGeometry.h@F@MGLStringFromCoordinateQuad"> + <a title="MGLStringFromCoordinateQuad" class="nav-group-task-link" href="../Other Functions.html#/c:MGLGeometry.h@F@MGLStringFromCoordinateQuad">MGLStringFromCoordinateQuad</a> + </li> + <li class="nav-group-task" data-name="MGLTransitionMake" data-url="Other Functions.html#/c:MGLTypes.h@F@MGLTransitionMake"> + <a title="MGLTransitionMake" class="nav-group-task-link" href="../Other Functions.html#/c:MGLTypes.h@F@MGLTransitionMake">MGLTransitionMake</a> + </li> + </ul> + </li> + <li class="nav-group-name" data-name="Other Structures"> + <a class="small-heading" href="../Other Structures.html">Other Structures<span class="anchor-icon" /></a> + <ul class="nav-group-tasks"> + <li class="nav-group-task" data-name="MGLCoordinateQuad" data-url="Structs/MGLCoordinateQuad.html"> + <a title="MGLCoordinateQuad" class="nav-group-task-link" href="../Structs/MGLCoordinateQuad.html">MGLCoordinateQuad</a> + </li> + <li class="nav-group-task" data-name="MGLSphericalPosition" data-url="Structs/MGLSphericalPosition.html"> + <a title="MGLSphericalPosition" class="nav-group-task-link" href="../Structs/MGLSphericalPosition.html">MGLSphericalPosition</a> + </li> + <li class="nav-group-task" data-name="MGLTransition" data-url="Structs/MGLTransition.html"> + <a title="MGLTransition" class="nav-group-task-link" href="../Structs/MGLTransition.html">MGLTransition</a> + </li> + </ul> + </li> + </ul> + </nav> + <article class="main-content"> + + <section class="section"> + <div class="section-content"> + <a href="#/MGLSymbolStyleLayer"><h1 id="MGLSymbolStyleLayer">MGLSymbolStyleLayer<span class="anchor-icon" /></h1></a> + <div class="declaration"> + <div class="language"> + <pre class="highlight objective_c"><code> +<span class="k">@interface</span> <span class="nc">MGLSymbolStyleLayer</span> <span class="p">:</span> <span class="nc"><a href="../Classes/MGLVectorStyleLayer.html">MGLVectorStyleLayer</a></span></code></pre> + + </div> + </div> + <p>An <code>MGLSymbolStyleLayer</code> is a style layer that renders icon and text labels at +points or along lines on the map.</p> + +<p>Use a symbol style layer to configure the visual appearance of feature labels. +These features can come from vector tiles loaded by an <code><a href="../Classes/MGLVectorTileSource.html">MGLVectorTileSource</a></code> +object, or they can be <code><a href="../Classes/MGLShape.html">MGLShape</a></code> or <code><a href="../Protocols/MGLFeature.html">MGLFeature</a></code> instances in an +<code><a href="../Classes/MGLShapeSource.html">MGLShapeSource</a></code> or <code><a href="../Classes/MGLComputedShapeSource.html">MGLComputedShapeSource</a></code> object.</p> + +<p>You can access an existing symbol style layer using the +<code><a href="../Classes/MGLStyle.html#/c:objc(cs)MGLStyle(im)layerWithIdentifier:">-[MGLStyle layerWithIdentifier:]</a></code> method if you know its identifier; +otherwise, find it using the <code><a href="../Classes/MGLStyle.html#/c:objc(cs)MGLStyle(py)layers">MGLStyle.layers</a></code> property. You can also create a +new symbol style layer and add it to the style using a method such as +<code><a href="../Classes/MGLStyle.html#/c:objc(cs)MGLStyle(im)addLayer:">-[MGLStyle addLayer:]</a></code>.</p> +<h3 id='example' class='heading'>Example</h3> +<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">layer</span> <span class="o">=</span> <span class="kt">MGLSymbolStyleLayer</span><span class="p">(</span><span class="nv">identifier</span><span class="p">:</span> <span class="s">"coffeeshops"</span><span class="p">,</span> <span class="nv">source</span><span class="p">:</span> <span class="n">pois</span><span class="p">)</span> +<span class="n">layer</span><span class="o">.</span><span class="n">sourceLayerIdentifier</span> <span class="o">=</span> <span class="s">"pois"</span> +<span class="n">layer</span><span class="o">.</span><span class="n">iconImageName</span> <span class="o">=</span> <span class="kt">NSExpression</span><span class="p">(</span><span class="nv">forConstantValue</span><span class="p">:</span> <span class="s">"coffee"</span><span class="p">)</span> +<span class="n">layer</span><span class="o">.</span><span class="n">iconScale</span> <span class="o">=</span> <span class="kt">NSExpression</span><span class="p">(</span><span class="nv">forConstantValue</span><span class="p">:</span> <span class="mf">0.5</span><span class="p">)</span> +<span class="n">layer</span><span class="o">.</span><span class="n">text</span> <span class="o">=</span> <span class="kt">NSExpression</span><span class="p">(</span><span class="nv">forKeyPath</span><span class="p">:</span> <span class="s">"name"</span><span class="p">)</span> +<span class="n">layer</span><span class="o">.</span><span class="n">textTranslation</span> <span class="o">=</span> <span class="kt">NSExpression</span><span class="p">(</span><span class="nv">forConstantValue</span><span class="p">:</span> <span class="kt">NSValue</span><span class="p">(</span><span class="nv">cgVector</span><span class="p">:</span> <span class="kt">CGVector</span><span class="p">(</span><span class="nv">dx</span><span class="p">:</span> <span class="mi">10</span><span class="p">,</span> <span class="nv">dy</span><span class="p">:</span> <span class="mi">0</span><span class="p">)))</span> +<span class="n">layer</span><span class="o">.</span><span class="n">textJustification</span> <span class="o">=</span> <span class="kt">NSExpression</span><span class="p">(</span><span class="nv">forConstantValue</span><span class="p">:</span> <span class="s">"left"</span><span class="p">)</span> +<span class="n">layer</span><span class="o">.</span><span class="n">textAnchor</span> <span class="o">=</span> <span class="kt">NSExpression</span><span class="p">(</span><span class="nv">forConstantValue</span><span class="p">:</span> <span class="s">"left"</span><span class="p">)</span> +<span class="n">layer</span><span class="o">.</span><span class="n">predicate</span> <span class="o">=</span> <span class="kt">NSPredicate</span><span class="p">(</span><span class="nv">format</span><span class="p">:</span> <span class="s">"%K == %@"</span><span class="p">,</span> <span class="s">"venue-type"</span><span class="p">,</span> <span class="s">"coffee"</span><span class="p">)</span> +<span class="n">mapView</span><span class="o">.</span><span class="n">style</span><span class="p">?</span><span class="o">.</span><span class="nf">addLayer</span><span class="p">(</span><span class="n">layer</span><span class="p">)</span> +</code></pre> + + </div> + </section> + + <section class="section"> + <div class="section-content"> + <div class="task-group"> + <ul class="item-container"> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(im)initWithIdentifier:source:"></a> + <a name="//apple_ref/objc/Method/-initWithIdentifier:source:" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(im)initWithIdentifier:source:"><span class="token-name">-initWithIdentifier:source:</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Returns a symbol style layer initialized with an identifier and source.</p> + +<p>After initializing and configuring the style layer, add it to a map view’s +style using the <code><a href="../Classes/MGLStyle.html#/c:objc(cs)MGLStyle(im)addLayer:">-[MGLStyle addLayer:]</a></code> or +<code><a href="../Classes/MGLStyle.html#/c:objc(cs)MGLStyle(im)insertLayer:belowLayer:">-[MGLStyle insertLayer:belowLayer:]</a></code> method.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">-</span> <span class="p">(</span><span class="n">nonnull</span> <span class="n">instancetype</span><span class="p">)</span><span class="nf">initWithIdentifier</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSString</span> <span class="o">*</span><span class="p">)</span><span class="nv">identifier</span> + <span class="nf">source</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLSource.html">MGLSource</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">source</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="nf">init</span><span class="p">(</span><span class="nv">identifier</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">source</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLSource.html">MGLSource</a></span><span class="p">)</span></code></pre> + + </div> + </div> + <div> + <h4>Parameters</h4> + <table class="graybox"> + <tbody> + <tr> + <td> + <code> + identifier + </code> + </td> + <td> + <div> + <p>A string that uniquely identifies the source in the style to +which it is added.</p> + </div> + </td> + </tr> + <tr> + <td> + <code> + source + </code> + </td> + <td> + <div> + <p>The source from which to obtain the data to style. If the source +has not yet been added to the current style, the behavior is undefined.</p> + </div> + </td> + </tr> + </tbody> + </table> + </div> + <div> + <h4>Return Value</h4> + <p>An initialized foreground style layer.</p> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L364"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + </ul> + </div> + <div class="task-group"> + <div class="task-name-container"> + <a name="/Accessing%20the%20Layout%20Attributes"></a> + <a name="//apple_ref/objc/Section/Accessing the Layout Attributes" class="dashAnchor"></a> + <a href="#/Accessing%20the%20Layout%20Attributes"> + <h3 id="Accessing%20the%20Layout%20Attributes" class="section-name">Accessing the Layout Attributes<span class="anchor-icon" /></h3> + </a> + </div> + <ul class="item-container"> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconAllowsOverlap"></a> + <a name="//apple_ref/objc/Property/iconAllowsOverlap" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconAllowsOverlap"><span class="token-name">iconAllowsOverlap</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>If true, the icon will be visible even if it collides with other previously +drawn symbols.</p> + +<p>The default value of this property is an expression that evaluates to <code>NO</code>. Set +this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>. +Otherwise, it is ignored.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#layout-symbol-icon-allow-overlap"><code>icon-allow-overlap</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant Boolean values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation functions to the +<code>$zoomLevel</code> variable or applying interpolation or step functions to feature +attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">iconAllowsOverlap</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconAllowsOverlap</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L394"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconAnchor"></a> + <a name="//apple_ref/objc/Property/iconAnchor" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconAnchor"><span class="token-name">iconAnchor</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Part of the icon placed closest to the anchor.</p> + +<p>The default value of this property is an expression that evaluates to <code>center</code>. +Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>. +Otherwise, it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code><a href="../Enums/MGLIconAnchor.html">MGLIconAnchor</a></code> values</li> +<li>Any of the following constant string values: + +<ul> +<li><code>center</code>: The center of the icon is placed closest to the anchor.</li> +<li><code>left</code>: The left side of the icon is placed closest to the anchor.</li> +<li><code>right</code>: The right side of the icon is placed closest to the anchor.</li> +<li><code>top</code>: The top of the icon is placed closest to the anchor.</li> +<li><code>bottom</code>: The bottom of the icon is placed closest to the anchor.</li> +<li><code>top-left</code>: The top left corner of the icon is placed closest to the +anchor.</li> +<li><code>top-right</code>: The top right corner of the icon is placed closest to the +anchor.</li> +<li><code>bottom-left</code>: The bottom left corner of the icon is placed closest to the +anchor.</li> +<li><code>bottom-right</code>: The bottom right corner of the icon is placed closest to +the anchor.</li> +</ul></li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">iconAnchor</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconAnchor</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L431"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconIgnoresPlacement"></a> + <a name="//apple_ref/objc/Property/iconIgnoresPlacement" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconIgnoresPlacement"><span class="token-name">iconIgnoresPlacement</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>If true, other symbols can be visible even if they collide with the icon.</p> + +<p>The default value of this property is an expression that evaluates to <code>NO</code>. Set +this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>. +Otherwise, it is ignored.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#layout-symbol-icon-ignore-placement"><code>icon-ignore-placement</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant Boolean values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation functions to the +<code>$zoomLevel</code> variable or applying interpolation or step functions to feature +attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">iconIgnoresPlacement</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconIgnoresPlacement</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L458"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName"></a> + <a name="//apple_ref/objc/Property/iconImageName" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName"><span class="token-name">iconImageName</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Name of a style image to use for drawing an image background.</p> + +<p>Use the <code>+[MGLStyle setImage:forName:]</code> method to associate an image with a +name that you can set this property to.</p> + +<p>Within a constant string value, a feature attribute name enclosed in curly +braces (e.g., <code>{token}</code>) is replaced with the value of the named attribute. +Tokens inside non-constant expressions are ignored; instead, use <code>mgl_join:</code> +and key path expressions.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#layout-symbol-icon-image"><code>icon-image</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant string values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">iconImageName</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconImageName</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L487"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconOffset"></a> + <a name="//apple_ref/objc/Property/iconOffset" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconOffset"><span class="token-name">iconOffset</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Offset distance of icon from its anchor.</p> + +<p>The default value of this property is an expression that evaluates to an +<code>NSValue</code> object containing a <code>CGVector</code> struct set to 0 rightward and 0 +upward. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>. +Otherwise, it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code>CGVector</code> values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">iconOffset</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconOffset</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L533"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconOptional"></a> + <a name="//apple_ref/objc/Property/iconOptional" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconOptional"><span class="token-name">iconOptional</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>If true, text will display without their corresponding icons when the icon +collides with other symbols and the text does not.</p> + +<p>The default value of this property is an expression that evaluates to <code>NO</code>. Set +this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>, and +<code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant Boolean values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation functions to the +<code>$zoomLevel</code> variable or applying interpolation or step functions to feature +attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">getter</span><span class="o">=</span><span class="n">isIconOptional</span><span class="p">,</span> <span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">iconOptional</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconOptional</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L558"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconPadding"></a> + <a name="//apple_ref/objc/Property/iconPadding" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconPadding"><span class="token-name">iconPadding</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Size of the additional area around the icon bounding box used for detecting +symbol collisions.</p> + +<p>This property is measured in points.</p> + +<p>The default value of this property is an expression that evaluates to the float +<code>2</code>. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>. +Otherwise, it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant numeric values no less than 0</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation or step functions to +feature attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">iconPadding</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconPadding</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L583"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconPitchAlignment"></a> + <a name="//apple_ref/objc/Property/iconPitchAlignment" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconPitchAlignment"><span class="token-name">iconPitchAlignment</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Orientation of icon when map is pitched.</p> + +<p>The default value of this property is an expression that evaluates to <code>auto</code>. +Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>. +Otherwise, it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code><a href="../Enums/MGLIconPitchAlignment.html">MGLIconPitchAlignment</a></code> values</li> +<li>Any of the following constant string values: + +<ul> +<li><code>map</code>: The icon is aligned to the plane of the map.</li> +<li><code>viewport</code>: The icon is aligned to the plane of the viewport.</li> +<li><code>auto</code>: Automatically matches the value of <code>icon-rotation-alignment</code>.</li> +</ul></li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation functions to the +<code>$zoomLevel</code> variable or applying interpolation or step functions to feature +attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">iconPitchAlignment</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconPitchAlignment</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L610"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconRotation"></a> + <a name="//apple_ref/objc/Property/iconRotation" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconRotation"><span class="token-name">iconRotation</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Rotates the icon clockwise.</p> + +<p>This property is measured in degrees.</p> + +<p>The default value of this property is an expression that evaluates to the float +<code>0</code>. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>. +Otherwise, it is ignored.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#layout-symbol-icon-rotate"><code>icon-rotate</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant numeric values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">iconRotation</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconRotation</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L636"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconRotationAlignment"></a> + <a name="//apple_ref/objc/Property/iconRotationAlignment" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconRotationAlignment"><span class="token-name">iconRotationAlignment</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>In combination with <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)symbolPlacement">symbolPlacement</a></code>, determines the rotation behavior of +icons.</p> + +<p>The default value of this property is an expression that evaluates to <code>auto</code>. +Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>. +Otherwise, it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code><a href="../Enums/MGLIconRotationAlignment.html">MGLIconRotationAlignment</a></code> values</li> +<li>Any of the following constant string values: + +<ul> +<li><code>map</code>: When <code>symbol-placement</code> is set to <code>point</code>, aligns icons east-west. +When <code>symbol-placement</code> is set to <code>line</code>, aligns icon x-axes with the line.</li> +<li><code>viewport</code>: Produces icons whose x-axes are aligned with the x-axis of the +viewport, regardless of the value of <code>symbol-placement</code>.</li> +<li><code>auto</code>: When <code>symbol-placement</code> is set to <code>point</code>, this is equivalent to +<code>viewport</code>. When <code>symbol-placement</code> is set to <code>line</code>, this is equivalent to +<code>map</code>.</li> +</ul></li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation functions to the +<code>$zoomLevel</code> variable or applying interpolation or step functions to feature +attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">iconRotationAlignment</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconRotationAlignment</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L671"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconScale"></a> + <a name="//apple_ref/objc/Property/iconScale" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconScale"><span class="token-name">iconScale</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Scales the original size of the icon by the provided factor. The new point size +of the image will be the original point size multiplied by <code>iconScale</code>. 1 is +the original size; 3 triples the size of the image.</p> + +<p>This property is measured in factor of the original icon sizes.</p> + +<p>The default value of this property is an expression that evaluates to the float +<code>1</code>. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>. +Otherwise, it is ignored.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#layout-symbol-icon-size"><code>icon-size</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant numeric values no less than 0</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">iconScale</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconScale</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L699"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconTextFit"></a> + <a name="//apple_ref/objc/Property/iconTextFit" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconTextFit"><span class="token-name">iconTextFit</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Scales the icon to fit around the associated text.</p> + +<p>The default value of this property is an expression that evaluates to <code>none</code>. +Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>, and +<code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code><a href="../Enums/MGLIconTextFit.html">MGLIconTextFit</a></code> values</li> +<li>Any of the following constant string values: + +<ul> +<li><code>none</code>: The icon is displayed at its intrinsic aspect ratio.</li> +<li><code>width</code>: The icon is scaled in the x-dimension to fit the width of the +text.</li> +<li><code>height</code>: The icon is scaled in the y-dimension to fit the height of the +text.</li> +<li><code>both</code>: The icon is scaled in both x- and y-dimensions.</li> +</ul></li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation functions to the +<code>$zoomLevel</code> variable or applying interpolation or step functions to feature +attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">iconTextFit</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconTextFit</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L732"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconTextFitPadding"></a> + <a name="//apple_ref/objc/Property/iconTextFitPadding" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconTextFitPadding"><span class="token-name">iconTextFitPadding</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Size of the additional area added to dimensions determined by <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconTextFit">iconTextFit</a></code>.</p> + +<p>This property is measured in points.</p> + +<p>The default value of this property is an expression that evaluates to an +<code>NSValue</code> object containing <code>NSEdgeInsetsZero</code>. Set this property to <code>nil</code> to +reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>, and +<code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>, and <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconTextFit">iconTextFit</a></code> is set to an expression that evaluates +to <code>MGLIconTextFitBoth</code>, <code>MGLIconTextFitWidth</code>, or <code>MGLIconTextFitHeight</code>. +Otherwise, it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code>NSEdgeInsets</code> values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation or step functions to +feature attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">iconTextFitPadding</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconTextFitPadding</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L787"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)keepsIconUpright"></a> + <a name="//apple_ref/objc/Property/keepsIconUpright" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)keepsIconUpright"><span class="token-name">keepsIconUpright</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>If true, the icon may be flipped to prevent it from being rendered upside-down.</p> + +<p>The default value of this property is an expression that evaluates to <code>NO</code>. Set +this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>, and +<code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconRotationAlignment">iconRotationAlignment</a></code> is set to an expression that evaluates to <code>map</code>, and +<code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)symbolPlacement">symbolPlacement</a></code> is set to an expression that evaluates to <code>line</code>. Otherwise, +it is ignored.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#layout-symbol-icon-keep-upright"><code>icon-keep-upright</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant Boolean values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation functions to the +<code>$zoomLevel</code> variable or applying interpolation or step functions to feature +attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">keepsIconUpright</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">keepsIconUpright</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L817"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)keepsTextUpright"></a> + <a name="//apple_ref/objc/Property/keepsTextUpright" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)keepsTextUpright"><span class="token-name">keepsTextUpright</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>If true, the text may be flipped vertically to prevent it from being rendered +upside-down.</p> + +<p>The default value of this property is an expression that evaluates to <code>YES</code>. +Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>, and +<code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)textRotationAlignment">textRotationAlignment</a></code> is set to an expression that evaluates to <code>map</code>, and +<code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)symbolPlacement">symbolPlacement</a></code> is set to an expression that evaluates to <code>line</code>. Otherwise, +it is ignored.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#layout-symbol-text-keep-upright"><code>text-keep-upright</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant Boolean values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation functions to the +<code>$zoomLevel</code> variable or applying interpolation or step functions to feature +attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">keepsTextUpright</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">keepsTextUpright</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L850"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)maximumTextAngle"></a> + <a name="//apple_ref/objc/Property/maximumTextAngle" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)maximumTextAngle"><span class="token-name">maximumTextAngle</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Maximum angle change between adjacent characters.</p> + +<p>This property is measured in degrees.</p> + +<p>The default value of this property is an expression that evaluates to the float +<code>45</code>. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>, and +<code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)symbolPlacement">symbolPlacement</a></code> is set to an expression that evaluates to <code>line</code>. Otherwise, +it is ignored.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#layout-symbol-text-max-angle"><code>text-max-angle</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant numeric values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation or step functions to +feature attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">maximumTextAngle</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">maximumTextAngle</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L882"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)maximumTextWidth"></a> + <a name="//apple_ref/objc/Property/maximumTextWidth" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)maximumTextWidth"><span class="token-name">maximumTextWidth</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>The maximum line width for text wrapping.</p> + +<p>This property is measured in ems.</p> + +<p>The default value of this property is an expression that evaluates to the float +<code>10</code>. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#layout-symbol-text-max-width"><code>text-max-width</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant numeric values no less than 0</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">maximumTextWidth</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">maximumTextWidth</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L911"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)symbolAvoidsEdges"></a> + <a name="//apple_ref/objc/Property/symbolAvoidsEdges" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)symbolAvoidsEdges"><span class="token-name">symbolAvoidsEdges</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>If true, the symbols will not cross tile edges to avoid mutual collisions. +Recommended in layers that don’t have enough padding in the vector tile to +prevent collisions, or if it is a point symbol layer placed after a line symbol +layer.</p> + +<p>The default value of this property is an expression that evaluates to <code>NO</code>. Set +this property to <code>nil</code> to reset it to the default value.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#layout-symbol-symbol-avoid-edges"><code>symbol-avoid-edges</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant Boolean values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation functions to the +<code>$zoomLevel</code> variable or applying interpolation or step functions to feature +attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">symbolAvoidsEdges</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">symbolAvoidsEdges</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L941"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)symbolPlacement"></a> + <a name="//apple_ref/objc/Property/symbolPlacement" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)symbolPlacement"><span class="token-name">symbolPlacement</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Label placement relative to its geometry.</p> + +<p>The default value of this property is an expression that evaluates to <code>point</code>. +Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code><a href="../Enums/MGLSymbolPlacement.html">MGLSymbolPlacement</a></code> values</li> +<li>Any of the following constant string values: + +<ul> +<li><code>point</code>: The label is placed at the point where the geometry is located.</li> +<li><code>line</code>: The label is placed along the line of the geometry. Can only be +used on <code>LineString</code> and <code>Polygon</code> geometries.</li> +</ul></li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation functions to the +<code>$zoomLevel</code> variable or applying interpolation or step functions to feature +attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">symbolPlacement</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">symbolPlacement</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L968"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)symbolSpacing"></a> + <a name="//apple_ref/objc/Property/symbolSpacing" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)symbolSpacing"><span class="token-name">symbolSpacing</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Distance between two symbol anchors.</p> + +<p>This property is measured in points.</p> + +<p>The default value of this property is an expression that evaluates to the float +<code>250</code>. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)symbolPlacement">symbolPlacement</a></code> is set to an +expression that evaluates to <code>line</code>. Otherwise, it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant numeric values no less than 1</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation or step functions to +feature attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">symbolSpacing</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">symbolSpacing</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L992"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)text"></a> + <a name="//apple_ref/objc/Property/text" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)text"><span class="token-name">text</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Value to use for a text label.</p> + +<p>Within a constant string value, a feature attribute name enclosed in curly +braces (e.g., <code>{token}</code>) is replaced with the value of the named attribute. +Tokens inside non-constant expressions are ignored; instead, use <code>mgl_join:</code> +and key path expressions.</p> + +<p>The default value of this property is an expression that evaluates to the empty +string. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#layout-symbol-text-field"><code>text-field</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant string values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> <span class="n">NSExpression</span> <span class="o">*</span><span class="n">text</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">text</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1018"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textAllowsOverlap"></a> + <a name="//apple_ref/objc/Property/textAllowsOverlap" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textAllowsOverlap"><span class="token-name">textAllowsOverlap</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>If true, the text will be visible even if it collides with other previously +drawn symbols.</p> + +<p>The default value of this property is an expression that evaluates to <code>NO</code>. Set +this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#layout-symbol-text-allow-overlap"><code>text-allow-overlap</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant Boolean values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation functions to the +<code>$zoomLevel</code> variable or applying interpolation or step functions to feature +attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textAllowsOverlap</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textAllowsOverlap</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1049"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textAnchor"></a> + <a name="//apple_ref/objc/Property/textAnchor" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textAnchor"><span class="token-name">textAnchor</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Part of the text placed closest to the anchor.</p> + +<p>The default value of this property is an expression that evaluates to <code>center</code>. +Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code><a href="../Enums/MGLTextAnchor.html">MGLTextAnchor</a></code> values</li> +<li>Any of the following constant string values: + +<ul> +<li><code>center</code>: The center of the text is placed closest to the anchor.</li> +<li><code>left</code>: The left side of the text is placed closest to the anchor.</li> +<li><code>right</code>: The right side of the text is placed closest to the anchor.</li> +<li><code>top</code>: The top of the text is placed closest to the anchor.</li> +<li><code>bottom</code>: The bottom of the text is placed closest to the anchor.</li> +<li><code>top-left</code>: The top left corner of the text is placed closest to the +anchor.</li> +<li><code>top-right</code>: The top right corner of the text is placed closest to the +anchor.</li> +<li><code>bottom-left</code>: The bottom left corner of the text is placed closest to the +anchor.</li> +<li><code>bottom-right</code>: The bottom right corner of the text is placed closest to +the anchor.</li> +</ul></li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textAnchor</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textAnchor</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1086"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textFontNames"></a> + <a name="//apple_ref/objc/Property/textFontNames" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textFontNames"><span class="token-name">textFontNames</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>An array of font face names used to display the text.</p> + +<p>Each font name must be included in the <code>{fontstack}</code> portion of the JSON +stylesheet’s <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#glyphs"><code>glyphs</code></a> +property. You can register a custom font when designing the style in Mapbox +Studio. Fonts installed on the system are not used.</p> + +<p>The first font named in the array is applied to the text. For each character in +the text, if the first font lacks a glyph for the character, the next font is +applied as a fallback, and so on.</p> + +<p>The default value of this property is an expression that evaluates to the array +<code>Open Sans Regular</code>, <code>Arial Unicode MS Regular</code>. Set this property to <code>nil</code> to +reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#layout-symbol-text-font"><code>text-font</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant array values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textFontNames</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textFontNames</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1121"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textFontSize"></a> + <a name="//apple_ref/objc/Property/textFontSize" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textFontSize"><span class="token-name">textFontSize</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Font size.</p> + +<p>This property is measured in points.</p> + +<p>The default value of this property is an expression that evaluates to the float +<code>16</code>. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#layout-symbol-text-size"><code>text-size</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant numeric values no less than 0</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textFontSize</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textFontSize</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1150"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textIgnoresPlacement"></a> + <a name="//apple_ref/objc/Property/textIgnoresPlacement" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textIgnoresPlacement"><span class="token-name">textIgnoresPlacement</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>If true, other symbols can be visible even if they collide with the text.</p> + +<p>The default value of this property is an expression that evaluates to <code>NO</code>. Set +this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#layout-symbol-text-ignore-placement"><code>text-ignore-placement</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant Boolean values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation functions to the +<code>$zoomLevel</code> variable or applying interpolation or step functions to feature +attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textIgnoresPlacement</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textIgnoresPlacement</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1180"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textJustification"></a> + <a name="//apple_ref/objc/Property/textJustification" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textJustification"><span class="token-name">textJustification</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Text justification options.</p> + +<p>The default value of this property is an expression that evaluates to <code>center</code>. +Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#layout-symbol-text-justify"><code>text-justify</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code><a href="../Enums/MGLTextJustification.html">MGLTextJustification</a></code> values</li> +<li>Any of the following constant string values: + +<ul> +<li><code>left</code>: The text is aligned to the left.</li> +<li><code>center</code>: The text is centered.</li> +<li><code>right</code>: The text is aligned to the right.</li> +</ul></li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textJustification</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textJustification</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1211"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textLetterSpacing"></a> + <a name="//apple_ref/objc/Property/textLetterSpacing" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textLetterSpacing"><span class="token-name">textLetterSpacing</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Text tracking amount.</p> + +<p>This property is measured in ems.</p> + +<p>The default value of this property is an expression that evaluates to the float +<code>0</code>. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant numeric values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textLetterSpacing</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textLetterSpacing</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1236"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textLineHeight"></a> + <a name="//apple_ref/objc/Property/textLineHeight" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textLineHeight"><span class="token-name">textLineHeight</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Text leading value for multi-line text.</p> + +<p>This property is measured in ems.</p> + +<p>The default value of this property is an expression that evaluates to the float +<code>1.2</code>. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant numeric values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation or step functions to +feature attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textLineHeight</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textLineHeight</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1260"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textOffset"></a> + <a name="//apple_ref/objc/Property/textOffset" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textOffset"><span class="token-name">textOffset</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Offset distance of text from its anchor.</p> + +<p>This property is measured in ems.</p> + +<p>The default value of this property is an expression that evaluates to an +<code>NSValue</code> object containing a <code>CGVector</code> struct set to 0 ems rightward and 0 +ems upward. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code>CGVector</code> values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textOffset</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textOffset</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1307"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textOptional"></a> + <a name="//apple_ref/objc/Property/textOptional" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textOptional"><span class="token-name">textOptional</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>If true, icons will display without their corresponding text when the text +collides with other symbols and the icon does not.</p> + +<p>The default value of this property is an expression that evaluates to <code>NO</code>. Set +this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>, and +<code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>. Otherwise, it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant Boolean values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation functions to the +<code>$zoomLevel</code> variable or applying interpolation or step functions to feature +attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">getter</span><span class="o">=</span><span class="n">isTextOptional</span><span class="p">,</span> <span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textOptional</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textOptional</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1332"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textPadding"></a> + <a name="//apple_ref/objc/Property/textPadding" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textPadding"><span class="token-name">textPadding</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Size of the additional area around the text bounding box used for detecting +symbol collisions.</p> + +<p>This property is measured in points.</p> + +<p>The default value of this property is an expression that evaluates to the float +<code>2</code>. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant numeric values no less than 0</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation or step functions to +feature attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textPadding</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textPadding</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1357"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textPitchAlignment"></a> + <a name="//apple_ref/objc/Property/textPitchAlignment" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textPitchAlignment"><span class="token-name">textPitchAlignment</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Orientation of text when map is pitched.</p> + +<p>The default value of this property is an expression that evaluates to <code>auto</code>. +Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code><a href="../Enums/MGLTextPitchAlignment.html">MGLTextPitchAlignment</a></code> values</li> +<li>Any of the following constant string values: + +<ul> +<li><code>map</code>: The text is aligned to the plane of the map.</li> +<li><code>viewport</code>: The text is aligned to the plane of the viewport.</li> +<li><code>auto</code>: Automatically matches the value of <code>text-rotation-alignment</code>.</li> +</ul></li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation functions to the +<code>$zoomLevel</code> variable or applying interpolation or step functions to feature +attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textPitchAlignment</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textPitchAlignment</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1384"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textRotation"></a> + <a name="//apple_ref/objc/Property/textRotation" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textRotation"><span class="token-name">textRotation</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Rotates the text clockwise.</p> + +<p>This property is measured in degrees.</p> + +<p>The default value of this property is an expression that evaluates to the float +<code>0</code>. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#layout-symbol-text-rotate"><code>text-rotate</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant numeric values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textRotation</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textRotation</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1410"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textRotationAlignment"></a> + <a name="//apple_ref/objc/Property/textRotationAlignment" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textRotationAlignment"><span class="token-name">textRotationAlignment</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>In combination with <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)symbolPlacement">symbolPlacement</a></code>, determines the rotation behavior of the +individual glyphs forming the text.</p> + +<p>The default value of this property is an expression that evaluates to <code>auto</code>. +Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code><a href="../Enums/MGLTextRotationAlignment.html">MGLTextRotationAlignment</a></code> values</li> +<li>Any of the following constant string values: + +<ul> +<li><code>map</code>: When <code>symbol-placement</code> is set to <code>point</code>, aligns text east-west. +When <code>symbol-placement</code> is set to <code>line</code>, aligns text x-axes with the line.</li> +<li><code>viewport</code>: Produces glyphs whose x-axes are aligned with the x-axis of the +viewport, regardless of the value of <code>symbol-placement</code>.</li> +<li><code>auto</code>: When <code>symbol-placement</code> is set to <code>point</code>, this is equivalent to +<code>viewport</code>. When <code>symbol-placement</code> is set to <code>line</code>, this is equivalent to +<code>map</code>.</li> +</ul></li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation functions to the +<code>$zoomLevel</code> variable or applying interpolation or step functions to feature +attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textRotationAlignment</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textRotationAlignment</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1445"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textTransform"></a> + <a name="//apple_ref/objc/Property/textTransform" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textTransform"><span class="token-name">textTransform</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Specifies how to capitalize text.</p> + +<p>The default value of this property is an expression that evaluates to <code>none</code>. +Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code><a href="../Enums/MGLTextTransform.html">MGLTextTransform</a></code> values</li> +<li>Any of the following constant string values: + +<ul> +<li><code>none</code>: The text is not altered.</li> +<li><code>uppercase</code>: Forces all letters to be displayed in uppercase.</li> +<li><code>lowercase</code>: Forces all letters to be displayed in lowercase.</li> +</ul></li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textTransform</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textTransform</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1469"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + </ul> + </div> + <div class="task-group"> + <div class="task-name-container"> + <a name="/Accessing%20the%20Paint%20Attributes"></a> + <a name="//apple_ref/objc/Section/Accessing the Paint Attributes" class="dashAnchor"></a> + <a href="#/Accessing%20the%20Paint%20Attributes"> + <h3 id="Accessing%20the%20Paint%20Attributes" class="section-name">Accessing the Paint Attributes<span class="anchor-icon" /></h3> + </a> + </div> + <ul class="item-container"> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconColor"></a> + <a name="//apple_ref/objc/Property/iconColor" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconColor"><span class="token-name">iconColor</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>The tint color to apply to the icon. The <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> property must be set +to a template image.</p> + +<p>The default value of this property is an expression that evaluates to +<code>NSColor.blackColor</code>. Set this property to <code>nil</code> to reset it to the default +value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>. +Otherwise, it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code>NSColor</code> values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">iconColor</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconColor</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1516"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconColorTransition"></a> + <a name="//apple_ref/objc/Property/iconColorTransition" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconColorTransition"><span class="token-name">iconColorTransition</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>The transition affecting any changes to this layer’s <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconColor">iconColor</a></code> property.</p> + +<p>This property corresponds to the <code>icon-color-transition</code> property in the style JSON file format.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">)</span> <span class="n"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="n">iconColorTransition</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconColorTransition</span><span class="p">:</span> <span class="kt"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1524"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconHaloBlur"></a> + <a name="//apple_ref/objc/Property/iconHaloBlur" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconHaloBlur"><span class="token-name">iconHaloBlur</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Fade out the halo towards the outside.</p> + +<p>This property is measured in points.</p> + +<p>The default value of this property is an expression that evaluates to the float +<code>0</code>. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>. +Otherwise, it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant numeric values no less than 0</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">iconHaloBlur</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconHaloBlur</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1546"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconHaloBlurTransition"></a> + <a name="//apple_ref/objc/Property/iconHaloBlurTransition" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconHaloBlurTransition"><span class="token-name">iconHaloBlurTransition</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>The transition affecting any changes to this layer’s <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconHaloBlur">iconHaloBlur</a></code> property.</p> + +<p>This property corresponds to the <code>icon-halo-blur-transition</code> property in the style JSON file format.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">)</span> <span class="n"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="n">iconHaloBlurTransition</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconHaloBlurTransition</span><span class="p">:</span> <span class="kt"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1553"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconHaloColor"></a> + <a name="//apple_ref/objc/Property/iconHaloColor" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconHaloColor"><span class="token-name">iconHaloColor</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>The color of the icon’s halo. The <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> property must be set to a +template image.</p> + +<p>The default value of this property is an expression that evaluates to +<code>NSColor.clearColor</code>. Set this property to <code>nil</code> to reset it to the default +value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>. +Otherwise, it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code>NSColor</code> values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">iconHaloColor</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconHaloColor</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1598"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconHaloColorTransition"></a> + <a name="//apple_ref/objc/Property/iconHaloColorTransition" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconHaloColorTransition"><span class="token-name">iconHaloColorTransition</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>The transition affecting any changes to this layer’s <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconHaloColor">iconHaloColor</a></code> property.</p> + +<p>This property corresponds to the <code>icon-halo-color-transition</code> property in the style JSON file format.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">)</span> <span class="n"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="n">iconHaloColorTransition</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconHaloColorTransition</span><span class="p">:</span> <span class="kt"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1606"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconHaloWidth"></a> + <a name="//apple_ref/objc/Property/iconHaloWidth" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconHaloWidth"><span class="token-name">iconHaloWidth</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Distance of halo to the icon outline.</p> + +<p>This property is measured in points.</p> + +<p>The default value of this property is an expression that evaluates to the float +<code>0</code>. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>. +Otherwise, it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant numeric values no less than 0</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">iconHaloWidth</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconHaloWidth</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1628"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconHaloWidthTransition"></a> + <a name="//apple_ref/objc/Property/iconHaloWidthTransition" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconHaloWidthTransition"><span class="token-name">iconHaloWidthTransition</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>The transition affecting any changes to this layer’s <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconHaloWidth">iconHaloWidth</a></code> property.</p> + +<p>This property corresponds to the <code>icon-halo-width-transition</code> property in the style JSON file format.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">)</span> <span class="n"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="n">iconHaloWidthTransition</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconHaloWidthTransition</span><span class="p">:</span> <span class="kt"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1635"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconOpacity"></a> + <a name="//apple_ref/objc/Property/iconOpacity" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconOpacity"><span class="token-name">iconOpacity</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>The opacity at which the icon will be drawn.</p> + +<p>The default value of this property is an expression that evaluates to the float +<code>1</code>. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>. +Otherwise, it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant numeric values between 0 and 1 inclusive</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">iconOpacity</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconOpacity</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1655"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconOpacityTransition"></a> + <a name="//apple_ref/objc/Property/iconOpacityTransition" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconOpacityTransition"><span class="token-name">iconOpacityTransition</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>The transition affecting any changes to this layer’s <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconOpacity">iconOpacity</a></code> property.</p> + +<p>This property corresponds to the <code>icon-opacity-transition</code> property in the style JSON file format.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">)</span> <span class="n"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="n">iconOpacityTransition</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconOpacityTransition</span><span class="p">:</span> <span class="kt"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1662"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconTranslation"></a> + <a name="//apple_ref/objc/Property/iconTranslation" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconTranslation"><span class="token-name">iconTranslation</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Distance that the icon’s anchor is moved from its original placement.</p> + +<p>This property is measured in points.</p> + +<p>The default value of this property is an expression that evaluates to an +<code>NSValue</code> object containing a <code>CGVector</code> struct set to 0 points rightward and 0 +points upward. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>. +Otherwise, it is ignored.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#paint-icon-translate"><code>icon-translate</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code>CGVector</code> values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation or step functions to +feature attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">iconTranslation</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconTranslation</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1721"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconTranslationTransition"></a> + <a name="//apple_ref/objc/Property/iconTranslationTransition" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconTranslationTransition"><span class="token-name">iconTranslationTransition</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>The transition affecting any changes to this layer’s <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconTranslation">iconTranslation</a></code> property.</p> + +<p>This property corresponds to the <code>icon-translate-transition</code> property in the style JSON file format.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">)</span> <span class="n"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="n">iconTranslationTransition</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconTranslationTransition</span><span class="p">:</span> <span class="kt"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1729"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)iconTranslationAnchor"></a> + <a name="//apple_ref/objc/Property/iconTranslationAnchor" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)iconTranslationAnchor"><span class="token-name">iconTranslationAnchor</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Controls the frame of reference for <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconTranslation">iconTranslation</a></code>.</p> + +<p>The default value of this property is an expression that evaluates to <code>map</code>. +Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconImageName">iconImageName</a></code> is non-<code>nil</code>, and +<code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)iconTranslation">iconTranslation</a></code> is non-<code>nil</code>. Otherwise, it is ignored.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#paint-icon-translate-anchor"><code>icon-translate-anchor</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code><a href="../Enums/MGLIconTranslationAnchor.html">MGLIconTranslationAnchor</a></code> values</li> +<li>Any of the following constant string values: + +<ul> +<li><code>map</code>: Icons are translated relative to the map.</li> +<li><code>viewport</code>: Icons are translated relative to the viewport.</li> +</ul></li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation functions to the +<code>$zoomLevel</code> variable or applying interpolation or step functions to feature +attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">iconTranslationAnchor</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">iconTranslationAnchor</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1761"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textColor"></a> + <a name="//apple_ref/objc/Property/textColor" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textColor"><span class="token-name">textColor</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>The color with which the text will be drawn.</p> + +<p>The default value of this property is an expression that evaluates to +<code>NSColor.blackColor</code>. Set this property to <code>nil</code> to reset it to the default +value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code>NSColor</code> values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textColor</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textColor</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1806"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textColorTransition"></a> + <a name="//apple_ref/objc/Property/textColorTransition" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textColorTransition"><span class="token-name">textColorTransition</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>The transition affecting any changes to this layer’s <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)textColor">textColor</a></code> property.</p> + +<p>This property corresponds to the <code>text-color-transition</code> property in the style JSON file format.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">)</span> <span class="n"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="n">textColorTransition</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textColorTransition</span><span class="p">:</span> <span class="kt"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1814"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textHaloBlur"></a> + <a name="//apple_ref/objc/Property/textHaloBlur" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textHaloBlur"><span class="token-name">textHaloBlur</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>The halo’s fadeout distance towards the outside.</p> + +<p>This property is measured in points.</p> + +<p>The default value of this property is an expression that evaluates to the float +<code>0</code>. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant numeric values no less than 0</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textHaloBlur</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textHaloBlur</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1836"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textHaloBlurTransition"></a> + <a name="//apple_ref/objc/Property/textHaloBlurTransition" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textHaloBlurTransition"><span class="token-name">textHaloBlurTransition</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>The transition affecting any changes to this layer’s <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)textHaloBlur">textHaloBlur</a></code> property.</p> + +<p>This property corresponds to the <code>text-halo-blur-transition</code> property in the style JSON file format.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">)</span> <span class="n"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="n">textHaloBlurTransition</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textHaloBlurTransition</span><span class="p">:</span> <span class="kt"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1843"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textHaloColor"></a> + <a name="//apple_ref/objc/Property/textHaloColor" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textHaloColor"><span class="token-name">textHaloColor</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>The color of the text’s halo, which helps it stand out from backgrounds.</p> + +<p>The default value of this property is an expression that evaluates to +<code>NSColor.clearColor</code>. Set this property to <code>nil</code> to reset it to the default +value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code>NSColor</code> values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textHaloColor</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textHaloColor</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1886"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textHaloColorTransition"></a> + <a name="//apple_ref/objc/Property/textHaloColorTransition" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textHaloColorTransition"><span class="token-name">textHaloColorTransition</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>The transition affecting any changes to this layer’s <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)textHaloColor">textHaloColor</a></code> property.</p> + +<p>This property corresponds to the <code>text-halo-color-transition</code> property in the style JSON file format.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">)</span> <span class="n"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="n">textHaloColorTransition</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textHaloColorTransition</span><span class="p">:</span> <span class="kt"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1894"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textHaloWidth"></a> + <a name="//apple_ref/objc/Property/textHaloWidth" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textHaloWidth"><span class="token-name">textHaloWidth</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Distance of halo to the font outline. Max text halo width is ¼ of the +font-size.</p> + +<p>This property is measured in points.</p> + +<p>The default value of this property is an expression that evaluates to the float +<code>0</code>. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant numeric values no less than 0</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textHaloWidth</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textHaloWidth</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1917"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textHaloWidthTransition"></a> + <a name="//apple_ref/objc/Property/textHaloWidthTransition" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textHaloWidthTransition"><span class="token-name">textHaloWidthTransition</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>The transition affecting any changes to this layer’s <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)textHaloWidth">textHaloWidth</a></code> property.</p> + +<p>This property corresponds to the <code>text-halo-width-transition</code> property in the style JSON file format.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">)</span> <span class="n"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="n">textHaloWidthTransition</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textHaloWidthTransition</span><span class="p">:</span> <span class="kt"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1924"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textOpacity"></a> + <a name="//apple_ref/objc/Property/textOpacity" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textOpacity"><span class="token-name">textOpacity</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>The opacity at which the text will be drawn.</p> + +<p>The default value of this property is an expression that evaluates to the float +<code>1</code>. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant numeric values between 0 and 1 inclusive</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable and/or +feature attributes</li> +</ul> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textOpacity</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textOpacity</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1944"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textOpacityTransition"></a> + <a name="//apple_ref/objc/Property/textOpacityTransition" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textOpacityTransition"><span class="token-name">textOpacityTransition</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>The transition affecting any changes to this layer’s <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)textOpacity">textOpacity</a></code> property.</p> + +<p>This property corresponds to the <code>text-opacity-transition</code> property in the style JSON file format.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">)</span> <span class="n"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="n">textOpacityTransition</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textOpacityTransition</span><span class="p">:</span> <span class="kt"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L1951"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textTranslation"></a> + <a name="//apple_ref/objc/Property/textTranslation" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textTranslation"><span class="token-name">textTranslation</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Distance that the text’s anchor is moved from its original placement.</p> + +<p>This property is measured in points.</p> + +<p>The default value of this property is an expression that evaluates to an +<code>NSValue</code> object containing a <code>CGVector</code> struct set to 0 points rightward and 0 +points upward. Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>. Otherwise, +it is ignored.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#paint-text-translate"><code>text-translate</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code>CGVector</code> values</li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Interpolation and step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation or step functions to +feature attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textTranslation</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textTranslation</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L2010"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textTranslationTransition"></a> + <a name="//apple_ref/objc/Property/textTranslationTransition" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textTranslationTransition"><span class="token-name">textTranslationTransition</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>The transition affecting any changes to this layer’s <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)textTranslation">textTranslation</a></code> property.</p> + +<p>This property corresponds to the <code>text-translate-transition</code> property in the style JSON file format.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">)</span> <span class="n"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="n">textTranslationTransition</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textTranslationTransition</span><span class="p">:</span> <span class="kt"><a href="../Structs/MGLTransition.html">MGLTransition</a></span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L2018"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + <li class="item"> + <div> + <code> + <a name="/c:objc(cs)MGLSymbolStyleLayer(py)textTranslationAnchor"></a> + <a name="//apple_ref/objc/Property/textTranslationAnchor" class="dashAnchor"></a> + <a class="token" href="#/c:objc(cs)MGLSymbolStyleLayer(py)textTranslationAnchor"><span class="token-name">textTranslationAnchor</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Controls the frame of reference for <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)textTranslation">textTranslation</a></code>.</p> + +<p>The default value of this property is an expression that evaluates to <code>map</code>. +Set this property to <code>nil</code> to reset it to the default value.</p> + +<p>This property is only applied to the style if <code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)text">text</a></code> is non-<code>nil</code>, and +<code><a href="../Classes/MGLSymbolStyleLayer.html#/c:objc(cs)MGLSymbolStyleLayer(py)textTranslation">textTranslation</a></code> is non-<code>nil</code>. Otherwise, it is ignored.</p> + +<p>This attribute corresponds to the <a +href="https://www.mapbox.com/mapbox-gl-style-spec/#paint-text-translate-anchor"><code>text-translate-anchor</code></a> +layout property in the Mapbox Style Specification.</p> + +<p>You can set this property to an expression containing any of the following:</p> + +<ul> +<li>Constant <code><a href="../Enums/MGLTextTranslationAnchor.html">MGLTextTranslationAnchor</a></code> values</li> +<li>Any of the following constant string values: + +<ul> +<li><code>map</code>: The text is translated relative to the map.</li> +<li><code>viewport</code>: The text is translated relative to the viewport.</li> +</ul></li> +<li>Predefined functions, including mathematical and string operators</li> +<li>Conditional expressions</li> +<li>Variable assignments and references to assigned variables</li> +<li>Step functions applied to the <code>$zoomLevel</code> variable</li> +</ul> + +<p>This property does not support applying interpolation functions to the +<code>$zoomLevel</code> variable or applying interpolation or step functions to feature +attributes.</p> + + </div> + <div class="declaration"> + <h4>Declaration</h4> + <div class="language keyline-blue"> + <p style="background: rgba(65, 131, 196, 0.15);" class="aside-title text-blue">Objective-C</p> + <pre class="highlight objective_c"><code><span class="k">@property</span> <span class="p">(</span><span class="n">assign</span><span class="p">,</span> <span class="n">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">null_resettable</span><span class="p">)</span> + <span class="n">NSExpression</span> <span class="o">*</span><span class="n">textTranslationAnchor</span><span class="p">;</span></code></pre> + + </div> + <div class="language keyline-purple"> + <p style="background: rgba(149, 149, 209, 0.21);" class="aside-title text-purple">Swift</p> + <pre class="highlight swift"><code><span class="k">var</span> <span class="nv">textTranslationAnchor</span><span class="p">:</span> <span class="kt">NSExpression</span><span class="o">!</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre> + + </div> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/darwin/src/MGLSymbolStyleLayer.h#L2050"> + <img style="margin-bottom: 1px;" class="show-on-github-icon" src="../img/github.svg"/> + View Source on GitHub + </a> + </div> + </section> + </div> + </li> + </ul> + </div> + </div> + </section> + + </article> + </div> + <section class="footer limiter"> + <p>© 2014–2018 <a class="link" href="https://www.mapbox.com/" target="_blank" rel="external">Mapbox</a>. See <a class="link" href="https://github.com/mapbox/mapbox-gl-native/blob/master/LICENSE.md" target="_blank" rel="external">license</a> for more details.</p> Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.3</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project. + </section> + </body> +</div> +</html> |