summaryrefslogtreecommitdiff
path: root/macos/0.9.0/docsets/Mapbox.docset/Contents/Resources/Documents/Classes/MGLMapView.html
diff options
context:
space:
mode:
Diffstat (limited to 'macos/0.9.0/docsets/Mapbox.docset/Contents/Resources/Documents/Classes/MGLMapView.html')
-rw-r--r--macos/0.9.0/docsets/Mapbox.docset/Contents/Resources/Documents/Classes/MGLMapView.html5448
1 files changed, 5448 insertions, 0 deletions
diff --git a/macos/0.9.0/docsets/Mapbox.docset/Contents/Resources/Documents/Classes/MGLMapView.html b/macos/0.9.0/docsets/Mapbox.docset/Contents/Resources/Documents/Classes/MGLMapView.html
new file mode 100644
index 0000000000..61b4d40ac8
--- /dev/null
+++ b/macos/0.9.0/docsets/Mapbox.docset/Contents/Resources/Documents/Classes/MGLMapView.html
@@ -0,0 +1,5448 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>MGLMapView 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="MGLMapView"] > .small-heading,
+ .nav-group-task[data-name="MGLMapView"] {
+ 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/MGLMapView" class="dashAnchor"></a>
+
+ <a title="MGLMapView 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" />
+ MGLMapView 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="#/MGLMapView"><h1 id="MGLMapView">MGLMapView<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">MGLMapView</span> <span class="p">:</span> <span class="nc">NSView</span></code></pre>
+
+ </div>
+ </div>
+ <p>An interactive, customizable map view with an interface similar to the one
+provided by Apple’s MapKit.</p>
+
+<p>Using <code>MGLMapView</code>, you can embed the map inside a view, allow users to
+manipulate it with standard gestures, animate the map between different
+viewpoints, and present information in the form of annotations and overlays.</p>
+
+<p>The map view loads scalable vector tiles that conform to the
+<a href="https://github.com/mapbox/vector-tile-spec">Mapbox Vector Tile Specification</a>.
+It styles them with a style that conforms to the
+<a href="https://www.mapbox.com/mapbox-gl-style-spec/">Mapbox Style Specification</a>.
+Such styles can be designed in
+<a href="https://www.mapbox.com/studio/">Mapbox Studio</a> and hosted on
+mapbox.com.</p>
+
+<p>A collection of Mapbox-hosted styles is available through the <code><a href="../Classes/MGLStyle.html">MGLStyle</a></code> class.
+These basic styles use
+<a href="https://www.mapbox.com/developers/vector-tiles/mapbox-streets">Mapbox Streets</a>
+or <a href="https://www.mapbox.com/satellite/">Mapbox Satellite</a> data
+sources, but you can specify a custom style that makes use of your own data.</p>
+
+<p>Mapbox-hosted vector tiles and styles require an API access token, which you
+can obtain from the
+<a href="https://www.mapbox.com/studio/account/tokens/">Mapbox account page</a>.
+Access tokens associate requests to Mapbox’s vector tile and style APIs with
+your Mapbox account. They also deter other developers from using your styles
+without your permission.</p>
+
+<p>Adding your own gesture recognizer to <code>MGLMapView</code> will block the corresponding
+gesture recognizer built into <code>MGLMapView</code>. To avoid conflicts, define which
+gesture recognizer takes precedence. For example, you can subclass
+<code>NSClickGestureRecognizer</code> and override <code>-[NSGestureRecognizer shouldRequireFailureOfGestureRecognizer:]</code>,
+so that your subclass will be invoked only if the default <code>MGLMapView</code> click
+gesture recognizer fails:</p>
+<pre class="highlight swift"><code><span class="kd">class</span> <span class="kt">MapClickGestureRecognizer</span><span class="p">:</span> <span class="kt">NSClickGestureRecognizer</span> <span class="p">{</span>
+ <span class="k">override</span> <span class="kd">func</span> <span class="nf">shouldRequireFailure</span><span class="p">(</span><span class="n">of</span> <span class="nv">otherGestureRecognizer</span><span class="p">:</span> <span class="kt">NSGestureRecognizer</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Bool</span> <span class="p">{</span>
+ <span class="k">return</span> <span class="n">otherGestureRecognizer</span> <span class="k">is</span> <span class="kt">NSClickGestureRecognizer</span>
+ <span class="p">}</span>
+<span class="p">}</span>
+</code></pre>
+<div class="aside aside-note">
+ <p class="aside-title">Note</p>
+ You are responsible for getting permission to use the map data and for
+ensuring that your use adheres to the relevant terms of use.
+
+</div>
+
+ </div>
+ </section>
+
+ <section class="section">
+ <div class="section-content">
+ <div class="task-group">
+ <div class="task-name-container">
+ <a name="/Creating%20Instances"></a>
+ <a name="//apple_ref/objc/Section/Creating Instances" class="dashAnchor"></a>
+ <a href="#/Creating%20Instances">
+ <h3 id="Creating%20Instances" class="section-name">Creating Instances<span class="anchor-icon" /></h3>
+ </a>
+ </div>
+ <ul class="item-container">
+ <li class="item">
+ <div>
+ <code>
+ <a name="/c:objc(cs)MGLMapView(im)initWithFrame:"></a>
+ <a name="//apple_ref/objc/Method/-initWithFrame:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)initWithFrame:"><span class="token-name">-initWithFrame:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Initializes and returns a newly allocated map view with the specified frame and
+the default style.</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">initWithFrame</span><span class="p">:(</span><span class="n">NSRect</span><span class="p">)</span><span class="nv">frame</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">frame</span><span class="p">:</span> <span class="kt">NSRect</span><span class="p">)</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ frame
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The frame for the view, measured in points.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h4>Return Value</h4>
+ <p>An initialized map view.</p>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L79">
+ <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)MGLMapView(im)initWithFrame:styleURL:"></a>
+ <a name="//apple_ref/objc/Method/-initWithFrame:styleURL:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)initWithFrame:styleURL:"><span class="token-name">-initWithFrame:styleURL:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Initializes and returns a newly allocated map view with the specified frame and
+style URL.</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">initWithFrame</span><span class="p">:(</span><span class="n">NSRect</span><span class="p">)</span><span class="nv">frame</span>
+ <span class="nf">styleURL</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">NSURL</span> <span class="o">*</span><span class="p">)</span><span class="nv">styleURL</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">frame</span><span class="p">:</span> <span class="kt">NSRect</span><span class="p">,</span> <span class="nv">styleURL</span><span class="p">:</span> <span class="kt">URL</span><span class="p">?)</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ frame
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The frame for the view, measured in points.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ styleURL
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>URL of the map style to display. The URL may be a full HTTP or
+HTTPS URL, a Mapbox URL indicating the style’s map ID
+(<code>mapbox://styles/&lt;user&gt;/&lt;style&gt;</code>), or a path to a local file relative to
+the application’s resource path. Specify <code>nil</code> for the default style.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h4>Return Value</h4>
+ <p>An initialized map view.</p>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L92">
+ <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%20Delegate"></a>
+ <a name="//apple_ref/objc/Section/Accessing the Delegate" class="dashAnchor"></a>
+ <a href="#/Accessing%20the%20Delegate">
+ <h3 id="Accessing%20the%20Delegate" class="section-name">Accessing the Delegate<span class="anchor-icon" /></h3>
+ </a>
+ </div>
+ <ul class="item-container">
+ <li class="item">
+ <div>
+ <code>
+ <a name="/c:objc(cs)MGLMapView(py)delegate"></a>
+ <a name="//apple_ref/objc/Property/delegate" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)delegate"><span class="token-name">delegate</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>The receiver’s delegate.</p>
+
+<p>A map view sends messages to its delegate to notify it of changes to its
+contents or the viewpoint. The delegate also provides information about
+annotations displayed on the map, such as the styles to apply to individual
+annotations.</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">readwrite</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">nullable</span><span class="p">)</span> <span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLMapViewDelegate.html">MGLMapViewDelegate</a></span><span class="o">&gt;</span> <span class="n">delegate</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/macos/src/MGLMapView.h#L104">
+ <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="/Configuring%20the%20Map%E2%80%99s%20Appearance"></a>
+ <a name="//apple_ref/objc/Section/Configuring the Map’s Appearance" class="dashAnchor"></a>
+ <a href="#/Configuring%20the%20Map%E2%80%99s%20Appearance">
+ <h3 id="Configuring%20the%20Map%E2%80%99s%20Appearance" class="section-name">Configuring the Map’s Appearance<span class="anchor-icon" /></h3>
+ </a>
+ </div>
+ <ul class="item-container">
+ <li class="item">
+ <div>
+ <code>
+ <a name="/c:objc(cs)MGLMapView(py)style"></a>
+ <a name="//apple_ref/objc/Property/style" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)style"><span class="token-name">style</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>The style currently displayed in the receiver.</p>
+
+<p>Unlike the <code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(py)styleURL">styleURL</a></code> property, this property is set to an object that allows
+you to manipulate every aspect of the style locally.</p>
+
+<p>If the style is loading, this property is set to <code>nil</code> until the style finishes
+loading. If the style has failed to load, this property is set to <code>nil</code>.
+Because the style loads asynchronously, you should manipulate it in the
+<code><a href="../Protocols/MGLMapViewDelegate.html#/c:objc(pl)MGLMapViewDelegate(im)mapView:didFinishLoadingStyle:">-[MGLMapViewDelegate mapView:didFinishLoadingStyle:]</a></code> or
+<code><a href="../Protocols/MGLMapViewDelegate.html#/c:objc(pl)MGLMapViewDelegate(im)mapViewDidFinishLoadingMap:">-[MGLMapViewDelegate mapViewDidFinishLoadingMap:]</a></code> method. It is not possible
+to manipulate the style before it has finished loading.</p>
+<div class="aside aside-note">
+ <p class="aside-title">Note</p>
+ The default styles provided by Mapbox contain sources and layers with
+identifiers that will change over time. Applications that use APIs that
+manipulate a style&rsquo;s sources and layers must first set the style URL to an
+explicitly versioned style using a convenience method like
+<code><a href="../Classes/MGLStyle.html#/c:objc(cs)MGLStyle(cm)outdoorsStyleURLWithVersion:">+[MGLStyle outdoorsStyleURLWithVersion:]</a></code>, <code>MGLMapView</code>’s “Style URL”
+inspectable in Interface Builder, or a manually constructed <code>NSURL</code>.
+
+</div>
+
+ </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">readonly</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">nullable</span><span class="p">)</span> <span class="n"><a href="../Classes/MGLStyle.html">MGLStyle</a></span> <span class="o">*</span><span class="n">style</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">style</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLStyle.html">MGLStyle</a></span><span class="p">?</span> <span class="p">{</span> <span class="k">get</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/macos/src/MGLMapView.h#L128">
+ <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)MGLMapView(py)styleURL"></a>
+ <a name="//apple_ref/objc/Property/styleURL" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)styleURL"><span class="token-name">styleURL</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>URL of the style currently displayed in the receiver.</p>
+
+<p>The URL may be a full HTTP or HTTPS URL, a Mapbox URL indicating the style’s
+map ID (<code>mapbox://styles/&lt;user&gt;/&lt;style&gt;</code>), or a path to a local file relative
+to the application’s resource path.</p>
+
+<p>If you set this property to <code>nil</code>, the receiver will use the default style and
+this property will automatically be set to that style’s URL.</p>
+
+<p>If you want to modify the current style without replacing it outright, or if
+you want to introspect individual style attributes, use the <code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(py)style">style</a></code> property.</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">NSURL</span> <span class="o">*</span><span class="n">styleURL</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">styleURL</span><span class="p">:</span> <span class="kt">URL</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/macos/src/MGLMapView.h#L143">
+ <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)MGLMapView(im)reloadStyle:"></a>
+ <a name="//apple_ref/objc/Method/-reloadStyle:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)reloadStyle:"><span class="token-name">-reloadStyle:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Reloads the style.</p>
+
+<p>You do not normally need to call this method. The map view automatically
+responds to changes in network connectivity by reloading the style. You may
+need to call this method if you change the access token after a style has
+loaded but before loading a style associated with a different Mapbox account.</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="kt">void</span><span class="p">)</span><span class="nf">reloadStyle</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">id</span><span class="p">)</span><span class="nv">sender</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="kd">@IBAction</span> <span class="kd">func</span> <span class="nf">reloadStyle</span><span class="p">(</span><span class="n">_</span> <span class="nv">sender</span><span class="p">:</span> <span class="kt">Any</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/macos/src/MGLMapView.h#L153">
+ <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)MGLMapView(py)zoomControls"></a>
+ <a name="//apple_ref/objc/Property/zoomControls" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)zoomControls"><span class="token-name">zoomControls</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>A control for zooming in and out, positioned in the lower-right corner.</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">readonly</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">)</span> <span class="n">NSSegmentedControl</span> <span class="o">*</span><span class="n">_Nonnull</span> <span class="n">zoomControls</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">zoomControls</span><span class="p">:</span> <span class="kt">NSSegmentedControl</span> <span class="p">{</span> <span class="k">get</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/macos/src/MGLMapView.h#L158">
+ <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)MGLMapView(py)compass"></a>
+ <a name="//apple_ref/objc/Property/compass" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)compass"><span class="token-name">compass</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>A control indicating the map’s direction and allowing the user to manipulate
+the direction, positioned above the zoom controls in the lower-right corner.</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">readonly</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">)</span> <span class="n">NSSlider</span> <span class="o">*</span><span class="n">_Nonnull</span> <span class="n">compass</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">compass</span><span class="p">:</span> <span class="kt">NSSlider</span> <span class="p">{</span> <span class="k">get</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/macos/src/MGLMapView.h#L164">
+ <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)MGLMapView(py)logoView"></a>
+ <a name="//apple_ref/objc/Property/logoView" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)logoView"><span class="token-name">logoView</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>The Mapbox logo, positioned in the lower-left corner.</p>
+<div class="aside aside-note">
+ <p class="aside-title">Note</p>
+ The Mapbox terms of service, which governs the use of Mapbox-hosted
+vector tiles and styles,
+<a href="https://www.mapbox.com/help/mapbox-logo/">requires</a> most Mapbox
+customers to display the Mapbox logo. If this applies to you, do not hide
+this view or change its contents.
+
+</div>
+
+ </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">readonly</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">)</span> <span class="n">NSImageView</span> <span class="o">*</span><span class="n">_Nonnull</span> <span class="n">logoView</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">logoView</span><span class="p">:</span> <span class="kt">NSImageView</span> <span class="p">{</span> <span class="k">get</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/macos/src/MGLMapView.h#L175">
+ <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)MGLMapView(py)attributionView"></a>
+ <a name="//apple_ref/objc/Property/attributionView" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)attributionView"><span class="token-name">attributionView</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>A view showing legally required copyright notices, positioned along the bottom
+of the map view, to the left of the Mapbox logo.</p>
+<div class="aside aside-note">
+ <p class="aside-title">Note</p>
+ The Mapbox terms of service, which governs the use of Mapbox-hosted
+vector tiles and styles,
+<a href="https://www.mapbox.com/help/attribution/">requires</a> these
+copyright notices to accompany any map that features Mapbox-designed styles,
+OpenStreetMap data, or other Mapbox data such as satellite or terrain data.
+If that applies to this map view, do not hide this view or remove any
+notices from it.
+
+</div>
+
+ </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">readonly</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">)</span> <span class="n">NSView</span> <span class="o">*</span><span class="n">_Nonnull</span> <span class="n">attributionView</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">attributionView</span><span class="p">:</span> <span class="kt">NSView</span> <span class="p">{</span> <span class="k">get</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/macos/src/MGLMapView.h#L189">
+ <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="/Manipulating%20the%20Viewpoint"></a>
+ <a name="//apple_ref/objc/Section/Manipulating the Viewpoint" class="dashAnchor"></a>
+ <a href="#/Manipulating%20the%20Viewpoint">
+ <h3 id="Manipulating%20the%20Viewpoint" class="section-name">Manipulating the Viewpoint<span class="anchor-icon" /></h3>
+ </a>
+ </div>
+ <ul class="item-container">
+ <li class="item">
+ <div>
+ <code>
+ <a name="/c:objc(cs)MGLMapView(py)centerCoordinate"></a>
+ <a name="//apple_ref/objc/Property/centerCoordinate" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)centerCoordinate"><span class="token-name">centerCoordinate</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>The geographic coordinate at the center of the map view.</p>
+
+<p>Changing the value of this property centers the map on the new coordinate
+without changing the current zoom level.</p>
+
+<p>Changing the value of this property updates the map view immediately. If you
+want to animate the change, use the <code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(im)setCenterCoordinate:animated:">-setCenterCoordinate:animated:</a></code> method
+instead.</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">CLLocationCoordinate2D</span> <span class="n">centerCoordinate</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">centerCoordinate</span><span class="p">:</span> <span class="kt">CLLocationCoordinate2D</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/macos/src/MGLMapView.h#L203">
+ <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)MGLMapView(im)setCenterCoordinate:animated:"></a>
+ <a name="//apple_ref/objc/Method/-setCenterCoordinate:animated:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)setCenterCoordinate:animated:"><span class="token-name">-setCenterCoordinate:animated:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Changes the center coordinate of the map and optionally animates the change.</p>
+
+<p>Changing the center coordinate centers the map on the new coordinate without
+changing the current zoom level.</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="kt">void</span><span class="p">)</span><span class="nf">setCenterCoordinate</span><span class="p">:(</span><span class="n">CLLocationCoordinate2D</span><span class="p">)</span><span class="nv">coordinate</span>
+ <span class="nf">animated</span><span class="p">:(</span><span class="n">BOOL</span><span class="p">)</span><span class="nv">animated</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="kd">func</span> <span class="nf">setCenter</span><span class="p">(</span><span class="n">_</span> <span class="nv">coordinate</span><span class="p">:</span> <span class="kt">CLLocationCoordinate2D</span><span class="p">,</span> <span class="nv">animated</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">)</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ coordinate
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The new center coordinate for the map.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ animated
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>Specify <code>YES</code> if you want the map view to scroll to the new
+location or <code>NO</code> if you want the map to display the new location
+immediately.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L216">
+ <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)MGLMapView(py)zoomLevel"></a>
+ <a name="//apple_ref/objc/Property/zoomLevel" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)zoomLevel"><span class="token-name">zoomLevel</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>The zoom level of the receiver.</p>
+
+<p>In addition to affecting the visual size and detail of features on the map, the
+zoom level affects the size of the vector tiles that are loaded. At zoom level
+0, each tile covers the entire world map; at zoom level 1, it covers ¼ of the
+world; at zoom level 2, <sup>1</sup>⁄<sub>16</sub> of the world, and so on.</p>
+
+<p>Changing the value of this property updates the map view immediately. If you
+want to animate the change, use the <code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(im)setZoomLevel:animated:">-setZoomLevel:animated:</a></code> method instead.</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="kt">double</span> <span class="n">zoomLevel</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">zoomLevel</span><span class="p">:</span> <span class="kt">Double</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/macos/src/MGLMapView.h#L229">
+ <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)MGLMapView(py)minimumZoomLevel"></a>
+ <a name="//apple_ref/objc/Property/minimumZoomLevel" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)minimumZoomLevel"><span class="token-name">minimumZoomLevel</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>The minimum zoom level at which the map can be shown.</p>
+
+<p>Depending on the map view’s aspect ratio, the map view may be prevented from
+reaching the minimum zoom level, in order to keep the map from repeating within
+the current viewport.</p>
+
+<p>If the value of this property is greater than that of the <code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(py)maximumZoomLevel">maximumZoomLevel</a></code>
+property, the behavior is undefined.</p>
+
+<p>The default value of this property is 0.</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="kt">double</span> <span class="n">minimumZoomLevel</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">minimumZoomLevel</span><span class="p">:</span> <span class="kt">Double</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/macos/src/MGLMapView.h#L243">
+ <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)MGLMapView(py)maximumZoomLevel"></a>
+ <a name="//apple_ref/objc/Property/maximumZoomLevel" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)maximumZoomLevel"><span class="token-name">maximumZoomLevel</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>The maximum zoom level the map can be shown at.</p>
+
+<p>If the value of this property is smaller than that of the <code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(py)minimumZoomLevel">minimumZoomLevel</a></code>
+property, the behavior is undefined.</p>
+
+<p>The default value of this property is 22. The upper bound for this property
+is 25.5.</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="kt">double</span> <span class="n">maximumZoomLevel</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">maximumZoomLevel</span><span class="p">:</span> <span class="kt">Double</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/macos/src/MGLMapView.h#L254">
+ <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)MGLMapView(im)setZoomLevel:animated:"></a>
+ <a name="//apple_ref/objc/Method/-setZoomLevel:animated:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)setZoomLevel:animated:"><span class="token-name">-setZoomLevel:animated:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Changes the zoom level of the map and optionally animates the change.</p>
+
+<p>Changing the zoom level scales the map without changing the current center
+coordinate.</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="kt">void</span><span class="p">)</span><span class="nf">setZoomLevel</span><span class="p">:(</span><span class="kt">double</span><span class="p">)</span><span class="nv">zoomLevel</span> <span class="nf">animated</span><span class="p">:(</span><span class="n">BOOL</span><span class="p">)</span><span class="nv">animated</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="kd">func</span> <span class="nf">setZoomLevel</span><span class="p">(</span><span class="n">_</span> <span class="nv">zoomLevel</span><span class="p">:</span> <span class="kt">Double</span><span class="p">,</span> <span class="nv">animated</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">)</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ zoomLevel
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The new zoom level for the map.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ animated
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>Specify <code>YES</code> if you want the map view to animate the change
+to the new zoom level or <code>NO</code> if you want the map to display the new zoom
+level immediately.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L267">
+ <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)MGLMapView(py)direction"></a>
+ <a name="//apple_ref/objc/Property/direction" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)direction"><span class="token-name">direction</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>The heading of the map, measured in degrees clockwise from true north.</p>
+
+<p>The value <code>0</code> means that the top edge of the map view corresponds to true
+north. The value <code>90</code> means the top of the map is pointing due east. The value
+<code>180</code> means the top of the map points due south, and so on.</p>
+
+<p>Changing the value of this property updates the map view immediately. If you
+want to animate the change, use the <code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(im)setDirection:animated:">-setDirection:animated:</a></code> method instead.</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">CLLocationDirection</span> <span class="n">direction</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">direction</span><span class="p">:</span> <span class="kt">CLLocationDirection</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/macos/src/MGLMapView.h#L279">
+ <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)MGLMapView(im)setDirection:animated:"></a>
+ <a name="//apple_ref/objc/Method/-setDirection:animated:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)setDirection:animated:"><span class="token-name">-setDirection:animated:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Changes the heading of the map and optionally animates the change.</p>
+
+<p>Changing the heading rotates the map without changing the current center
+coordinate or zoom level.</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="kt">void</span><span class="p">)</span><span class="nf">setDirection</span><span class="p">:(</span><span class="n">CLLocationDirection</span><span class="p">)</span><span class="nv">direction</span> <span class="nf">animated</span><span class="p">:(</span><span class="n">BOOL</span><span class="p">)</span><span class="nv">animated</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="kd">func</span> <span class="nf">setDirection</span><span class="p">(</span><span class="n">_</span> <span class="nv">direction</span><span class="p">:</span> <span class="kt">CLLocationDirection</span><span class="p">,</span> <span class="nv">animated</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">)</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ direction
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The heading of the map, measured in degrees clockwise from
+true north.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ animated
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>Specify <code>YES</code> if you want the map view to animate the change
+to the new heading or <code>NO</code> if you want the map to display the new heading
+immediately.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L293">
+ <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)MGLMapView(py)camera"></a>
+ <a name="//apple_ref/objc/Property/camera" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)camera"><span class="token-name">camera</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>A camera representing the current viewpoint of the map.</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">readwrite</span><span class="p">,</span> <span class="n">copy</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">)</span> <span class="n"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span> <span class="o">*</span><span class="n">_Nonnull</span> <span class="n">camera</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="kd">@NSCopying</span> <span class="k">var</span> <span class="nv">camera</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</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/macos/src/MGLMapView.h#L298">
+ <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)MGLMapView(im)setCamera:animated:"></a>
+ <a name="//apple_ref/objc/Method/-setCamera:animated:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)setCamera:animated:"><span class="token-name">-setCamera:animated:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Moves the viewpoint to a different location with respect to the map with an
+optional transition animation.</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="kt">void</span><span class="p">)</span><span class="nf">setCamera</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">camera</span> <span class="nf">animated</span><span class="p">:(</span><span class="n">BOOL</span><span class="p">)</span><span class="nv">animated</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="kd">func</span> <span class="nf">setCamera</span><span class="p">(</span><span class="n">_</span> <span class="nv">camera</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span><span class="p">,</span> <span class="nv">animated</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">)</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ camera
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The new viewpoint.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ animated
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>Specify <code>YES</code> if you want the map view to animate the change to
+the new viewpoint or <code>NO</code> if you want the map to display the new viewpoint
+immediately.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L309">
+ <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)MGLMapView(im)setCamera:withDuration:animationTimingFunction:completionHandler:"></a>
+ <a name="//apple_ref/objc/Method/-setCamera:withDuration:animationTimingFunction:completionHandler:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)setCamera:withDuration:animationTimingFunction:completionHandler:"><span class="token-name">-setCamera:withDuration:animationTimingFunction:completionHandler:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Moves the viewpoint to a different location with respect to the map with an
+optional transition duration and timing function.</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="kt">void</span><span class="p">)</span><span class="nf">setCamera</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">camera</span>
+ <span class="nf">withDuration</span><span class="p">:(</span><span class="n">NSTimeInterval</span><span class="p">)</span><span class="nv">duration</span>
+ <span class="nf">animationTimingFunction</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">CAMediaTimingFunction</span> <span class="o">*</span><span class="p">)</span><span class="nv">function</span>
+ <span class="nf">completionHandler</span><span class="p">:(</span><span class="n">nullable</span> <span class="kt">void</span> <span class="p">(</span><span class="o">^</span><span class="p">)(</span><span class="kt">void</span><span class="p">))</span><span class="nv">completion</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="kd">func</span> <span class="nf">setCamera</span><span class="p">(</span><span class="n">_</span> <span class="nv">camera</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span><span class="p">,</span> <span class="n">withDuration</span> <span class="nv">duration</span><span class="p">:</span> <span class="kt">TimeInterval</span><span class="p">,</span> <span class="n">animationTimingFunction</span> <span class="nv">function</span><span class="p">:</span> <span class="kt">CAMediaTimingFunction</span><span class="p">?,</span> <span class="n">completionHandler</span> <span class="nv">completion</span><span class="p">:</span> <span class="p">(()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ camera
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The new viewpoint.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ duration
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The amount of time, measured in seconds, that the transition
+animation should take. Specify <code>0</code> to jump to the new viewpoint
+instantaneously.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ function
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>A timing function used for the animation. Set this parameter to
+<code>nil</code> for a transition that matches most system animations. If the duration
+is <code>0</code>, this parameter is ignored.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ completion
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The block to execute after the animation finishes.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L324">
+ <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)MGLMapView(im)setCamera:withDuration:animationTimingFunction:edgePadding:completionHandler:"></a>
+ <a name="//apple_ref/objc/Method/-setCamera:withDuration:animationTimingFunction:edgePadding:completionHandler:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)setCamera:withDuration:animationTimingFunction:edgePadding:completionHandler:"><span class="token-name">-setCamera:withDuration:animationTimingFunction:edgePadding:completionHandler:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Moves the viewpoint to a different location with respect to the map with an
+optional transition duration and timing function.</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="kt">void</span><span class="p">)</span><span class="nf">setCamera</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">camera</span>
+ <span class="nf">withDuration</span><span class="p">:(</span><span class="n">NSTimeInterval</span><span class="p">)</span><span class="nv">duration</span>
+ <span class="nf">animationTimingFunction</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">CAMediaTimingFunction</span> <span class="o">*</span><span class="p">)</span><span class="nv">function</span>
+ <span class="nf">edgePadding</span><span class="p">:(</span><span class="n">NSEdgeInsets</span><span class="p">)</span><span class="nv">edgePadding</span>
+ <span class="nf">completionHandler</span><span class="p">:(</span><span class="n">nullable</span> <span class="kt">void</span> <span class="p">(</span><span class="o">^</span><span class="p">)(</span><span class="kt">void</span><span class="p">))</span><span class="nv">completion</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="kd">func</span> <span class="nf">setCamera</span><span class="p">(</span><span class="n">_</span> <span class="nv">camera</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span><span class="p">,</span> <span class="n">withDuration</span> <span class="nv">duration</span><span class="p">:</span> <span class="kt">TimeInterval</span><span class="p">,</span> <span class="n">animationTimingFunction</span> <span class="nv">function</span><span class="p">:</span> <span class="kt">CAMediaTimingFunction</span><span class="p">?,</span> <span class="nv">edgePadding</span><span class="p">:</span> <span class="kt">NSEdgeInsets</span><span class="p">,</span> <span class="n">completionHandler</span> <span class="nv">completion</span><span class="p">:</span> <span class="p">(()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ camera
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The new viewpoint.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ duration
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The amount of time, measured in seconds, that the transition
+animation should take. Specify <code>0</code> to jump to the new viewpoint
+instantaneously.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ function
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>A timing function used for the animation. Set this parameter to
+<code>nil</code> for a transition that matches most system animations. If the duration
+is <code>0</code>, this parameter is ignored.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ edgePadding
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The minimum padding (in screen points) that would be visible
+around the returned camera object if it were set as the receiver’s camera.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ completion
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The block to execute after the animation finishes.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L341">
+ <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)MGLMapView(im)flyToCamera:completionHandler:"></a>
+ <a name="//apple_ref/objc/Method/-flyToCamera:completionHandler:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)flyToCamera:completionHandler:"><span class="token-name">-flyToCamera:completionHandler:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Moves the viewpoint to a different location using a transition animation that
+evokes powered flight and a default duration based on the length of the flight
+path.</p>
+
+<p>The transition animation seamlessly incorporates zooming and panning to help
+the user find his or her bearings even after traversing a great distance.</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="kt">void</span><span class="p">)</span><span class="nf">flyToCamera</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">camera</span>
+ <span class="nf">completionHandler</span><span class="p">:(</span><span class="n">nullable</span> <span class="kt">void</span> <span class="p">(</span><span class="o">^</span><span class="p">)(</span><span class="kt">void</span><span class="p">))</span><span class="nv">completion</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="kd">func</span> <span class="nf">fly</span><span class="p">(</span><span class="n">to</span> <span class="nv">camera</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span><span class="p">,</span> <span class="n">completionHandler</span> <span class="nv">completion</span><span class="p">:</span> <span class="p">(()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ camera
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The new viewpoint.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ completion
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The block to execute after the animation finishes.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L355">
+ <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)MGLMapView(im)flyToCamera:withDuration:completionHandler:"></a>
+ <a name="//apple_ref/objc/Method/-flyToCamera:withDuration:completionHandler:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)flyToCamera:withDuration:completionHandler:"><span class="token-name">-flyToCamera:withDuration:completionHandler:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Moves the viewpoint to a different location using a transition animation that
+evokes powered flight and an optional transition duration.</p>
+
+<p>The transition animation seamlessly incorporates zooming and panning to help
+the user find his or her bearings even after traversing a great distance.</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="kt">void</span><span class="p">)</span><span class="nf">flyToCamera</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">camera</span>
+ <span class="nf">withDuration</span><span class="p">:(</span><span class="n">NSTimeInterval</span><span class="p">)</span><span class="nv">duration</span>
+ <span class="nf">completionHandler</span><span class="p">:(</span><span class="n">nullable</span> <span class="kt">void</span> <span class="p">(</span><span class="o">^</span><span class="p">)(</span><span class="kt">void</span><span class="p">))</span><span class="nv">completion</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="kd">func</span> <span class="nf">fly</span><span class="p">(</span><span class="n">to</span> <span class="nv">camera</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span><span class="p">,</span> <span class="n">withDuration</span> <span class="nv">duration</span><span class="p">:</span> <span class="kt">TimeInterval</span><span class="p">,</span> <span class="n">completionHandler</span> <span class="nv">completion</span><span class="p">:</span> <span class="p">(()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ camera
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The new viewpoint.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ duration
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The amount of time, measured in seconds, that the transition
+animation should take. Specify <code>0</code> to jump to the new viewpoint
+instantaneously. Specify a negative value to use the default duration, which
+is based on the length of the flight path.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ completion
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The block to execute after the animation finishes.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L371">
+ <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)MGLMapView(im)flyToCamera:withDuration:peakAltitude:completionHandler:"></a>
+ <a name="//apple_ref/objc/Method/-flyToCamera:withDuration:peakAltitude:completionHandler:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)flyToCamera:withDuration:peakAltitude:completionHandler:"><span class="token-name">-flyToCamera:withDuration:peakAltitude:completionHandler:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Moves the viewpoint to a different location using a transition animation that
+evokes powered flight and an optional transition duration and peak altitude.</p>
+
+<p>The transition animation seamlessly incorporates zooming and panning to help
+the user find his or her bearings even after traversing a great distance.</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="kt">void</span><span class="p">)</span><span class="nf">flyToCamera</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">camera</span>
+ <span class="nf">withDuration</span><span class="p">:(</span><span class="n">NSTimeInterval</span><span class="p">)</span><span class="nv">duration</span>
+ <span class="nf">peakAltitude</span><span class="p">:(</span><span class="n">CLLocationDistance</span><span class="p">)</span><span class="nv">peakAltitude</span>
+ <span class="nf">completionHandler</span><span class="p">:(</span><span class="n">nullable</span> <span class="kt">void</span> <span class="p">(</span><span class="o">^</span><span class="p">)(</span><span class="kt">void</span><span class="p">))</span><span class="nv">completion</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="kd">func</span> <span class="nf">fly</span><span class="p">(</span><span class="n">to</span> <span class="nv">camera</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span><span class="p">,</span> <span class="n">withDuration</span> <span class="nv">duration</span><span class="p">:</span> <span class="kt">TimeInterval</span><span class="p">,</span> <span class="nv">peakAltitude</span><span class="p">:</span> <span class="kt">CLLocationDistance</span><span class="p">,</span> <span class="n">completionHandler</span> <span class="nv">completion</span><span class="p">:</span> <span class="p">(()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">)</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ camera
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The new viewpoint.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ duration
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The amount of time, measured in seconds, that the transition
+animation should take. Specify <code>0</code> to jump to the new viewpoint
+instantaneously. Specify a negative value to use the default duration, which
+is based on the length of the flight path.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ peakAltitude
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The altitude, measured in meters, at the midpoint of the
+animation. The value of this parameter is ignored if it is negative or if
+the animation transition resulting from a similar call to
+<code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(im)setCamera:animated:">-setCamera:animated:</a></code> would have a midpoint at a higher altitude.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ completion
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The block to execute after the animation finishes.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L391">
+ <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)MGLMapView(py)visibleCoordinateBounds"></a>
+ <a name="//apple_ref/objc/Property/visibleCoordinateBounds" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)visibleCoordinateBounds"><span class="token-name">visibleCoordinateBounds</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>The geographic coordinate bounds visible in the receiver’s viewport.</p>
+
+<p>Changing the value of this property updates the receiver immediately. If you
+want to animate the change, use the <code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(im)setVisibleCoordinateBounds:animated:">-setVisibleCoordinateBounds:animated:</a></code>
+method instead.</p>
+
+<p>If a longitude is less than −180 degrees or greater than 180 degrees, the
+visible bounds straddles the antimeridian or international date line. For
+example, if both Tokyo and San Francisco are visible, the visible bounds might
+extend from (35.68476, −220.24257) to (37.78428, −122.41310).</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/MGLCoordinateBounds.html">MGLCoordinateBounds</a></span> <span class="n">visibleCoordinateBounds</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">visibleCoordinateBounds</span><span class="p">:</span> <span class="kt"><a href="../Structs/MGLCoordinateBounds.html">MGLCoordinateBounds</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/macos/src/MGLMapView.h#L405">
+ <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)MGLMapView(im)setVisibleCoordinateBounds:animated:"></a>
+ <a name="//apple_ref/objc/Method/-setVisibleCoordinateBounds:animated:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)setVisibleCoordinateBounds:animated:"><span class="token-name">-setVisibleCoordinateBounds:animated:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Changes the receiver’s viewport to fit the given coordinate bounds, optionally
+animating the change.</p>
+
+<p>To bring both sides of the antimeridian or international date line into view,
+specify some longitudes less than −180 degrees or greater than 180 degrees. For
+example, to show both Tokyo and San Francisco simultaneously, you could set the
+visible bounds to extend from (35.68476, −220.24257) to (37.78428, −122.41310).</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="kt">void</span><span class="p">)</span><span class="nf">setVisibleCoordinateBounds</span><span class="p">:(</span><span class="n"><a href="../Structs/MGLCoordinateBounds.html">MGLCoordinateBounds</a></span><span class="p">)</span><span class="nv">bounds</span>
+ <span class="nf">animated</span><span class="p">:(</span><span class="n">BOOL</span><span class="p">)</span><span class="nv">animated</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="kd">func</span> <span class="nf">setVisibleCoordinateBounds</span><span class="p">(</span><span class="n">_</span> <span class="nv">bounds</span><span class="p">:</span> <span class="kt"><a href="../Structs/MGLCoordinateBounds.html">MGLCoordinateBounds</a></span><span class="p">,</span> <span class="nv">animated</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">)</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ bounds
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The bounds that the viewport will show in its entirety.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ animated
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>Specify <code>YES</code> to animate the change by smoothly scrolling and
+zooming or <code>NO</code> to immediately display the given bounds.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L420">
+ <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)MGLMapView(im)setVisibleCoordinateBounds:edgePadding:animated:"></a>
+ <a name="//apple_ref/objc/Method/-setVisibleCoordinateBounds:edgePadding:animated:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)setVisibleCoordinateBounds:edgePadding:animated:"><span class="token-name">-setVisibleCoordinateBounds:edgePadding:animated:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Changes the receiver’s viewport to fit the given coordinate bounds and
+optionally some additional padding on each side.</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="kt">void</span><span class="p">)</span><span class="nf">setVisibleCoordinateBounds</span><span class="p">:(</span><span class="n"><a href="../Structs/MGLCoordinateBounds.html">MGLCoordinateBounds</a></span><span class="p">)</span><span class="nv">bounds</span>
+ <span class="nf">edgePadding</span><span class="p">:(</span><span class="n">NSEdgeInsets</span><span class="p">)</span><span class="nv">insets</span>
+ <span class="nf">animated</span><span class="p">:(</span><span class="n">BOOL</span><span class="p">)</span><span class="nv">animated</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="kd">func</span> <span class="nf">setVisibleCoordinateBounds</span><span class="p">(</span><span class="n">_</span> <span class="nv">bounds</span><span class="p">:</span> <span class="kt"><a href="../Structs/MGLCoordinateBounds.html">MGLCoordinateBounds</a></span><span class="p">,</span> <span class="n">edgePadding</span> <span class="nv">insets</span><span class="p">:</span> <span class="kt">NSEdgeInsets</span><span class="p">,</span> <span class="nv">animated</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">)</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ bounds
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The bounds that the viewport will show in its entirety.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ insets
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The minimum padding (in screen points) that will be visible
+around the given coordinate bounds.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ animated
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>Specify <code>YES</code> to animate the change by smoothly scrolling and
+zooming or <code>NO</code> to immediately display the given bounds.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L432">
+ <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)MGLMapView(im)showAnnotations:animated:"></a>
+ <a name="//apple_ref/objc/Method/-showAnnotations:animated:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)showAnnotations:animated:"><span class="token-name">-showAnnotations:animated:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Sets the visible region so that the map displays the specified annotations.</p>
+
+<p>Calling this method updates the value in the <code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(py)visibleCoordinateBounds">visibleCoordinateBounds</a></code> property
+and potentially other properties to reflect the new map region. A small amount
+of padding is reserved around the edges of the map view. To specify a different
+amount of padding, use the <code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(im)showAnnotations:edgePadding:animated:">-showAnnotations:edgePadding:animated:</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="kt">void</span><span class="p">)</span><span class="nf">showAnnotations</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSArray</span><span class="o">&lt;</span><span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></span><span class="o">&gt;&gt;</span> <span class="o">*</span><span class="p">)</span><span class="nv">annotations</span>
+ <span class="nf">animated</span><span class="p">:(</span><span class="n">BOOL</span><span class="p">)</span><span class="nv">animated</span><span class="p">;</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ annotations
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The annotations that you want to be visible in the map.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ animated
+ </code>
+ </td>
+ <td>
+ <div>
+ <p><code>YES</code> if you want the map region change to be animated, or <code>NO</code>
+if you want the map to display the new region immediately without animations.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L446">
+ <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)MGLMapView(im)showAnnotations:edgePadding:animated:"></a>
+ <a name="//apple_ref/objc/Method/-showAnnotations:edgePadding:animated:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)showAnnotations:edgePadding:animated:"><span class="token-name">-showAnnotations:edgePadding:animated:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Sets the visible region so that the map displays the specified annotations with
+the specified amount of padding on each side.</p>
+
+<p>Calling this method updates the value in the <code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(py)visibleCoordinateBounds">visibleCoordinateBounds</a></code> property
+and potentially other properties to reflect the new map region.</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="kt">void</span><span class="p">)</span><span class="nf">showAnnotations</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSArray</span><span class="o">&lt;</span><span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></span><span class="o">&gt;&gt;</span> <span class="o">*</span><span class="p">)</span><span class="nv">annotations</span>
+ <span class="nf">edgePadding</span><span class="p">:(</span><span class="n">NSEdgeInsets</span><span class="p">)</span><span class="nv">insets</span>
+ <span class="nf">animated</span><span class="p">:(</span><span class="n">BOOL</span><span class="p">)</span><span class="nv">animated</span><span class="p">;</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ annotations
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The annotations that you want to be visible in the map.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ insets
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The minimum padding (in screen points) around the edges of the
+map view to keep clear of annotations.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ animated
+ </code>
+ </td>
+ <td>
+ <div>
+ <p><code>YES</code> if you want the map region change to be animated, or <code>NO</code>
+if you want the map to display the new region immediately without animations.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L461">
+ <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)MGLMapView(im)cameraThatFitsCoordinateBounds:"></a>
+ <a name="//apple_ref/objc/Method/-cameraThatFitsCoordinateBounds:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)cameraThatFitsCoordinateBounds:"><span class="token-name">-cameraThatFitsCoordinateBounds:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Returns the camera that best fits the given coordinate bounds.</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"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span> <span class="o">*</span><span class="p">)</span><span class="nf">cameraThatFitsCoordinateBounds</span><span class="p">:</span>
+ <span class="p">(</span><span class="n"><a href="../Structs/MGLCoordinateBounds.html">MGLCoordinateBounds</a></span><span class="p">)</span><span class="nv">bounds</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="kd">func</span> <span class="nf">cameraThatFitsCoordinateBounds</span><span class="p">(</span><span class="n">_</span> <span class="nv">bounds</span><span class="p">:</span> <span class="kt"><a href="../Structs/MGLCoordinateBounds.html">MGLCoordinateBounds</a></span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ bounds
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The coordinate bounds to fit to the receiver’s viewport.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h4>Return Value</h4>
+ <p>A camera object centered on the same location as the coordinate bounds
+with zoom level as high (close to the ground) as possible while still
+including the entire coordinate bounds. The camera object uses the current
+direction and pitch.</p>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L472">
+ <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)MGLMapView(im)cameraThatFitsCoordinateBounds:edgePadding:"></a>
+ <a name="//apple_ref/objc/Method/-cameraThatFitsCoordinateBounds:edgePadding:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)cameraThatFitsCoordinateBounds:edgePadding:"><span class="token-name">-cameraThatFitsCoordinateBounds:edgePadding:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Returns the camera that best fits the given coordinate bounds, optionally with
+some additional padding on each side.</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"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span> <span class="o">*</span><span class="p">)</span><span class="nf">cameraThatFitsCoordinateBounds</span><span class="p">:</span>
+ <span class="p">(</span><span class="n"><a href="../Structs/MGLCoordinateBounds.html">MGLCoordinateBounds</a></span><span class="p">)</span><span class="nv">bounds</span>
+ <span class="nf">edgePadding</span><span class="p">:(</span><span class="n">NSEdgeInsets</span><span class="p">)</span><span class="nv">insets</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="kd">func</span> <span class="nf">cameraThatFitsCoordinateBounds</span><span class="p">(</span><span class="n">_</span> <span class="nv">bounds</span><span class="p">:</span> <span class="kt"><a href="../Structs/MGLCoordinateBounds.html">MGLCoordinateBounds</a></span><span class="p">,</span> <span class="n">edgePadding</span> <span class="nv">insets</span><span class="p">:</span> <span class="kt">NSEdgeInsets</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ bounds
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The coordinate bounds to fit to the receiver’s viewport.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ insets
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The minimum padding (in screen points) that would be visible
+around the returned camera object if it were set as the receiver’s camera.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h4>Return Value</h4>
+ <p>A camera object centered on the same location as the coordinate bounds
+with zoom level as high (close to the ground) as possible while still
+including the entire coordinate bounds. The camera object uses the current
+direction and pitch.</p>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L486">
+ <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)MGLMapView(im)camera:fittingCoordinateBounds:edgePadding:"></a>
+ <a name="//apple_ref/objc/Method/-camera:fittingCoordinateBounds:edgePadding:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)camera:fittingCoordinateBounds:edgePadding:"><span class="token-name">-camera:fittingCoordinateBounds:edgePadding:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Returns the camera that best fits the given coordinate bounds, with the specified camera,
+optionally with some additional padding on each side.</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"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span> <span class="o">*</span><span class="p">)</span><span class="nf">camera</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">camera</span>
+ <span class="nf">fittingCoordinateBounds</span><span class="p">:(</span><span class="n"><a href="../Structs/MGLCoordinateBounds.html">MGLCoordinateBounds</a></span><span class="p">)</span><span class="nv">bounds</span>
+ <span class="nf">edgePadding</span><span class="p">:(</span><span class="n">NSEdgeInsets</span><span class="p">)</span><span class="nv">insets</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="kd">func</span> <span class="nf">camera</span><span class="p">(</span><span class="n">_</span> <span class="nv">camera</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span><span class="p">,</span> <span class="n">fitting</span> <span class="nv">bounds</span><span class="p">:</span> <span class="kt"><a href="../Structs/MGLCoordinateBounds.html">MGLCoordinateBounds</a></span><span class="p">,</span> <span class="n">edgePadding</span> <span class="nv">insets</span><span class="p">:</span> <span class="kt">NSEdgeInsets</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ camera
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The camera that the return camera should adhere to. All values
+on this camera will be manipulated except for pitch and direction.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ bounds
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The coordinate bounds to fit to the receiver’s viewport.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ insets
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The minimum padding (in screen points) that would be visible
+around the returned camera object if it were set as the receiver’s camera.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h4>Return Value</h4>
+ <p>A camera object centered on the same location as the coordinate bounds
+with zoom level as high (close to the ground) as possible while still
+including the entire coordinate bounds. The initial camera&rsquo;s pitch and
+direction will be honored.</p>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L502">
+ <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)MGLMapView(im)camera:fittingShape:edgePadding:"></a>
+ <a name="//apple_ref/objc/Method/-camera:fittingShape:edgePadding:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)camera:fittingShape:edgePadding:"><span class="token-name">-camera:fittingShape:edgePadding:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Returns the camera that best fits the given shape, with the specified camera,
+optionally with some additional padding on each side.</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"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span> <span class="o">*</span><span class="p">)</span><span class="nf">camera</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">camera</span>
+ <span class="nf">fittingShape</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLShape.html">MGLShape</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">shape</span>
+ <span class="nf">edgePadding</span><span class="p">:(</span><span class="n">NSEdgeInsets</span><span class="p">)</span><span class="nv">insets</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="kd">func</span> <span class="nf">camera</span><span class="p">(</span><span class="n">_</span> <span class="nv">camera</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span><span class="p">,</span> <span class="n">fitting</span> <span class="nv">shape</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLShape.html">MGLShape</a></span><span class="p">,</span> <span class="n">edgePadding</span> <span class="nv">insets</span><span class="p">:</span> <span class="kt">NSEdgeInsets</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ camera
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The camera that the return camera should adhere to. All values
+on this camera will be manipulated except for pitch and direction.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ shape
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The shape to fit to the receiver’s viewport.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ insets
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The minimum padding (in screen points) that would be visible
+around the returned camera object if it were set as the receiver’s camera.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h4>Return Value</h4>
+ <p>A camera object centered on the shape&rsquo;s center with zoom level as high
+(close to the ground) as possible while still including the entire shape. The
+initial camera&rsquo;s pitch and direction will be honored.</p>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L517">
+ <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)MGLMapView(im)cameraThatFitsShape:direction:edgePadding:"></a>
+ <a name="//apple_ref/objc/Method/-cameraThatFitsShape:direction:edgePadding:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)cameraThatFitsShape:direction:edgePadding:"><span class="token-name">-cameraThatFitsShape:direction:edgePadding:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Returns the camera that best fits the given shape, with the specified direction,
+optionally with some additional padding on each side.</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"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span> <span class="o">*</span><span class="p">)</span><span class="nf">cameraThatFitsShape</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLShape.html">MGLShape</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">shape</span>
+ <span class="nf">direction</span><span class="p">:(</span><span class="n">CLLocationDirection</span><span class="p">)</span><span class="nv">direction</span>
+ <span class="nf">edgePadding</span><span class="p">:(</span><span class="n">NSEdgeInsets</span><span class="p">)</span><span class="nv">insets</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="kd">func</span> <span class="nf">cameraThatFitsShape</span><span class="p">(</span><span class="n">_</span> <span class="nv">shape</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLShape.html">MGLShape</a></span><span class="p">,</span> <span class="nv">direction</span><span class="p">:</span> <span class="kt">CLLocationDirection</span><span class="p">,</span> <span class="n">edgePadding</span> <span class="nv">insets</span><span class="p">:</span> <span class="kt">NSEdgeInsets</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Classes/MGLMapCamera.html">MGLMapCamera</a></span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ shape
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The shape to fit to the receiver’s viewport.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ direction
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The direction of the viewport, measured in degrees clockwise from true north.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ insets
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The minimum padding (in screen points) that would be visible
+around the returned camera object if it were set as the receiver’s camera.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h4>Return Value</h4>
+ <p>A camera object centered on the shape&rsquo;s center with zoom level as high
+(close to the ground) as possible while still including the entire shape. The
+camera object uses the current pitch.</p>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L531">
+ <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)MGLMapView(py)automaticallyAdjustsContentInsets"></a>
+ <a name="//apple_ref/objc/Property/automaticallyAdjustsContentInsets" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)automaticallyAdjustsContentInsets"><span class="token-name">automaticallyAdjustsContentInsets</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>A Boolean value indicating whether the receiver automatically adjusts its
+content insets.</p>
+
+<p>When the value of this property is <code>YES</code>, the map view automatically updates
+its <code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(py)contentInsets">contentInsets</a></code> property to account for any overlapping title bar or
+toolbar. To overlap with the title bar or toolbar, the containing window’s
+style mask must have <code>NSFullSizeContentViewWindowMask</code> set, and the title bar
+must not be transparent.</p>
+
+<p>The default value of this property is <code>YES</code>.</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">BOOL</span> <span class="n">automaticallyAdjustsContentInsets</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">automaticallyAdjustsContentInsets</span><span class="p">:</span> <span class="kt">Bool</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/macos/src/MGLMapView.h#L545">
+ <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)MGLMapView(py)contentInsets"></a>
+ <a name="//apple_ref/objc/Property/contentInsets" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)contentInsets"><span class="token-name">contentInsets</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>The distance from the edges of the map view’s frame to the edges of the map
+view’s logical viewport.</p>
+
+<p>When the value of this property is equal to <code>NSEdgeInsetsZero</code>, viewport
+properties such as <code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(py)centerCoordinate">centerCoordinate</a></code> assume a viewport that matches the map
+view’s frame. Otherwise, those properties are inset, excluding part of the
+frame from the viewport. For instance, if the only the top edge is inset, the
+map center is effectively shifted downward.</p>
+
+<p>When the value of the <code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(py)automaticallyAdjustsContentInsets">automaticallyAdjustsContentInsets</a></code> property is <code>YES</code>,
+the value of this property may be overridden at any time.</p>
+
+<p>Changing the value of this property updates the map view immediately. If you
+want to animate the change, use the <code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(im)setContentInsets:animated:">-setContentInsets:animated:</a></code> method
+instead.</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">NSEdgeInsets</span> <span class="n">contentInsets</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">contentInsets</span><span class="p">:</span> <span class="kt">NSEdgeInsets</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/macos/src/MGLMapView.h#L564">
+ <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)MGLMapView(im)setContentInsets:animated:"></a>
+ <a name="//apple_ref/objc/Method/-setContentInsets:animated:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)setContentInsets:animated:"><span class="token-name">-setContentInsets:animated:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Sets the distance from the edges of the map view’s frame to the edges of the
+map view’s logical viewport, with an optional transition animation.</p>
+
+<p>When the value of this property is equal to <code>NSEdgeInsetsZero</code>, viewport
+properties such as <code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(py)centerCoordinate">centerCoordinate</a></code> assume a viewport that matches the map
+view’s frame. Otherwise, those properties are inset, excluding part of the
+frame from the viewport. For instance, if the only the top edge is inset, the
+map center is effectively shifted downward.</p>
+
+<p>When the value of the <code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(py)automaticallyAdjustsContentInsets">automaticallyAdjustsContentInsets</a></code> property is <code>YES</code>,
+the value of this property may be overridden at any time.</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="kt">void</span><span class="p">)</span><span class="nf">setContentInsets</span><span class="p">:(</span><span class="n">NSEdgeInsets</span><span class="p">)</span><span class="nv">contentInsets</span> <span class="nf">animated</span><span class="p">:(</span><span class="n">BOOL</span><span class="p">)</span><span class="nv">animated</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="kd">func</span> <span class="nf">setContentInsets</span><span class="p">(</span><span class="n">_</span> <span class="nv">contentInsets</span><span class="p">:</span> <span class="kt">NSEdgeInsets</span><span class="p">,</span> <span class="nv">animated</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">)</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ contentInsets
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The new values to inset the content by.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ animated
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>Specify <code>YES</code> if you want the map view to animate the change to
+the content insets or <code>NO</code> if you want the map to inset the content
+immediately.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L584">
+ <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="/Configuring%20How%20the%20User%20Interacts%20with%20the%20Map"></a>
+ <a name="//apple_ref/objc/Section/Configuring How the User Interacts with the Map" class="dashAnchor"></a>
+ <a href="#/Configuring%20How%20the%20User%20Interacts%20with%20the%20Map">
+ <h3 id="Configuring%20How%20the%20User%20Interacts%20with%20the%20Map" class="section-name">Configuring How the User Interacts with the Map<span class="anchor-icon" /></h3>
+ </a>
+ </div>
+ <ul class="item-container">
+ <li class="item">
+ <div>
+ <code>
+ <a name="/c:objc(cs)MGLMapView(py)zoomEnabled"></a>
+ <a name="//apple_ref/objc/Property/zoomEnabled" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)zoomEnabled"><span class="token-name">zoomEnabled</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>A Boolean value that determines whether the user may zoom the map in and out,
+changing the zoom level.</p>
+
+<p>When this property is set to <code>YES</code>, the default, the user may zoom the map in
+and out by pinching two fingers, by using a scroll wheel on a traditional
+mouse, or by dragging the mouse cursor up and down while holding down the Shift
+key. When the receiver has focus, the user may also zoom by pressing the up and
+down arrow keys while holding down the Option key.</p>
+
+<p>This property controls only user interactions with the map. If you set the
+value of this property to <code>NO</code>, you may still change the map zoom
+programmatically.</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">isZoomEnabled</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">BOOL</span> <span class="n">zoomEnabled</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">isZoomEnabled</span><span class="p">:</span> <span class="kt">Bool</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/macos/src/MGLMapView.h#L602">
+ <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)MGLMapView(py)scrollEnabled"></a>
+ <a name="//apple_ref/objc/Property/scrollEnabled" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)scrollEnabled"><span class="token-name">scrollEnabled</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>A Boolean value that determines whether the user may scroll around the map,
+changing the center coordinate.</p>
+
+<p>When this property is set to <code>YES</code>, the default, the user may scroll the map by
+swiping with two fingers or dragging the mouse cursor. When the receiver has
+focus, the user may also scroll around the map by pressing the arrow keys.</p>
+
+<p>This property controls only user interactions with the map. If you set the
+value of this property to <code>NO</code>, you may still change the map location
+programmatically.</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">isScrollEnabled</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">BOOL</span> <span class="n">scrollEnabled</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">isScrollEnabled</span><span class="p">:</span> <span class="kt">Bool</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/macos/src/MGLMapView.h#L616">
+ <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)MGLMapView(py)rotateEnabled"></a>
+ <a name="//apple_ref/objc/Property/rotateEnabled" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)rotateEnabled"><span class="token-name">rotateEnabled</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>A Boolean value that determines whether the user may rotate the map, changing
+the direction.</p>
+
+<p>When this property is set to <code>YES</code>, the default, the user may rotate the map by
+moving two fingers in a circular motion or by dragging the mouse cursor left
+and right while holding down the Option key. When the receiver has focus, the
+user may also zoom by pressing the left and right arrow keys while holding down
+the Option key.</p>
+
+<p>This property controls only user interactions with the map. If you set the
+value of this property to <code>NO</code>, you may still rotate the map programmatically.</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">isRotateEnabled</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">BOOL</span> <span class="n">rotateEnabled</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">isRotateEnabled</span><span class="p">:</span> <span class="kt">Bool</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/macos/src/MGLMapView.h#L631">
+ <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)MGLMapView(py)pitchEnabled"></a>
+ <a name="//apple_ref/objc/Property/pitchEnabled" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)pitchEnabled"><span class="token-name">pitchEnabled</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>A Boolean value that determines whether the user may tilt of the map, changing
+the pitch.</p>
+
+<p>When this property is set to <code>YES</code>, the default, the user may rotate the map by
+dragging the mouse cursor up and down while holding down the Option key.</p>
+
+<p>This property controls only user interactions with the map. If you set the
+value of this property to <code>NO</code>, you may still change the pitch of the map
+programmatically.</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">isPitchEnabled</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">BOOL</span> <span class="n">pitchEnabled</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">isPitchEnabled</span><span class="p">:</span> <span class="kt">Bool</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/macos/src/MGLMapView.h#L644">
+ <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="/Annotating%20the%20Map"></a>
+ <a name="//apple_ref/objc/Section/Annotating the Map" class="dashAnchor"></a>
+ <a href="#/Annotating%20the%20Map">
+ <h3 id="Annotating%20the%20Map" class="section-name">Annotating the Map<span class="anchor-icon" /></h3>
+ </a>
+ </div>
+ <ul class="item-container">
+ <li class="item">
+ <div>
+ <code>
+ <a name="/c:objc(cs)MGLMapView(py)annotations"></a>
+ <a name="//apple_ref/objc/Property/annotations" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)annotations"><span class="token-name">annotations</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>The complete list of annotations associated with the receiver. (read-only)</p>
+
+<p>The objects in this array must adopt the <code><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></code> protocol. If no
+annotations are associated with the map view, the value of this property is
+<code>nil</code>.</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">readonly</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">nullable</span><span class="p">)</span>
+ <span class="n">NSArray</span><span class="o">&lt;</span><span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></span><span class="o">&gt;&gt;</span> <span class="o">*</span><span class="n">annotations</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/macos/src/MGLMapView.h#L655">
+ <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)MGLMapView(im)addAnnotation:"></a>
+ <a name="//apple_ref/objc/Method/-addAnnotation:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)addAnnotation:"><span class="token-name">-addAnnotation:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Adds an annotation to the map view.</p>
+<div class="aside aside-note">
+ <p class="aside-title">Note</p>
+ <p><code><a href="../Classes/MGLMultiPolyline.html">MGLMultiPolyline</a></code>, <code><a href="../Classes/MGLMultiPolygon.html">MGLMultiPolygon</a></code>, and <code><a href="../Classes/MGLShapeCollection.html">MGLShapeCollection</a></code> objects
+cannot be added to the map view at this time. Nor can <code><a href="../Classes/MGLMultiPoint.html">MGLMultiPoint</a></code>
+objects that are not instances of <code><a href="../Classes/MGLPolyline.html">MGLPolyline</a></code> or <code><a href="../Classes/MGLPolygon.html">MGLPolygon</a></code>. Any
+multipoint, multipolyline, multipolygon, or shape collection object that is
+specified is silently ignored.</p>
+
+</div>
+
+ </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="kt">void</span><span class="p">)</span><span class="nf">addAnnotation</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></span><span class="o">&gt;</span><span class="p">)</span><span class="nv">annotation</span><span class="p">;</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ annotation
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The annotation object to add to the receiver. This object
+must conform to the <code><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></code> protocol. The map view retains the
+annotation object.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L670">
+ <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)MGLMapView(im)addAnnotations:"></a>
+ <a name="//apple_ref/objc/Method/-addAnnotations:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)addAnnotations:"><span class="token-name">-addAnnotations:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Adds an array of annotations to the map view.</p>
+<div class="aside aside-note">
+ <p class="aside-title">Note</p>
+ <p><code><a href="../Classes/MGLMultiPolyline.html">MGLMultiPolyline</a></code>, <code><a href="../Classes/MGLMultiPolygon.html">MGLMultiPolygon</a></code>, and <code><a href="../Classes/MGLShapeCollection.html">MGLShapeCollection</a></code> objects
+cannot be added to the map view at this time. Nor can <code><a href="../Classes/MGLMultiPoint.html">MGLMultiPoint</a></code>
+objects that are not instances of <code><a href="../Classes/MGLPolyline.html">MGLPolyline</a></code> or <code><a href="../Classes/MGLPolygon.html">MGLPolygon</a></code>. Any
+multipoint, multipolyline, multipolygon, or shape collection objects that
+are specified are silently ignored.</p>
+
+</div>
+
+ </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="kt">void</span><span class="p">)</span><span class="nf">addAnnotations</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSArray</span><span class="o">&lt;</span><span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></span><span class="o">&gt;&gt;</span> <span class="o">*</span><span class="p">)</span><span class="nv">annotations</span><span class="p">;</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ annotations
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>An array of annotation objects. Each object in the array
+must conform to the <code><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></code> protocol. The map view retains each
+individual annotation object.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L685">
+ <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)MGLMapView(py)visibleAnnotations"></a>
+ <a name="//apple_ref/objc/Property/visibleAnnotations" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)visibleAnnotations"><span class="token-name">visibleAnnotations</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>The complete list of annotations associated with the receiver that are
+currently visible.</p>
+
+<p>The objects in this array must adopt the <code><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></code> protocol. If no
+annotations are associated with the map view or if no annotations associated
+with the map view are currently visible, the value of this property is <code>nil</code>.</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">readonly</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">nullable</span><span class="p">)</span>
+ <span class="n">NSArray</span><span class="o">&lt;</span><span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></span><span class="o">&gt;&gt;</span> <span class="o">*</span><span class="n">visibleAnnotations</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/macos/src/MGLMapView.h#L695">
+ <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)MGLMapView(im)removeAnnotation:"></a>
+ <a name="//apple_ref/objc/Method/-removeAnnotation:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)removeAnnotation:"><span class="token-name">-removeAnnotation:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Removes an annotation from the map view, deselecting it if it is selected.</p>
+
+<p>Removing an annotation object dissociates it from the map view entirely,
+preventing it from being displayed on the map. Thus you would typically call
+this method only when you want to hide or delete a given annotation.</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="kt">void</span><span class="p">)</span><span class="nf">removeAnnotation</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></span><span class="o">&gt;</span><span class="p">)</span><span class="nv">annotation</span><span class="p">;</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ annotation
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The annotation object to remove. This object must conform to
+the <code><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></code> protocol.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L707">
+ <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)MGLMapView(im)removeAnnotations:"></a>
+ <a name="//apple_ref/objc/Method/-removeAnnotations:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)removeAnnotations:"><span class="token-name">-removeAnnotations:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Removes an array of annotations from the map view, deselecting any selected
+annotations in the array.</p>
+
+<p>Removing annotation objects dissociates them from the map view entirely,
+preventing them from being displayed on the map. Thus you would typically call
+this method only when you want to hide or delete the given annotations.</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="kt">void</span><span class="p">)</span><span class="nf">removeAnnotations</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSArray</span><span class="o">&lt;</span><span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></span><span class="o">&gt;&gt;</span> <span class="o">*</span><span class="p">)</span><span class="nv">annotations</span><span class="p">;</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ annotations
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The array of annotation objects to remove. Objects in the
+array must conform to the <code><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></code> protocol.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L720">
+ <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)MGLMapView(im)dequeueReusableAnnotationImageWithIdentifier:"></a>
+ <a name="//apple_ref/objc/Method/-dequeueReusableAnnotationImageWithIdentifier:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)dequeueReusableAnnotationImageWithIdentifier:"><span class="token-name">-dequeueReusableAnnotationImageWithIdentifier:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Returns a reusable annotation image object associated with its identifier.</p>
+
+<p>For performance reasons, you should generally reuse <code><a href="../Classes/MGLAnnotationImage.html">MGLAnnotationImage</a></code>
+objects for identical-looking annotations in your map views. Dequeueing saves
+time and memory during performance-critical operations such as scrolling.</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">nullable</span> <span class="n"><a href="../Classes/MGLAnnotationImage.html">MGLAnnotationImage</a></span> <span class="o">*</span><span class="p">)</span><span class="nf">dequeueReusableAnnotationImageWithIdentifier</span><span class="p">:</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="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="kd">func</span> <span class="nf">dequeueReusableAnnotationImage</span><span class="p">(</span><span class="n">withIdentifier</span> <span class="nv">identifier</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Classes/MGLAnnotationImage.html">MGLAnnotationImage</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 identifying the annotation image to be reused. This
+string is the same one you specify when initially returning the annotation
+image object using the <code>-mapView:imageForAnnotation:</code> method.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h4>Return Value</h4>
+ <p>An annotation image object with the given identifier, or <code>nil</code> if no
+such object exists in the reuse queue.</p>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L735">
+ <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)MGLMapView(im)visibleAnnotationsInRect:"></a>
+ <a name="//apple_ref/objc/Method/-visibleAnnotationsInRect:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)visibleAnnotationsInRect:"><span class="token-name">-visibleAnnotationsInRect:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Returns the list of annotations associated with the receiver that intersect with
+the given rectangle.</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">nullable</span> <span class="n">NSArray</span><span class="o">&lt;</span><span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></span><span class="o">&gt;&gt;</span> <span class="o">*</span><span class="p">)</span><span class="nf">visibleAnnotationsInRect</span><span class="p">:(</span><span class="n">CGRect</span><span class="p">)</span><span class="nv">rect</span><span class="p">;</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ rect
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>A rectangle expressed in the map view’s coordinate system.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h4>Return Value</h4>
+ <p>An array of objects that adopt the <code><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></code> protocol or <code>nil</code> if
+no annotations associated with the map view are currently visible in the
+rectangle.</p>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L746">
+ <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="/Managing%20Annotation%20Selections"></a>
+ <a name="//apple_ref/objc/Section/Managing Annotation Selections" class="dashAnchor"></a>
+ <a href="#/Managing%20Annotation%20Selections">
+ <h3 id="Managing%20Annotation%20Selections" class="section-name">Managing Annotation Selections<span class="anchor-icon" /></h3>
+ </a>
+ </div>
+ <ul class="item-container">
+ <li class="item">
+ <div>
+ <code>
+ <a name="/c:objc(cs)MGLMapView(py)selectedAnnotations"></a>
+ <a name="//apple_ref/objc/Property/selectedAnnotations" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)selectedAnnotations"><span class="token-name">selectedAnnotations</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>The currently selected annotations.</p>
+
+<p>Assigning a new array to this property selects only the first annotation in the
+array.</p>
+
+<p>If the annotation is of type <code><a href="../Classes/MGLPointAnnotation.html">MGLPointAnnotation</a></code> and is offscreen, the map is
+panned so that the annotation and its callout are brought just onscreen. The
+annotation is <em>not</em> centered within the viewport.</p>
+<div class="aside aside-note">
+ <p class="aside-title">Note</p>
+ In versions prior to <code>4.0.0</code> if the annotation was offscreen it was not
+selected.
+
+</div>
+
+ </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">readwrite</span><span class="p">,</span> <span class="n">copy</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">)</span>
+ <span class="n">NSArray</span><span class="o">&lt;</span><span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></span><span class="o">&gt;&gt;</span> <span class="o">*</span><span class="n">_Nonnull</span> <span class="n">selectedAnnotations</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/macos/src/MGLMapView.h#L763">
+ <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)MGLMapView(im)selectAnnotation:"></a>
+ <a name="//apple_ref/objc/Method/-selectAnnotation:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)selectAnnotation:"><span class="token-name">-selectAnnotation:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Selects an annotation and displays a callout popover for it.</p>
+
+<p>If the annotation is of type <code><a href="../Classes/MGLPointAnnotation.html">MGLPointAnnotation</a></code> and is offscreen, the map is
+panned so that the annotation and its callout are brought just onscreen. The
+annotation is <em>not</em> centered within the viewport.</p>
+<div class="aside aside-note">
+ <p class="aside-title">Note</p>
+ <p>In versions prior to <code>4.0.0</code> selecting an offscreen annotation did not
+change the camera.</p>
+
+</div>
+
+ </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="kt">void</span><span class="p">)</span><span class="nf">selectAnnotation</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></span><span class="o">&gt;</span><span class="p">)</span><span class="nv">annotation</span><span class="p">;</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ annotation
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The annotation object to select.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L777">
+ <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)MGLMapView(im)deselectAnnotation:"></a>
+ <a name="//apple_ref/objc/Method/-deselectAnnotation:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)deselectAnnotation:"><span class="token-name">-deselectAnnotation:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Deselects an annotation and hides its callout popover.</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="kt">void</span><span class="p">)</span><span class="nf">deselectAnnotation</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></span><span class="o">&gt;</span><span class="p">)</span><span class="nv">annotation</span><span class="p">;</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ annotation
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The annotation object to deselect.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L784">
+ <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)MGLMapView(py)calloutViewController"></a>
+ <a name="//apple_ref/objc/Property/calloutViewController" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)calloutViewController"><span class="token-name">calloutViewController</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>A common view controller for managing a callout popover’s content view.</p>
+
+<p>Like any instance of <code>NSPopover</code>, an annotation callout manages its contents
+with a view controller. The annotation object is the view controller’s
+represented object. This means that you can bind controls in the view
+controller’s content view to KVO-compliant properties of the annotation object,
+such as <code>title</code> and <code>subtitle</code>.</p>
+
+<p>This property defines a common view controller that is used for every
+annotation’s callout view. If you set this property to <code>nil</code>, a default view
+controller will be used that manages a simple title label and subtitle label.
+If you need distinct view controllers for different annotations, the map view’s
+delegate should implement <code>-mapView:calloutViewControllerForAnnotation:</code>
+instead.</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">readwrite</span><span class="p">,</span> <span class="n">strong</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">NSViewController</span> <span class="o">*</span><span class="n">calloutViewController</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="kd">@IBOutlet</span> <span class="k">var</span> <span class="nv">calloutViewController</span><span class="p">:</span> <span class="kt">NSViewController</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/macos/src/MGLMapView.h#L802">
+ <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="/Finding%20Annotations"></a>
+ <a name="//apple_ref/objc/Section/Finding Annotations" class="dashAnchor"></a>
+ <a href="#/Finding%20Annotations">
+ <h3 id="Finding%20Annotations" class="section-name">Finding Annotations<span class="anchor-icon" /></h3>
+ </a>
+ </div>
+ <ul class="item-container">
+ <li class="item">
+ <div>
+ <code>
+ <a name="/c:objc(cs)MGLMapView(im)annotationAtPoint:"></a>
+ <a name="//apple_ref/objc/Method/-annotationAtPoint:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)annotationAtPoint:"><span class="token-name">-annotationAtPoint:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Returns a point annotation located at the given point.</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">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></span><span class="o">&gt;</span><span class="p">)</span><span class="nf">annotationAtPoint</span><span class="p">:(</span><span class="n">NSPoint</span><span class="p">)</span><span class="nv">point</span><span class="p">;</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ point
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>A point in the view’s coordinate system.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h4>Return Value</h4>
+ <p>A point annotation whose annotation image coincides with the point. If
+multiple point annotations coincide with the point, the return value is the
+annotation that would be selected if the user clicks at this point.</p>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L814">
+ <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="/Overlaying%20the%20Map"></a>
+ <a name="//apple_ref/objc/Section/Overlaying the Map" class="dashAnchor"></a>
+ <a href="#/Overlaying%20the%20Map">
+ <h3 id="Overlaying%20the%20Map" class="section-name">Overlaying the Map<span class="anchor-icon" /></h3>
+ </a>
+ </div>
+ <ul class="item-container">
+ <li class="item">
+ <div>
+ <code>
+ <a name="/c:objc(cs)MGLMapView(py)overlays"></a>
+ <a name="//apple_ref/objc/Property/overlays" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)overlays"><span class="token-name">overlays</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>The complete list of overlays associated with the receiver. (read-only)</p>
+
+<p>The objects in this array must adopt the <code><a href="../Protocols/MGLOverlay.html">MGLOverlay</a></code> protocol. If no
+overlays are associated with the map view, the value of this property is
+empty array.</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">readonly</span><span class="p">,</span> <span class="n">nonatomic</span><span class="p">,</span> <span class="n">nonnull</span><span class="p">)</span> <span class="n">NSArray</span><span class="o">&lt;</span><span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLOverlay.html">MGLOverlay</a></span><span class="o">&gt;&gt;</span> <span class="o">*</span><span class="n">overlays</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/macos/src/MGLMapView.h#L825">
+ <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)MGLMapView(im)addOverlay:"></a>
+ <a name="//apple_ref/objc/Method/-addOverlay:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)addOverlay:"><span class="token-name">-addOverlay:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Adds a single overlay to the map.</p>
+
+<p>To remove an overlay from a map, use the <code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(im)removeOverlay:">-removeOverlay:</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="kt">void</span><span class="p">)</span><span class="nf">addOverlay</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLOverlay.html">MGLOverlay</a></span><span class="o">&gt;</span><span class="p">)</span><span class="nv">overlay</span><span class="p">;</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ overlay
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The overlay object to add. This object must conform to the
+<code><a href="../Protocols/MGLOverlay.html">MGLOverlay</a></code> protocol.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L835">
+ <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)MGLMapView(im)addOverlays:"></a>
+ <a name="//apple_ref/objc/Method/-addOverlays:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)addOverlays:"><span class="token-name">-addOverlays:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Adds an array of overlays to the map.</p>
+
+<p>To remove multiple overlays from a map, use the <code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(im)removeOverlays:">-removeOverlays:</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="kt">void</span><span class="p">)</span><span class="nf">addOverlays</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSArray</span><span class="o">&lt;</span><span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLOverlay.html">MGLOverlay</a></span><span class="o">&gt;&gt;</span> <span class="o">*</span><span class="p">)</span><span class="nv">overlays</span><span class="p">;</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ overlays
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>An array of objects, each of which must conform to the
+<code><a href="../Protocols/MGLOverlay.html">MGLOverlay</a></code> protocol.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L845">
+ <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)MGLMapView(im)removeOverlay:"></a>
+ <a name="//apple_ref/objc/Method/-removeOverlay:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)removeOverlay:"><span class="token-name">-removeOverlay:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Removes a single overlay from the map.</p>
+
+<p>If the specified overlay is not currently associated with the map view, this
+method does nothing.</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="kt">void</span><span class="p">)</span><span class="nf">removeOverlay</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLOverlay.html">MGLOverlay</a></span><span class="o">&gt;</span><span class="p">)</span><span class="nv">overlay</span><span class="p">;</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ overlay
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The overlay object to remove.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L855">
+ <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)MGLMapView(im)removeOverlays:"></a>
+ <a name="//apple_ref/objc/Method/-removeOverlays:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)removeOverlays:"><span class="token-name">-removeOverlays:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Removes an array of overlays from the map.</p>
+
+<p>If a given overlay object is not associated with the map view, it is ignored.</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="kt">void</span><span class="p">)</span><span class="nf">removeOverlays</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSArray</span><span class="o">&lt;</span><span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLOverlay.html">MGLOverlay</a></span><span class="o">&gt;&gt;</span> <span class="o">*</span><span class="p">)</span><span class="nv">overlays</span><span class="p">;</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ overlays
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>An array of objects, each of which conforms to the <code><a href="../Protocols/MGLOverlay.html">MGLOverlay</a></code>
+protocol.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L865">
+ <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%20Underlying%20Map%20Data"></a>
+ <a name="//apple_ref/objc/Section/Accessing the Underlying Map Data" class="dashAnchor"></a>
+ <a href="#/Accessing%20the%20Underlying%20Map%20Data">
+ <h3 id="Accessing%20the%20Underlying%20Map%20Data" class="section-name">Accessing the Underlying Map Data<span class="anchor-icon" /></h3>
+ </a>
+ </div>
+ <ul class="item-container">
+ <li class="item">
+ <div>
+ <code>
+ <a name="/c:objc(cs)MGLMapView(im)visibleFeaturesAtPoint:"></a>
+ <a name="//apple_ref/objc/Method/-visibleFeaturesAtPoint:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)visibleFeaturesAtPoint:"><span class="token-name">-visibleFeaturesAtPoint:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Returns an array of rendered map features that intersect with a given point.</p>
+
+<p>This method may return features from any of the map’s style layers. To restrict
+the search to a particular layer or layers, use the
+<code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(im)visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:">-visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:</a></code> method. For more
+information about searching for map features, see that method’s documentation.</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">NSArray</span><span class="o">&lt;</span><span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLFeature.html">MGLFeature</a></span><span class="o">&gt;&gt;</span> <span class="o">*</span><span class="p">)</span><span class="nf">visibleFeaturesAtPoint</span><span class="p">:(</span><span class="n">NSPoint</span><span class="p">)</span><span class="nv">point</span><span class="p">;</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ point
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>A point expressed in the map view’s coordinate system.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h4>Return Value</h4>
+ <p>An array of objects conforming to the <code><a href="../Protocols/MGLFeature.html">MGLFeature</a></code> protocol that
+represent features in the sources used by the current style.</p>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L881">
+ <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)MGLMapView(im)visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:"></a>
+ <a name="//apple_ref/objc/Method/-visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:"><span class="token-name">-visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Returns an array of rendered map features that intersect with a given point,
+restricted to the given style layers.</p>
+
+<p>This method returns all the intersecting features from the specified layers. To
+filter the returned features, use the
+<code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(im)visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:predicate:">-visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:predicate:</a></code> method. For
+more information about searching for map features, see that method’s
+documentation.</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">NSArray</span><span class="o">&lt;</span><span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLFeature.html">MGLFeature</a></span><span class="o">&gt;&gt;</span> <span class="o">*</span><span class="p">)</span><span class="nf">visibleFeaturesAtPoint</span><span class="p">:(</span><span class="n">NSPoint</span><span class="p">)</span><span class="nv">point</span>
+ <span class="nf">inStyleLayersWithIdentifiers</span><span class="p">:</span>
+ <span class="p">(</span><span class="n">nullable</span> <span class="n">NSSet</span><span class="o">&lt;</span><span class="n">NSString</span> <span class="o">*&gt;</span> <span class="o">*</span><span class="p">)</span>
+ <span class="n">styleLayerIdentifiers</span><span class="p">;</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ point
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>A point expressed in the map view’s coordinate system.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ styleLayerIdentifiers
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>A set of strings that correspond to the names of
+layers defined in the current style. Only the features contained in these
+layers are included in the returned array.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h4>Return Value</h4>
+ <p>An array of objects conforming to the <code><a href="../Protocols/MGLFeature.html">MGLFeature</a></code> protocol that
+represent features in the sources used by the current style.</p>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L900">
+ <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)MGLMapView(im)visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:predicate:"></a>
+ <a name="//apple_ref/objc/Method/-visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:predicate:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:predicate:"><span class="token-name">-visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:predicate:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Returns an array of rendered map features that intersect with a given point,
+restricted to the given style layers and filtered by the given predicate.</p>
+
+<p>Each object in the returned array represents a feature rendered by the
+current style and provides access to attributes specified by the relevant map
+content sources. The returned array includes features loaded by
+<code><a href="../Classes/MGLShapeSource.html">MGLShapeSource</a></code> and <code><a href="../Classes/MGLVectorTileSource.html">MGLVectorTileSource</a></code> objects but does not include
+anything from <code><a href="../Classes/MGLRasterTileSource.html">MGLRasterTileSource</a></code> objects, or from video or canvas sources,
+which are unsupported by this SDK.</p>
+
+<p>The returned features are drawn by a style layer in the current style. For
+example, suppose the current style uses the
+<a href="https://www.mapbox.com/vector-tiles/mapbox-streets/">Mapbox Streets source</a>,
+but none of the specified style layers includes features that have the <code>maki</code>
+property set to <code>bus</code>. If you pass a point corresponding to the location of a
+bus stop into this method, the bus stop feature does not appear in the
+resulting array. On the other hand, if the style does include bus stops, an
+<code><a href="../Protocols/MGLFeature.html">MGLFeature</a></code> object representing that bus stop is returned and its
+<code>attributes</code> dictionary has the <code>maki</code> key set to <code>bus</code> (along with other
+attributes). The dictionary contains only the attributes provided by the
+tile source; it does not include computed attribute values or rules about how
+the feature is rendered by the current style.</p>
+
+<p>The returned array is sorted by z-order, starting with the topmost rendered
+feature and ending with the bottommost rendered feature. A feature that is
+rendered multiple times due to wrapping across the antimeridian at low zoom
+levels is included only once, subject to the caveat that follows.</p>
+
+<p>Features come from tiled vector data or GeoJSON data that is converted to tiles
+internally, so feature geometries are clipped at tile boundaries and features
+may appear duplicated across tiles. For example, suppose the specified point
+lies along a road that spans the screen. The resulting array includes those
+parts of the road that lie within the map tile that contain the specified
+point, even if the road extends into other tiles.</p>
+
+<p>To find out the layer names in a particular style, view the style in
+<a href="https://www.mapbox.com/studio/">Mapbox Studio</a>.</p>
+
+<p>Only visible features are returned. To obtain features regardless of
+visibility, use the
+<code><a href="../Classes/MGLVectorTileSource.html#/c:objc(cs)MGLVectorTileSource(im)featuresInSourceLayersWithIdentifiers:predicate:">-[MGLVectorTileSource featuresInSourceLayersWithIdentifiers:predicate:]</a></code> and
+<code><a href="../Classes/MGLShapeSource.html#/c:objc(cs)MGLShapeSource(im)featuresMatchingPredicate:">-[MGLShapeSource featuresMatchingPredicate:]</a></code> methods on the relevant sources.</p>
+<div class="aside aside-note">
+ <p class="aside-title">Note</p>
+ <p>Layer identifiers are not guaranteed to exist across styles or different
+versions of the same style. Applications that use this API must first set
+the style URL to an explicitly versioned style using a convenience method
+like <code><a href="../Classes/MGLStyle.html#/c:objc(cs)MGLStyle(cm)outdoorsStyleURLWithVersion:">+[MGLStyle outdoorsStyleURLWithVersion:]</a></code>, <code>MGLMapView</code>’s “Style URL”
+inspectable in Interface Builder, or a manually constructed <code>NSURL</code>. This
+approach also avoids layer identifer name changes that will occur in the
+default style’s layers over time.</p>
+
+</div>
+
+ </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">NSArray</span><span class="o">&lt;</span><span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLFeature.html">MGLFeature</a></span><span class="o">&gt;&gt;</span> <span class="o">*</span><span class="p">)</span>
+ <span class="nf">visibleFeaturesAtPoint</span><span class="p">:(</span><span class="n">NSPoint</span><span class="p">)</span><span class="nv">point</span>
+<span class="nf">inStyleLayersWithIdentifiers</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">NSSet</span><span class="o">&lt;</span><span class="n">NSString</span> <span class="o">*&gt;</span> <span class="o">*</span><span class="p">)</span><span class="nv">styleLayerIdentifiers</span>
+ <span class="nf">predicate</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">NSPredicate</span> <span class="o">*</span><span class="p">)</span><span class="nv">predicate</span><span class="p">;</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ point
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>A point expressed in the map view’s coordinate system.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ styleLayerIdentifiers
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>A set of strings that correspond to the names of
+layers defined in the current style. Only the features contained in these
+layers are included in the returned array.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ predicate
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>A predicate to filter the returned features.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h4>Return Value</h4>
+ <p>An array of objects conforming to the <code><a href="../Protocols/MGLFeature.html">MGLFeature</a></code> protocol that
+represent features in the sources used by the current style.</p>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L962">
+ <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)MGLMapView(im)visibleFeaturesInRect:"></a>
+ <a name="//apple_ref/objc/Method/-visibleFeaturesInRect:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)visibleFeaturesInRect:"><span class="token-name">-visibleFeaturesInRect:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Returns an array of rendered map features that intersect with the given
+rectangle.</p>
+
+<p>This method may return features from any of the map’s style layers. To restrict
+the search to a particular layer or layers, use the
+<code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(im)visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:">-visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:</a></code> method. For more
+information about searching for map features, see that method’s documentation.</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">NSArray</span><span class="o">&lt;</span><span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLFeature.html">MGLFeature</a></span><span class="o">&gt;&gt;</span> <span class="o">*</span><span class="p">)</span><span class="nf">visibleFeaturesInRect</span><span class="p">:(</span><span class="n">NSRect</span><span class="p">)</span><span class="nv">rect</span><span class="p">;</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ rect
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>A rectangle expressed in the map view’s coordinate system.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h4>Return Value</h4>
+ <p>An array of objects conforming to the <code><a href="../Protocols/MGLFeature.html">MGLFeature</a></code> protocol that
+represent features in the sources used by the current style.</p>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L977">
+ <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)MGLMapView(im)visibleFeaturesInRect:inStyleLayersWithIdentifiers:"></a>
+ <a name="//apple_ref/objc/Method/-visibleFeaturesInRect:inStyleLayersWithIdentifiers:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)visibleFeaturesInRect:inStyleLayersWithIdentifiers:"><span class="token-name">-visibleFeaturesInRect:inStyleLayersWithIdentifiers:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Returns an array of rendered map features that intersect with the given
+rectangle, restricted to the given style layers.</p>
+
+<p>This method returns all the intersecting features from the specified layers. To
+filter the returned features, use the
+<code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(im)visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:predicate:">-visibleFeaturesAtPoint:inStyleLayersWithIdentifiers:predicate:</a></code> method. For
+more information about searching for map features, see that method’s
+documentation.</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">NSArray</span><span class="o">&lt;</span><span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLFeature.html">MGLFeature</a></span><span class="o">&gt;&gt;</span> <span class="o">*</span><span class="p">)</span><span class="nf">visibleFeaturesInRect</span><span class="p">:(</span><span class="n">NSRect</span><span class="p">)</span><span class="nv">rect</span>
+ <span class="nf">inStyleLayersWithIdentifiers</span><span class="p">:</span>
+ <span class="p">(</span><span class="n">nullable</span> <span class="n">NSSet</span><span class="o">&lt;</span><span class="n">NSString</span> <span class="o">*&gt;</span> <span class="o">*</span><span class="p">)</span>
+ <span class="n">styleLayerIdentifiers</span><span class="p">;</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ rect
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>A rectangle expressed in the map view’s coordinate system.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ styleLayerIdentifiers
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>A set of strings that correspond to the names of
+layers defined in the current style. Only the features contained in these
+layers are included in the returned array.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h4>Return Value</h4>
+ <p>An array of objects conforming to the <code><a href="../Protocols/MGLFeature.html">MGLFeature</a></code> protocol that
+represent features in the sources used by the current style.</p>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L996">
+ <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)MGLMapView(im)visibleFeaturesInRect:inStyleLayersWithIdentifiers:predicate:"></a>
+ <a name="//apple_ref/objc/Method/-visibleFeaturesInRect:inStyleLayersWithIdentifiers:predicate:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)visibleFeaturesInRect:inStyleLayersWithIdentifiers:predicate:"><span class="token-name">-visibleFeaturesInRect:inStyleLayersWithIdentifiers:predicate:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Returns an array of rendered map features that intersect with the given
+rectangle, restricted to the given style layers and filtered by the given
+predicate.</p>
+
+<p>Each object in the returned array represents a feature rendered by the
+current style and provides access to attributes specified by the relevant map
+content sources. The returned array includes features loaded by
+<code><a href="../Classes/MGLShapeSource.html">MGLShapeSource</a></code> and <code><a href="../Classes/MGLVectorTileSource.html">MGLVectorTileSource</a></code> objects but does not include
+anything from <code><a href="../Classes/MGLRasterTileSource.html">MGLRasterTileSource</a></code> objects, or from video or canvas sources,
+which are unsupported by this SDK.</p>
+
+<p>The returned features are drawn by a style layer in the current style. For
+example, suppose the current style uses the
+<a href="https://www.mapbox.com/vector-tiles/mapbox-streets/">Mapbox Streets source</a>,
+but none of the specified style layers includes features that have the <code>maki</code>
+property set to <code>bus</code>. If you pass a rectangle containing the location of a bus
+stop into this method, the bus stop feature does not appear in the resulting
+array. On the other hand, if the style does include bus stops, an <code><a href="../Protocols/MGLFeature.html">MGLFeature</a></code>
+object representing that bus stop is returned and its <code>attributes</code> dictionary
+has the <code>maki</code> key set to <code>bus</code> (along with other attributes). The dictionary
+contains only the attributes provided by the tile source; it does not include
+computed attribute values or rules about how the feature is rendered by the
+current style.</p>
+
+<p>The returned array is sorted by z-order, starting with the topmost rendered
+feature and ending with the bottommost rendered feature. A feature that is
+rendered multiple times due to wrapping across the antimeridian at low zoom
+levels is included only once, subject to the caveat that follows.</p>
+
+<p>Features come from tiled vector data or GeoJSON data that is converted to tiles
+internally, so feature geometries are clipped at tile boundaries and features
+may appear duplicated across tiles. For example, suppose the specified
+rectangle intersects with a road that spans the screen. The resulting array
+includes those parts of the road that lie within the map tiles covering the
+specified rectangle, even if the road extends into other tiles. The portion of
+the road within each map tile is included individually.</p>
+
+<p>To find out the layer names in a particular style, view the style in
+<a href="https://www.mapbox.com/studio/">Mapbox Studio</a>.</p>
+
+<p>Only visible features are returned. To obtain features regardless of
+visibility, use the
+<code><a href="../Classes/MGLVectorTileSource.html#/c:objc(cs)MGLVectorTileSource(im)featuresInSourceLayersWithIdentifiers:predicate:">-[MGLVectorTileSource featuresInSourceLayersWithIdentifiers:predicate:]</a></code> and
+<code><a href="../Classes/MGLShapeSource.html#/c:objc(cs)MGLShapeSource(im)featuresMatchingPredicate:">-[MGLShapeSource featuresMatchingPredicate:]</a></code> methods on the relevant sources.</p>
+<div class="aside aside-note">
+ <p class="aside-title">Note</p>
+ <p>Layer identifiers are not guaranteed to exist across styles or different
+versions of the same style. Applications that use this API must first set
+the style URL to an explicitly versioned style using a convenience method
+like <code><a href="../Classes/MGLStyle.html#/c:objc(cs)MGLStyle(cm)outdoorsStyleURLWithVersion:">+[MGLStyle outdoorsStyleURLWithVersion:]</a></code>, <code>MGLMapView</code>’s “Style URL”
+inspectable in Interface Builder, or a manually constructed <code>NSURL</code>. This
+approach also avoids layer identifer name changes that will occur in the
+default style’s layers over time.</p>
+
+</div>
+
+ </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">NSArray</span><span class="o">&lt;</span><span class="n">id</span><span class="o">&lt;</span><span class="n"><a href="../Protocols/MGLFeature.html">MGLFeature</a></span><span class="o">&gt;&gt;</span> <span class="o">*</span><span class="p">)</span>
+ <span class="nf">visibleFeaturesInRect</span><span class="p">:(</span><span class="n">NSRect</span><span class="p">)</span><span class="nv">rect</span>
+<span class="nf">inStyleLayersWithIdentifiers</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">NSSet</span><span class="o">&lt;</span><span class="n">NSString</span> <span class="o">*&gt;</span> <span class="o">*</span><span class="p">)</span><span class="nv">styleLayerIdentifiers</span>
+ <span class="nf">predicate</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">NSPredicate</span> <span class="o">*</span><span class="p">)</span><span class="nv">predicate</span><span class="p">;</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ rect
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>A rectangle expressed in the map view’s coordinate system.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ styleLayerIdentifiers
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>A set of strings that correspond to the names of
+layers defined in the current style. Only the features contained in these
+layers are included in the returned array.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ predicate
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>A predicate to filter the returned features.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h4>Return Value</h4>
+ <p>An array of objects conforming to the <code><a href="../Protocols/MGLFeature.html">MGLFeature</a></code> protocol that
+represent features in the sources used by the current style.</p>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L1060">
+ <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="/Converting%20Geographic%20Coordinates"></a>
+ <a name="//apple_ref/objc/Section/Converting Geographic Coordinates" class="dashAnchor"></a>
+ <a href="#/Converting%20Geographic%20Coordinates">
+ <h3 id="Converting%20Geographic%20Coordinates" class="section-name">Converting Geographic Coordinates<span class="anchor-icon" /></h3>
+ </a>
+ </div>
+ <ul class="item-container">
+ <li class="item">
+ <div>
+ <code>
+ <a name="/c:objc(cs)MGLMapView(im)convertCoordinate:toPointToView:"></a>
+ <a name="//apple_ref/objc/Method/-convertCoordinate:toPointToView:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)convertCoordinate:toPointToView:"><span class="token-name">-convertCoordinate:toPointToView:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Converts a geographic coordinate to a point in the given view’s coordinate
+system.</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">NSPoint</span><span class="p">)</span><span class="nf">convertCoordinate</span><span class="p">:(</span><span class="n">CLLocationCoordinate2D</span><span class="p">)</span><span class="nv">coordinate</span>
+ <span class="nf">toPointToView</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">NSView</span> <span class="o">*</span><span class="p">)</span><span class="nv">view</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="kd">func</span> <span class="nf">convert</span><span class="p">(</span><span class="n">_</span> <span class="nv">coordinate</span><span class="p">:</span> <span class="kt">CLLocationCoordinate2D</span><span class="p">,</span> <span class="n">toPointTo</span> <span class="nv">view</span><span class="p">:</span> <span class="kt">NSView</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">NSPoint</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ coordinate
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The geographic coordinate to convert.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ view
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The view in whose coordinate system the returned point should be
+expressed. If this parameter is <code>nil</code>, the returned point is expressed in
+the window’s coordinate system. If <code>view</code> is not <code>nil</code>, it must belong to
+the same window as the map view.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h4>Return Value</h4>
+ <p>The point (in the appropriate view or window coordinate system)
+corresponding to the given geographic coordinate.</p>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L1076">
+ <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)MGLMapView(im)convertPoint:toCoordinateFromView:"></a>
+ <a name="//apple_ref/objc/Method/-convertPoint:toCoordinateFromView:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)convertPoint:toCoordinateFromView:"><span class="token-name">-convertPoint:toCoordinateFromView:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Converts a point in the given view’s coordinate system to a geographic
+coordinate.</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">CLLocationCoordinate2D</span><span class="p">)</span><span class="nf">convertPoint</span><span class="p">:(</span><span class="n">NSPoint</span><span class="p">)</span><span class="nv">point</span>
+ <span class="nf">toCoordinateFromView</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">NSView</span> <span class="o">*</span><span class="p">)</span><span class="nv">view</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="kd">func</span> <span class="nf">convert</span><span class="p">(</span><span class="n">_</span> <span class="nv">point</span><span class="p">:</span> <span class="kt">NSPoint</span><span class="p">,</span> <span class="n">toCoordinateFrom</span> <span class="nv">view</span><span class="p">:</span> <span class="kt">NSView</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">CLLocationCoordinate2D</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ point
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The point to convert.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ view
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The view in whose coordinate system the point is expressed.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h4>Return Value</h4>
+ <p>The geographic coordinate at the given point.</p>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.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)MGLMapView(im)convertCoordinateBounds:toRectToView:"></a>
+ <a name="//apple_ref/objc/Method/-convertCoordinateBounds:toRectToView:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)convertCoordinateBounds:toRectToView:"><span class="token-name">-convertCoordinateBounds:toRectToView:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Converts a geographic bounding box to a rectangle in the given view’s
+coordinate system.</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">NSRect</span><span class="p">)</span><span class="nf">convertCoordinateBounds</span><span class="p">:(</span><span class="n"><a href="../Structs/MGLCoordinateBounds.html">MGLCoordinateBounds</a></span><span class="p">)</span><span class="nv">bounds</span>
+ <span class="nf">toRectToView</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">NSView</span> <span class="o">*</span><span class="p">)</span><span class="nv">view</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="kd">func</span> <span class="nf">convert</span><span class="p">(</span><span class="n">_</span> <span class="nv">bounds</span><span class="p">:</span> <span class="kt"><a href="../Structs/MGLCoordinateBounds.html">MGLCoordinateBounds</a></span><span class="p">,</span> <span class="n">toRectTo</span> <span class="nv">view</span><span class="p">:</span> <span class="kt">NSView</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">NSRect</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ bounds
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The geographic bounding box to convert.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ view
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The view in whose coordinate system the returned rectangle should
+be expressed. If this parameter is <code>nil</code>, the returned rectangle is
+expressed in the window’s coordinate system. If <code>view</code> is not <code>nil</code>, it must
+belong to the same window as the map view.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L1098">
+ <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)MGLMapView(im)convertRect:toCoordinateBoundsFromView:"></a>
+ <a name="//apple_ref/objc/Method/-convertRect:toCoordinateBoundsFromView:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)convertRect:toCoordinateBoundsFromView:"><span class="token-name">-convertRect:toCoordinateBoundsFromView:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Converts a rectangle in the given view’s coordinate system to a geographic
+bounding box.</p>
+
+<p>If a longitude is less than −180 degrees or greater than 180 degrees, the
+bounding box straddles the antimeridian or international date line.</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"><a href="../Structs/MGLCoordinateBounds.html">MGLCoordinateBounds</a></span><span class="p">)</span><span class="nf">convertRect</span><span class="p">:(</span><span class="n">NSRect</span><span class="p">)</span><span class="nv">rect</span>
+ <span class="nf">toCoordinateBoundsFromView</span><span class="p">:(</span><span class="n">nullable</span> <span class="n">NSView</span> <span class="o">*</span><span class="p">)</span><span class="nv">view</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="kd">func</span> <span class="nf">convert</span><span class="p">(</span><span class="n">_</span> <span class="nv">rect</span><span class="p">:</span> <span class="kt">NSRect</span><span class="p">,</span> <span class="n">toCoordinateBoundsFrom</span> <span class="nv">view</span><span class="p">:</span> <span class="kt">NSView</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt"><a href="../Structs/MGLCoordinateBounds.html">MGLCoordinateBounds</a></span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ rect
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The rectangle to convert.</p>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>
+ view
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The view in whose coordinate system the rectangle is expressed.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h4>Return Value</h4>
+ <p>The geographic bounding box coextensive with the given rectangle.</p>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L1111">
+ <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)MGLMapView(im)metersPerPointAtLatitude:"></a>
+ <a name="//apple_ref/objc/Method/-metersPerPointAtLatitude:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)metersPerPointAtLatitude:"><span class="token-name">-metersPerPointAtLatitude:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Returns the distance spanned by one point in the map view’s coordinate system
+at the given latitude and current zoom level.</p>
+
+<p>The distance between points decreases as the latitude approaches the poles.
+This relationship parallels the relationship between longitudinal coordinates
+at different latitudes.</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">CLLocationDistance</span><span class="p">)</span><span class="nf">metersPerPointAtLatitude</span><span class="p">:(</span><span class="n">CLLocationDegrees</span><span class="p">)</span><span class="nv">latitude</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="kd">func</span> <span class="nf">metersPerPoint</span><span class="p">(</span><span class="n">atLatitude</span> <span class="nv">latitude</span><span class="p">:</span> <span class="kt">CLLocationDegrees</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">CLLocationDistance</span></code></pre>
+
+ </div>
+ </div>
+ <div>
+ <h4>Parameters</h4>
+ <table class="graybox">
+ <tbody>
+ <tr>
+ <td>
+ <code>
+ latitude
+ </code>
+ </td>
+ <td>
+ <div>
+ <p>The latitude of the geographic coordinate represented by the
+point.</p>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div>
+ <h4>Return Value</h4>
+ <p>The distance in meters spanned by a single point.</p>
+ </div>
+ <div class="show-on-github">
+ <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapView.h#L1125">
+ <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="/Giving%20Feedback%20to%20Improve%20the%20Map"></a>
+ <a name="//apple_ref/objc/Section/Giving Feedback to Improve the Map" class="dashAnchor"></a>
+ <a href="#/Giving%20Feedback%20to%20Improve%20the%20Map">
+ <h3 id="Giving%20Feedback%20to%20Improve%20the%20Map" class="section-name">Giving Feedback to Improve the Map<span class="anchor-icon" /></h3>
+ </a>
+ </div>
+ <ul class="item-container">
+ <li class="item">
+ <div>
+ <code>
+ <a name="/c:objc(cs)MGLMapView(im)giveFeedback:"></a>
+ <a name="//apple_ref/objc/Method/-giveFeedback:" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(im)giveFeedback:"><span class="token-name">-giveFeedback:</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>Opens one or more webpages in the default Web browser in which the user can
+provide feedback about the map data.</p>
+
+<p>You should add a menu item to the Help menu of your application that invokes
+this method. Title it “Improve This Map” or similar. Set its target to the
+first responder and its action to <code>giveFeedback:</code>.</p>
+
+<p>This map view searches the current style’s sources for webpages to open.
+Specifically, each source’s tile set has an <code>attribution</code> property containing
+HTML code; if an <code>&lt;a&gt;</code> tag (link) within that code has an
+<code>class</code> attribute set to <code>mapbox-improve-map</code>, its
+<code>href</code> attribute defines the URL to open. Such links are omitted
+from the attribution view.</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="kt">void</span><span class="p">)</span><span class="nf">giveFeedback</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">id</span><span class="p">)</span><span class="nv">sender</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="kd">@IBAction</span> <span class="kd">func</span> <span class="nf">giveFeedback</span><span class="p">(</span><span class="n">_</span> <span class="nv">sender</span><span class="p">:</span> <span class="kt">Any</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/macos/src/MGLMapView.h#L1144">
+ <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="/Debugging%20the%20Map"></a>
+ <a name="//apple_ref/objc/Section/Debugging the Map" class="dashAnchor"></a>
+ <a href="#/Debugging%20the%20Map">
+ <h3 id="Debugging%20the%20Map" class="section-name">Debugging the Map<span class="anchor-icon" /></h3>
+ </a>
+ </div>
+ <ul class="item-container">
+ <li class="item">
+ <div>
+ <code>
+ <a name="/c:objc(cs)MGLMapView(py)debugMask"></a>
+ <a name="//apple_ref/objc/Property/debugMask" class="dashAnchor"></a>
+ <a class="token" href="#/c:objc(cs)MGLMapView(py)debugMask"><span class="token-name">debugMask</span><span class="token-icon" /></a>
+ </code>
+ </div>
+ <div class="height-container">
+ <section class="section">
+ <div class="abstract">
+ <p>The options that determine which debugging aids are shown on the map.</p>
+
+<p>These options are all disabled by default and should remain disabled in
+released software for performance and aesthetic reasons.</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="../Enums/MGLMapDebugMaskOptions.html">MGLMapDebugMaskOptions</a></span> <span class="n">debugMask</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">debugMask</span><span class="p">:</span> <span class="kt"><a href="../Enums/MGLMapDebugMaskOptions.html">MGLMapDebugMaskOptions</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/macos/src/MGLMapView.h#L1154">
+ <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>