diff options
Diffstat (limited to 'macos/0.9.0/Protocols/MGLMapViewDelegate.html')
-rw-r--r-- | macos/0.9.0/Protocols/MGLMapViewDelegate.html | 2143 |
1 files changed, 2143 insertions, 0 deletions
diff --git a/macos/0.9.0/Protocols/MGLMapViewDelegate.html b/macos/0.9.0/Protocols/MGLMapViewDelegate.html new file mode 100644 index 0000000000..924d7fdcd2 --- /dev/null +++ b/macos/0.9.0/Protocols/MGLMapViewDelegate.html @@ -0,0 +1,2143 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <title>MGLMapViewDelegate Protocol 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="MGLMapViewDelegate"] > .small-heading, + .nav-group-task[data-name="MGLMapViewDelegate"] { + background-color: #f5f8fc; + font-family: "Open Sans Bold"; + border-left: 3px solid #3a68d8; + padding-left: 5px + } + </style> + </head> + <body> + + <a name="//apple_ref/objc/Protocol/MGLMapViewDelegate" class="dashAnchor"></a> + + <a title="MGLMapViewDelegate Protocol 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" /> + MGLMapViewDelegate Protocol 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="#/MGLMapViewDelegate"><h1 id="MGLMapViewDelegate">MGLMapViewDelegate<span class="anchor-icon" /></h1></a> + <div class="declaration"> + <div class="language"> + <pre class="highlight objective_c"><code><span class="k">@protocol</span> <span class="nc">MGLMapViewDelegate</span> <span class="o"><</span><span class="n">NSObject</span><span class="o">></span></code></pre> + + </div> + </div> + <p>The <code>MGLMapViewDelegate</code> protocol defines a set of optional methods that you +can use to receive messages from an <code><a href="../Classes/MGLMapView.html">MGLMapView</a></code> instance. Because many map +operations require the <code><a href="../Classes/MGLMapView.html">MGLMapView</a></code> class to load data asynchronously, the map +view calls these methods to notify your application when specific operations +complete. The map view also uses these methods to request information about +annotations displayed on the map, such as the styles and interaction modes to +apply to individual annotations.</p> + + </div> + </section> + + <section class="section"> + <div class="section-content"> + <div class="task-group"> + <div class="task-name-container"> + <a name="/Responding%20to%20Map%20Viewpoint%20Changes"></a> + <a name="//apple_ref/objc/Section/Responding to Map Viewpoint Changes" class="dashAnchor"></a> + <a href="#/Responding%20to%20Map%20Viewpoint%20Changes"> + <h3 id="Responding%20to%20Map%20Viewpoint%20Changes" class="section-name">Responding to Map Viewpoint Changes<span class="anchor-icon" /></h3> + </a> + </div> + <ul class="item-container"> + <li class="item"> + <div> + <code> + <a name="/c:objc(pl)MGLMapViewDelegate(im)mapView:cameraWillChangeAnimated:"></a> + <a name="//apple_ref/objc/Method/-mapView:cameraWillChangeAnimated:" class="dashAnchor"></a> + <a class="token" href="#/c:objc(pl)MGLMapViewDelegate(im)mapView:cameraWillChangeAnimated:"><span class="token-name">-mapView:cameraWillChangeAnimated:</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Tells the delegate that the viewpoint depicted by the map view is about to +change.</p> + +<p>This method is called whenever the currently displayed map camera will start +changing for any reason.</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">mapView</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapView.html">MGLMapView</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">mapView</span> + <span class="nf">cameraWillChangeAnimated</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">optional</span> <span class="kd">func</span> <span class="nf">mapView</span><span class="p">(</span><span class="n">_</span> <span class="nv">mapView</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapView.html">MGLMapView</a></span><span class="p">,</span> <span class="n">cameraWillChangeAnimated</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> + mapView + </code> + </td> + <td> + <div> + <p>The map view whose viewpoint will change.</p> + </div> + </td> + </tr> + <tr> + <td> + <code> + animated + </code> + </td> + <td> + <div> + <p>Whether the change will cause an animated effect on the map.</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/MGLMapViewDelegate.h#L36"> + <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(pl)MGLMapViewDelegate(im)mapViewCameraIsChanging:"></a> + <a name="//apple_ref/objc/Method/-mapViewCameraIsChanging:" class="dashAnchor"></a> + <a class="token" href="#/c:objc(pl)MGLMapViewDelegate(im)mapViewCameraIsChanging:"><span class="token-name">-mapViewCameraIsChanging:</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Tells the delegate that the viewpoint depicted by the map view is changing.</p> + +<p>This method is called as the currently displayed map camera changes as part of +an animation, whether due to a user gesture or due to a call to a method such +as <code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(im)setCamera:animated:">-[MGLMapView setCamera:animated:]</a></code>. This method can be called before +<code><a href="../Protocols/MGLMapViewDelegate.html#/c:objc(pl)MGLMapViewDelegate(im)mapViewDidFinishLoadingMap:">-mapViewDidFinishLoadingMap:</a></code> is called.</p> + +<p>During the animation, this method may be called many times to report updates +to the viewpoint. Therefore, your implementation of this method should be as +lightweight as possible to avoid affecting performance.</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">mapViewCameraIsChanging</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapView.html">MGLMapView</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">mapView</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">optional</span> <span class="kd">func</span> <span class="nf">mapViewCameraIsChanging</span><span class="p">(</span><span class="n">_</span> <span class="nv">mapView</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapView.html">MGLMapView</a></span><span class="p">)</span></code></pre> + + </div> + </div> + <div> + <h4>Parameters</h4> + <table class="graybox"> + <tbody> + <tr> + <td> + <code> + mapView + </code> + </td> + <td> + <div> + <p>The map view whose viewpoint is changing.</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/MGLMapViewDelegate.h#L52"> + <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(pl)MGLMapViewDelegate(im)mapView:cameraDidChangeAnimated:"></a> + <a name="//apple_ref/objc/Method/-mapView:cameraDidChangeAnimated:" class="dashAnchor"></a> + <a class="token" href="#/c:objc(pl)MGLMapViewDelegate(im)mapView:cameraDidChangeAnimated:"><span class="token-name">-mapView:cameraDidChangeAnimated:</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Tells the delegate that the viewpoint depicted by the map view has finished +changing.</p> + +<p>This method is called whenever the currently displayed map camera has finished +changing, after any calls to <code>-mapViewRegionIsChanging:</code> due to animation. +This method can be called before <code><a href="../Protocols/MGLMapViewDelegate.html#/c:objc(pl)MGLMapViewDelegate(im)mapViewDidFinishLoadingMap:">-mapViewDidFinishLoadingMap:</a></code> is +called.</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">mapView</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapView.html">MGLMapView</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">mapView</span> + <span class="nf">cameraDidChangeAnimated</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">optional</span> <span class="kd">func</span> <span class="nf">mapView</span><span class="p">(</span><span class="n">_</span> <span class="nv">mapView</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapView.html">MGLMapView</a></span><span class="p">,</span> <span class="n">cameraDidChangeAnimated</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> + mapView + </code> + </td> + <td> + <div> + <p>The map view whose viewpoint has changed.</p> + </div> + </td> + </tr> + <tr> + <td> + <code> + animated + </code> + </td> + <td> + <div> + <p>Whether the change caused an animated effect on the map.</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/MGLMapViewDelegate.h#L66"> + <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(pl)MGLMapViewDelegate(im)mapView:shouldChangeFromCamera:toCamera:"></a> + <a name="//apple_ref/objc/Method/-mapView:shouldChangeFromCamera:toCamera:" class="dashAnchor"></a> + <a class="token" href="#/c:objc(pl)MGLMapViewDelegate(im)mapView:shouldChangeFromCamera:toCamera:"><span class="token-name">-mapView:shouldChangeFromCamera:toCamera:</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Asks the delegate whether the map view should be allowed to change from the +existing camera to the new camera in response to a user gesture.</p> + +<p>This method is called as soon as the user gesture is recognized. It is not +called in response to a programmatic camera change, such as by setting the +<code>centerCoordinate</code> property or calling <code>-flyToCamera:completionHandler:</code>.</p> + +<p>This method is called many times during gesturing, so you should avoid performing +complex or performance-intensive tasks in your implementation.</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">BOOL</span><span class="p">)</span><span class="nf">mapView</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapView.html">MGLMapView</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">mapView</span> + <span class="nf">shouldChangeFromCamera</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">oldCamera</span> + <span class="nf">toCamera</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">newCamera</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">optional</span> <span class="kd">func</span> <span class="nf">mapView</span><span class="p">(</span><span class="n">_</span> <span class="nv">mapView</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapView.html">MGLMapView</a></span><span class="p">,</span> <span class="n">shouldChangeFromCamera</span> <span class="nv">oldCamera</span><span class="p">:</span> <span class="kt">Any</span><span class="o">!</span><span class="p">,</span> <span class="n">toCamera</span> <span class="nv">newCamera</span><span class="p">:</span> <span class="kt">Any</span><span class="o">!</span><span class="p">)</span> <span class="o">-></span> <span class="kt">Bool</span></code></pre> + + </div> + </div> + <div> + <h4>Parameters</h4> + <table class="graybox"> + <tbody> + <tr> + <td> + <code> + mapView + </code> + </td> + <td> + <div> + <p>The map view that the user is manipulating.</p> + </div> + </td> + </tr> + <tr> + <td> + <code> + oldCamera + </code> + </td> + <td> + <div> + <p>The camera representing the viewpoint at the moment the +gesture is recognized. If this method returns <code>NO</code>, the map view’s camera +continues to be this camera.</p> + </div> + </td> + </tr> + <tr> + <td> + <code> + newCamera + </code> + </td> + <td> + <div> + <p>The expected camera after the gesture completes. If this +method returns <code>YES</code>, this camera becomes the map view’s camera.</p> + </div> + </td> + </tr> + </tbody> + </table> + </div> + <div> + <h4>Return Value</h4> + <p>A Boolean value indicating whether the map view should stay at +<code>oldCamera</code> or change to <code>newCamera</code>.</p> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapViewDelegate.h#L88"> + <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="/Loading%20the%20Map"></a> + <a name="//apple_ref/objc/Section/Loading the Map" class="dashAnchor"></a> + <a href="#/Loading%20the%20Map"> + <h3 id="Loading%20the%20Map" class="section-name">Loading the Map<span class="anchor-icon" /></h3> + </a> + </div> + <ul class="item-container"> + <li class="item"> + <div> + <code> + <a name="/c:objc(pl)MGLMapViewDelegate(im)mapViewWillStartLoadingMap:"></a> + <a name="//apple_ref/objc/Method/-mapViewWillStartLoadingMap:" class="dashAnchor"></a> + <a class="token" href="#/c:objc(pl)MGLMapViewDelegate(im)mapViewWillStartLoadingMap:"><span class="token-name">-mapViewWillStartLoadingMap:</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Tells the delegate that the map view will begin to load.</p> + +<p>This method is called whenever the map view starts loading, including when a +new style has been set and the map must reload.</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">mapViewWillStartLoadingMap</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapView.html">MGLMapView</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">mapView</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">optional</span> <span class="kd">func</span> <span class="nf">mapViewWillStartLoadingMap</span><span class="p">(</span><span class="n">_</span> <span class="nv">mapView</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapView.html">MGLMapView</a></span><span class="p">)</span></code></pre> + + </div> + </div> + <div> + <h4>Parameters</h4> + <table class="graybox"> + <tbody> + <tr> + <td> + <code> + mapView + </code> + </td> + <td> + <div> + <p>The map view that is starting to load.</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/MGLMapViewDelegate.h#L100"> + <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(pl)MGLMapViewDelegate(im)mapViewDidFinishLoadingMap:"></a> + <a name="//apple_ref/objc/Method/-mapViewDidFinishLoadingMap:" class="dashAnchor"></a> + <a class="token" href="#/c:objc(pl)MGLMapViewDelegate(im)mapViewDidFinishLoadingMap:"><span class="token-name">-mapViewDidFinishLoadingMap:</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Tells the delegate that the map view has finished loading.</p> + +<p>This method is called whenever the map view finishes loading, either after the +initial load or after a style change has forced a reload.</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">mapViewDidFinishLoadingMap</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapView.html">MGLMapView</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">mapView</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">optional</span> <span class="kd">func</span> <span class="nf">mapViewDidFinishLoadingMap</span><span class="p">(</span><span class="n">_</span> <span class="nv">mapView</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapView.html">MGLMapView</a></span><span class="p">)</span></code></pre> + + </div> + </div> + <div> + <h4>Parameters</h4> + <table class="graybox"> + <tbody> + <tr> + <td> + <code> + mapView + </code> + </td> + <td> + <div> + <p>The map view that has finished loading.</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/MGLMapViewDelegate.h#L110"> + <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(pl)MGLMapViewDelegate(im)mapViewDidFailLoadingMap:withError:"></a> + <a name="//apple_ref/objc/Method/-mapViewDidFailLoadingMap:withError:" class="dashAnchor"></a> + <a class="token" href="#/c:objc(pl)MGLMapViewDelegate(im)mapViewDidFailLoadingMap:withError:"><span class="token-name">-mapViewDidFailLoadingMap:withError:</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Tells the delegate that the map view was unable to load data needed for +displaying the map.</p> + +<p>This method may be called for a variety of reasons, including a network +connection failure or a failure to fetch the style from the server. You can use +the given error message to notify the user that map data is unavailable.</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">mapViewDidFailLoadingMap</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapView.html">MGLMapView</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">mapView</span> + <span class="nf">withError</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">NSError</span> <span class="o">*</span><span class="p">)</span><span class="nv">error</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">optional</span> <span class="kd">func</span> <span class="nf">mapViewDidFailLoadingMap</span><span class="p">(</span><span class="n">_</span> <span class="nv">mapView</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapView.html">MGLMapView</a></span><span class="p">,</span> <span class="n">withError</span> <span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span></code></pre> + + </div> + </div> + <div> + <h4>Parameters</h4> + <table class="graybox"> + <tbody> + <tr> + <td> + <code> + mapView + </code> + </td> + <td> + <div> + <p>The map view that is unable to load the data.</p> + </div> + </td> + </tr> + <tr> + <td> + <code> + error + </code> + </td> + <td> + <div> + <p>The reason the data could not be loaded.</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/MGLMapViewDelegate.h#L123"> + <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(pl)MGLMapViewDelegate(im)mapViewWillStartRenderingFrame:"></a> + <a name="//apple_ref/objc/Method/-mapViewWillStartRenderingFrame:" class="dashAnchor"></a> + <a class="token" href="#/c:objc(pl)MGLMapViewDelegate(im)mapViewWillStartRenderingFrame:"><span class="token-name">-mapViewWillStartRenderingFrame:</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Tells the delegate that the map view is about to redraw.</p> + +<p>This method is called any time the map view needs to redraw due to a change in +the viewpoint or style property transition. This method may be called very +frequently, even moreso than <code>-mapViewRegionIsChanging:</code>. Therefore, your +implementation of this method should be as lightweight as possible to avoid +affecting performance.</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">mapViewWillStartRenderingFrame</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapView.html">MGLMapView</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">mapView</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">optional</span> <span class="kd">func</span> <span class="nf">mapViewWillStartRenderingFrame</span><span class="p">(</span><span class="n">_</span> <span class="nv">mapView</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapView.html">MGLMapView</a></span><span class="p">)</span></code></pre> + + </div> + </div> + <div> + <h4>Parameters</h4> + <table class="graybox"> + <tbody> + <tr> + <td> + <code> + mapView + </code> + </td> + <td> + <div> + <p>The map view that is about to redraw.</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/MGLMapViewDelegate.h#L139"> + <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(pl)MGLMapViewDelegate(im)mapViewDidFinishRenderingFrame:fullyRendered:"></a> + <a name="//apple_ref/objc/Method/-mapViewDidFinishRenderingFrame:fullyRendered:" class="dashAnchor"></a> + <a class="token" href="#/c:objc(pl)MGLMapViewDelegate(im)mapViewDidFinishRenderingFrame:fullyRendered:"><span class="token-name">-mapViewDidFinishRenderingFrame:fullyRendered:</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Tells the delegate that the map view has just redrawn.</p> + +<p>This method is called any time the map view needs to redraw due to a change in +the viewpoint or style property transition. This method may be called very +frequently, even moreso than <code>-mapViewRegionIsChanging:</code>. Therefore, your +implementation of this method should be as lightweight as possible to avoid +affecting performance.</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">mapViewDidFinishRenderingFrame</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapView.html">MGLMapView</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">mapView</span> + <span class="nf">fullyRendered</span><span class="p">:(</span><span class="n">BOOL</span><span class="p">)</span><span class="nv">fullyRendered</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">optional</span> <span class="kd">func</span> <span class="nf">mapViewDidFinishRenderingFrame</span><span class="p">(</span><span class="n">_</span> <span class="nv">mapView</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapView.html">MGLMapView</a></span><span class="p">,</span> <span class="nv">fullyRendered</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> + mapView + </code> + </td> + <td> + <div> + <p>The map view that has just redrawn.</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/MGLMapViewDelegate.h#L152"> + <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(pl)MGLMapViewDelegate(im)mapView:didFinishLoadingStyle:"></a> + <a name="//apple_ref/objc/Method/-mapView:didFinishLoadingStyle:" class="dashAnchor"></a> + <a class="token" href="#/c:objc(pl)MGLMapViewDelegate(im)mapView:didFinishLoadingStyle:"><span class="token-name">-mapView:didFinishLoadingStyle:</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Tells the delegate that the map has just finished loading a style.</p> + +<p>This method is called during the initialization of the map view and after any +subsequent loading of a new style. This method is called between the +<code>-mapViewWillStartRenderingMap:</code> and <code>-mapViewDidFinishRenderingMap:</code> delegate +methods. Changes to sources or layers of the current style do not cause this +method to be called.</p> + +<p>This method is the earliest opportunity to modify the layout or appearance of +the current style before the map view is displayed to the user.</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">mapView</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapView.html">MGLMapView</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">mapView</span> + <span class="nf">didFinishLoadingStyle</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLStyle.html">MGLStyle</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">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="kd">optional</span> <span class="kd">func</span> <span class="nf">mapView</span><span class="p">(</span><span class="n">_</span> <span class="nv">mapView</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapView.html">MGLMapView</a></span><span class="p">,</span> <span class="n">didFinishLoadingStyle</span> <span class="nv">style</span><span class="p">:</span> <span class="kt">Any</span><span class="o">!</span><span class="p">)</span></code></pre> + + </div> + </div> + <div> + <h4>Parameters</h4> + <table class="graybox"> + <tbody> + <tr> + <td> + <code> + mapView + </code> + </td> + <td> + <div> + <p>The map view that has just loaded a style.</p> + </div> + </td> + </tr> + <tr> + <td> + <code> + style + </code> + </td> + <td> + <div> + <p>The style that was loaded.</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/MGLMapViewDelegate.h#L169"> + <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%20the%20Appearance%20of%20Annotations"></a> + <a name="//apple_ref/objc/Section/Managing the Appearance of Annotations" class="dashAnchor"></a> + <a href="#/Managing%20the%20Appearance%20of%20Annotations"> + <h3 id="Managing%20the%20Appearance%20of%20Annotations" class="section-name">Managing the Appearance of Annotations<span class="anchor-icon" /></h3> + </a> + </div> + <ul class="item-container"> + <li class="item"> + <div> + <code> + <a name="/c:objc(pl)MGLMapViewDelegate(im)mapView:imageForAnnotation:"></a> + <a name="//apple_ref/objc/Method/-mapView:imageForAnnotation:" class="dashAnchor"></a> + <a class="token" href="#/c:objc(pl)MGLMapViewDelegate(im)mapView:imageForAnnotation:"><span class="token-name">-mapView:imageForAnnotation:</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Returns an annotation image object to mark the given point annotation object on +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">-</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">mapView</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapView.html">MGLMapView</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">mapView</span> + <span class="nf">imageForAnnotation</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">id</span><span class="o"><</span><span class="n"><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></span><span class="o">></span><span class="p">)</span><span class="nv">annotation</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">optional</span> <span class="kd">func</span> <span class="nf">mapView</span><span class="p">(</span><span class="n">_</span> <span class="nv">mapView</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapView.html">MGLMapView</a></span><span class="p">,</span> <span class="n">imageForAnnotation</span> <span class="nv">annotation</span><span class="p">:</span> <span class="kt">Any</span><span class="p">)</span> <span class="o">-></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> + mapView + </code> + </td> + <td> + <div> + <p>The map view that requested the annotation image.</p> + </div> + </td> + </tr> + <tr> + <td> + <code> + annotation + </code> + </td> + <td> + <div> + <p>The object representing the annotation that is about to be +displayed.</p> + </div> + </td> + </tr> + </tbody> + </table> + </div> + <div> + <h4>Return Value</h4> + <p>The image object to display for the given annotation or <code>nil</code> if you +want to display the default marker image.</p> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapViewDelegate.h#L183"> + <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(pl)MGLMapViewDelegate(im)mapView:alphaForShapeAnnotation:"></a> + <a name="//apple_ref/objc/Method/-mapView:alphaForShapeAnnotation:" class="dashAnchor"></a> + <a class="token" href="#/c:objc(pl)MGLMapViewDelegate(im)mapView:alphaForShapeAnnotation:"><span class="token-name">-mapView:alphaForShapeAnnotation:</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Returns the alpha value to use when rendering a shape annotation.</p> + +<p>A value of 0.0 results in a completely transparent shape. A value of 1.0, the +default, results in a completely opaque shape.</p> + +<p>This method sets the opacity of an entire shape, inclusive of its stroke and +fill. To independently set the values for stroke or fill, specify an alpha +component in the color returned by <code><a href="../Protocols/MGLMapViewDelegate.html#/c:objc(pl)MGLMapViewDelegate(im)mapView:strokeColorForShapeAnnotation:">-mapView:strokeColorForShapeAnnotation:</a></code> or +<code><a href="../Protocols/MGLMapViewDelegate.html#/c:objc(pl)MGLMapViewDelegate(im)mapView:fillColorForPolygonAnnotation:">-mapView:fillColorForPolygonAnnotation:</a></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">-</span> <span class="p">(</span><span class="n">CGFloat</span><span class="p">)</span><span class="nf">mapView</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapView.html">MGLMapView</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">mapView</span> + <span class="nf">alphaForShapeAnnotation</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">annotation</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">optional</span> <span class="kd">func</span> <span class="nf">mapView</span><span class="p">(</span><span class="n">_</span> <span class="nv">mapView</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapView.html">MGLMapView</a></span><span class="p">,</span> <span class="n">alphaForShapeAnnotation</span> <span class="nv">annotation</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLShape.html">MGLShape</a></span><span class="p">)</span> <span class="o">-></span> <span class="kt">CGFloat</span></code></pre> + + </div> + </div> + <div> + <h4>Parameters</h4> + <table class="graybox"> + <tbody> + <tr> + <td> + <code> + mapView + </code> + </td> + <td> + <div> + <p>The map view rendering the shape annotation.</p> + </div> + </td> + </tr> + <tr> + <td> + <code> + annotation + </code> + </td> + <td> + <div> + <p>The annotation being rendered.</p> + </div> + </td> + </tr> + </tbody> + </table> + </div> + <div> + <h4>Return Value</h4> + <p>An alpha value between 0 and 1.0.</p> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapViewDelegate.h#L200"> + <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(pl)MGLMapViewDelegate(im)mapView:strokeColorForShapeAnnotation:"></a> + <a name="//apple_ref/objc/Method/-mapView:strokeColorForShapeAnnotation:" class="dashAnchor"></a> + <a class="token" href="#/c:objc(pl)MGLMapViewDelegate(im)mapView:strokeColorForShapeAnnotation:"><span class="token-name">-mapView:strokeColorForShapeAnnotation:</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Returns the color to use when rendering the outline of a shape annotation.</p> + +<p>The default stroke color is the selected menu item color. If a pattern color is +specified, the result is undefined.</p> + +<p>Opacity may be set by specifying an alpha component. The default alpha value is +<code>1.0</code> and results in a completely opaque stroke.</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">NSColor</span> <span class="o">*</span><span class="p">)</span><span class="nf">mapView</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapView.html">MGLMapView</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">mapView</span> + <span class="nf">strokeColorForShapeAnnotation</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">annotation</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">optional</span> <span class="kd">func</span> <span class="nf">mapView</span><span class="p">(</span><span class="n">_</span> <span class="nv">mapView</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapView.html">MGLMapView</a></span><span class="p">,</span> <span class="n">strokeColorForShapeAnnotation</span> <span class="nv">annotation</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLShape.html">MGLShape</a></span><span class="p">)</span> <span class="o">-></span> <span class="kt">Any</span><span class="o">!</span></code></pre> + + </div> + </div> + <div> + <h4>Parameters</h4> + <table class="graybox"> + <tbody> + <tr> + <td> + <code> + mapView + </code> + </td> + <td> + <div> + <p>The map view rendering the shape annotation.</p> + </div> + </td> + </tr> + <tr> + <td> + <code> + annotation + </code> + </td> + <td> + <div> + <p>The annotation being rendered.</p> + </div> + </td> + </tr> + </tbody> + </table> + </div> + <div> + <h4>Return Value</h4> + <p>A color to use for the shape outline.</p> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapViewDelegate.h#L215"> + <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(pl)MGLMapViewDelegate(im)mapView:fillColorForPolygonAnnotation:"></a> + <a name="//apple_ref/objc/Method/-mapView:fillColorForPolygonAnnotation:" class="dashAnchor"></a> + <a class="token" href="#/c:objc(pl)MGLMapViewDelegate(im)mapView:fillColorForPolygonAnnotation:"><span class="token-name">-mapView:fillColorForPolygonAnnotation:</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Returns the color to use when rendering the fill of a polygon annotation.</p> + +<p>The default fill color is the selected menu item color. If a pattern color is +specified, the result is undefined.</p> + +<p>Opacity may be set by specifying an alpha component. The default alpha value is +<code>1.0</code> and results in a completely opaque shape.</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">NSColor</span> <span class="o">*</span><span class="p">)</span><span class="nf">mapView</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapView.html">MGLMapView</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">mapView</span> + <span class="nf">fillColorForPolygonAnnotation</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLPolygon.html">MGLPolygon</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">annotation</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">optional</span> <span class="kd">func</span> <span class="nf">mapView</span><span class="p">(</span><span class="n">_</span> <span class="nv">mapView</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapView.html">MGLMapView</a></span><span class="p">,</span> <span class="n">fillColorForPolygonAnnotation</span> <span class="nv">annotation</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLPolygon.html">MGLPolygon</a></span><span class="p">)</span> <span class="o">-></span> <span class="kt">Any</span><span class="o">!</span></code></pre> + + </div> + </div> + <div> + <h4>Parameters</h4> + <table class="graybox"> + <tbody> + <tr> + <td> + <code> + mapView + </code> + </td> + <td> + <div> + <p>The map view rendering the polygon annotation.</p> + </div> + </td> + </tr> + <tr> + <td> + <code> + annotation + </code> + </td> + <td> + <div> + <p>The annotation being rendered.</p> + </div> + </td> + </tr> + </tbody> + </table> + </div> + <div> + <h4>Return Value</h4> + <p>The polygon’s interior fill color.</p> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapViewDelegate.h#L230"> + <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(pl)MGLMapViewDelegate(im)mapView:lineWidthForPolylineAnnotation:"></a> + <a name="//apple_ref/objc/Method/-mapView:lineWidthForPolylineAnnotation:" class="dashAnchor"></a> + <a class="token" href="#/c:objc(pl)MGLMapViewDelegate(im)mapView:lineWidthForPolylineAnnotation:"><span class="token-name">-mapView:lineWidthForPolylineAnnotation:</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Returns the line width in points to use when rendering the outline of a +polyline annotation.</p> + +<p>By default, the polyline is outlined with a line 3.0 points wide.</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">CGFloat</span><span class="p">)</span><span class="nf">mapView</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapView.html">MGLMapView</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">mapView</span> + <span class="nf">lineWidthForPolylineAnnotation</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLPolyline.html">MGLPolyline</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">annotation</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">optional</span> <span class="kd">func</span> <span class="nf">mapView</span><span class="p">(</span><span class="n">_</span> <span class="nv">mapView</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapView.html">MGLMapView</a></span><span class="p">,</span> <span class="n">lineWidthForPolylineAnnotation</span> <span class="nv">annotation</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLPolyline.html">MGLPolyline</a></span><span class="p">)</span> <span class="o">-></span> <span class="kt">CGFloat</span></code></pre> + + </div> + </div> + <div> + <h4>Parameters</h4> + <table class="graybox"> + <tbody> + <tr> + <td> + <code> + mapView + </code> + </td> + <td> + <div> + <p>The map view rendering the polygon annotation.</p> + </div> + </td> + </tr> + <tr> + <td> + <code> + annotation + </code> + </td> + <td> + <div> + <p>The annotation being rendered.</p> + </div> + </td> + </tr> + </tbody> + </table> + </div> + <div> + <h4>Return Value</h4> + <p>A line width for the polyline, measured in points.</p> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapViewDelegate.h#L242"> + <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="/Selecting%20Annotations"></a> + <a name="//apple_ref/objc/Section/Selecting Annotations" class="dashAnchor"></a> + <a href="#/Selecting%20Annotations"> + <h3 id="Selecting%20Annotations" class="section-name">Selecting Annotations<span class="anchor-icon" /></h3> + </a> + </div> + <ul class="item-container"> + <li class="item"> + <div> + <code> + <a name="/c:objc(pl)MGLMapViewDelegate(im)mapView:didSelectAnnotation:"></a> + <a name="//apple_ref/objc/Method/-mapView:didSelectAnnotation:" class="dashAnchor"></a> + <a class="token" href="#/c:objc(pl)MGLMapViewDelegate(im)mapView:didSelectAnnotation:"><span class="token-name">-mapView:didSelectAnnotation:</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Tells the delegate that one of its annotations has been selected.</p> + +<p>You can use this method to track changes to the selection state of 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">mapView</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapView.html">MGLMapView</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">mapView</span> + <span class="nf">didSelectAnnotation</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">id</span><span class="o"><</span><span class="n"><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></span><span class="o">></span><span class="p">)</span><span class="nv">annotation</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">optional</span> <span class="kd">func</span> <span class="nf">mapView</span><span class="p">(</span><span class="n">_</span> <span class="nv">mapView</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapView.html">MGLMapView</a></span><span class="p">,</span> <span class="n">didSelectAnnotation</span> <span class="nv">annotation</span><span class="p">:</span> <span class="kt">Any</span><span class="p">)</span></code></pre> + + </div> + </div> + <div> + <h4>Parameters</h4> + <table class="graybox"> + <tbody> + <tr> + <td> + <code> + mapView + </code> + </td> + <td> + <div> + <p>The map view containing the annotation.</p> + </div> + </td> + </tr> + <tr> + <td> + <code> + annotation + </code> + </td> + <td> + <div> + <p>The annotation that was selected.</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/MGLMapViewDelegate.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(pl)MGLMapViewDelegate(im)mapView:didDeselectAnnotation:"></a> + <a name="//apple_ref/objc/Method/-mapView:didDeselectAnnotation:" class="dashAnchor"></a> + <a class="token" href="#/c:objc(pl)MGLMapViewDelegate(im)mapView:didDeselectAnnotation:"><span class="token-name">-mapView:didDeselectAnnotation:</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Tells the delegate that one of its annotations has been deselected.</p> + +<p>You can use this method to track changes in the selection state of 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">mapView</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapView.html">MGLMapView</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">mapView</span> + <span class="nf">didDeselectAnnotation</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">id</span><span class="o"><</span><span class="n"><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></span><span class="o">></span><span class="p">)</span><span class="nv">annotation</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">optional</span> <span class="kd">func</span> <span class="nf">mapView</span><span class="p">(</span><span class="n">_</span> <span class="nv">mapView</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapView.html">MGLMapView</a></span><span class="p">,</span> <span class="n">didDeselectAnnotation</span> <span class="nv">annotation</span><span class="p">:</span> <span class="kt">Any</span><span class="p">)</span></code></pre> + + </div> + </div> + <div> + <h4>Parameters</h4> + <table class="graybox"> + <tbody> + <tr> + <td> + <code> + mapView + </code> + </td> + <td> + <div> + <p>The map view containing the annotation.</p> + </div> + </td> + </tr> + <tr> + <td> + <code> + annotation + </code> + </td> + <td> + <div> + <p>The annotation that was deselected.</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/MGLMapViewDelegate.h#L264"> + <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%20Callout%20Popovers"></a> + <a name="//apple_ref/objc/Section/Managing Callout Popovers" class="dashAnchor"></a> + <a href="#/Managing%20Callout%20Popovers"> + <h3 id="Managing%20Callout%20Popovers" class="section-name">Managing Callout Popovers<span class="anchor-icon" /></h3> + </a> + </div> + <ul class="item-container"> + <li class="item"> + <div> + <code> + <a name="/c:objc(pl)MGLMapViewDelegate(im)mapView:annotationCanShowCallout:"></a> + <a name="//apple_ref/objc/Method/-mapView:annotationCanShowCallout:" class="dashAnchor"></a> + <a class="token" href="#/c:objc(pl)MGLMapViewDelegate(im)mapView:annotationCanShowCallout:"><span class="token-name">-mapView:annotationCanShowCallout:</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Returns a Boolean value indicating whether the annotation is able to display +extra information in a callout popover.</p> + +<p>This method is called after an annotation is selected, before any callout is +displayed for the annotation.</p> + +<p>If the return value is <code>YES</code>, a callout popover is shown when the user clicks +on an annotation, selecting it. The default callout displays the annotation’s +title and subtitle. You can customize the popover’s contents by implementing +the <code><a href="../Protocols/MGLMapViewDelegate.html#/c:objc(pl)MGLMapViewDelegate(im)mapView:calloutViewControllerForAnnotation:">-mapView:calloutViewControllerForAnnotation:</a></code> method.</p> + +<p>If the return value is <code>NO</code>, or if this method is absent from the delegate, or +if the annotation lacks a title, the annotation will not show a callout even +when selected.</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">BOOL</span><span class="p">)</span><span class="nf">mapView</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapView.html">MGLMapView</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">mapView</span> + <span class="nf">annotationCanShowCallout</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">id</span><span class="o"><</span><span class="n"><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></span><span class="o">></span><span class="p">)</span><span class="nv">annotation</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">optional</span> <span class="kd">func</span> <span class="nf">mapView</span><span class="p">(</span><span class="n">_</span> <span class="nv">mapView</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapView.html">MGLMapView</a></span><span class="p">,</span> <span class="n">annotationCanShowCallout</span> <span class="nv">annotation</span><span class="p">:</span> <span class="kt">Any</span><span class="p">)</span> <span class="o">-></span> <span class="kt">Bool</span></code></pre> + + </div> + </div> + <div> + <h4>Parameters</h4> + <table class="graybox"> + <tbody> + <tr> + <td> + <code> + mapView + </code> + </td> + <td> + <div> + <p>The map view that has selected the annotation.</p> + </div> + </td> + </tr> + <tr> + <td> + <code> + annotation + </code> + </td> + <td> + <div> + <p>The object representing the annotation.</p> + </div> + </td> + </tr> + </tbody> + </table> + </div> + <div> + <h4>Return Value</h4> + <p>A Boolean value indicating whether the annotation should show a +callout.</p> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapViewDelegate.h#L289"> + <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(pl)MGLMapViewDelegate(im)mapView:calloutViewControllerForAnnotation:"></a> + <a name="//apple_ref/objc/Method/-mapView:calloutViewControllerForAnnotation:" class="dashAnchor"></a> + <a class="token" href="#/c:objc(pl)MGLMapViewDelegate(im)mapView:calloutViewControllerForAnnotation:"><span class="token-name">-mapView:calloutViewControllerForAnnotation:</span><span class="token-icon" /></a> + </code> + </div> + <div class="height-container"> + <section class="section"> + <div class="abstract"> + <p>Returns a view controller to manage the 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>If each annotation should have an identical callout, you can set the +<code><a href="../Classes/MGLMapView.html#/c:objc(cs)MGLMapView(py)calloutViewController">MGLMapView.calloutViewController</a></code> property 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">-</span> <span class="p">(</span><span class="n">nullable</span> <span class="n">NSViewController</span> <span class="o">*</span><span class="p">)</span><span class="nf">mapView</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n"><a href="../Classes/MGLMapView.html">MGLMapView</a></span> <span class="o">*</span><span class="p">)</span><span class="nv">mapView</span> + <span class="nf">calloutViewControllerForAnnotation</span><span class="p">:(</span><span class="n">nonnull</span> <span class="n">id</span><span class="o"><</span><span class="n"><a href="../Protocols/MGLAnnotation.html">MGLAnnotation</a></span><span class="o">></span><span class="p">)</span><span class="nv">annotation</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">optional</span> <span class="kd">func</span> <span class="nf">mapView</span><span class="p">(</span><span class="n">_</span> <span class="nv">mapView</span><span class="p">:</span> <span class="kt"><a href="../Classes/MGLMapView.html">MGLMapView</a></span><span class="p">,</span> <span class="n">calloutViewControllerForAnnotation</span> <span class="nv">annotation</span><span class="p">:</span> <span class="kt">Any</span><span class="p">)</span> <span class="o">-></span> <span class="kt">Any</span><span class="o">!</span></code></pre> + + </div> + </div> + <div> + <h4>Parameters</h4> + <table class="graybox"> + <tbody> + <tr> + <td> + <code> + mapView + </code> + </td> + <td> + <div> + <p>The map view that is requesting a callout view controller.</p> + </div> + </td> + </tr> + <tr> + <td> + <code> + annotation + </code> + </td> + <td> + <div> + <p>The object representing the annotation.</p> + </div> + </td> + </tr> + </tbody> + </table> + </div> + <div> + <h4>Return Value</h4> + <p>A view controller for the given annotation.</p> + </div> + <div class="show-on-github"> + <a href="https://github.com/mapbox/mapbox-gl-native/tree/macos-v0.9.0/platform/macos/src/MGLMapViewDelegate.h#L307"> + <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> |