[ios, macos] Reorganize jazzy’s navigation categories; cleanup docs (#5660)

An attempt to better surface relevant information. Includes slight cleanups of inline documentation.

- Demotes MGLMapDebugMaskOptions to "Other Enums”.
- Demotes MGLMapViewDecelerationRate* and MGLStyleDefaultVersion to "Other Constants”.
- Demotes MGLOfflinePack's less significant global types.
- Demotes MGLAnnotationVerticalAlignment and documents its usage caveat.
- Demotes MGLAnnotationViewDragState and removes extra asterisk.
- Adds note to `MGLUserTrackingMode` about usage with `MGLMapView.userTrackingMode`.
- MGLAccountManager is currently only used for access tokens.
- Adds missing closing bracket.
This commit is contained in:
Jason Wray
2016-07-12 14:19:44 -04:00
committed by GitHub
parent ab6a17eec7
commit 2f3d77538b
6 changed files with 12 additions and 32 deletions

View File

@@ -6,7 +6,7 @@ NS_ASSUME_NONNULL_BEGIN
/**
The MGLAccountManager object provides a global way to set a Mapbox API access
token, as well as other settings used framework-wide.
token.
*/
@interface MGLAccountManager : NSObject

View File

@@ -29,7 +29,10 @@ typedef NS_ENUM(NSInteger, MGLErrorCode) {
MGLErrorCodeConnectionFailed = 3,
};
/** The mode used to track the user location on the map. */
/**
The mode used to track the user location on the map. Used with
`MGLMapView.userTrackingMode`.
*/
typedef NS_ENUM(NSUInteger, MGLUserTrackingMode) {
/** The map does not follow the user location. */
MGLUserTrackingModeNone = 0,

View File

@@ -19,22 +19,15 @@ custom_categories:
children:
- MGLAccountManager
- MGLMapCamera
- MGLMapDebugMaskOptions
- MGLMapView
- MGLMapViewDecelerationRateFast
- MGLMapViewDecelerationRateImmediate
- MGLMapViewDecelerationRateNormal
- MGLMapViewDelegate
- MGLStyle
- MGLStyleDefaultVersion
- MGLUserTrackingMode
- name: Annotations
children:
- MGLAnnotation
- MGLAnnotationImage
- MGLAnnotationVerticalAlignment
- MGLAnnotationView
- MGLAnnotationViewDragState
- MGLCalloutView
- MGLCalloutViewDelegate
- MGLMultiPoint
@@ -62,17 +55,8 @@ custom_categories:
- MGLOfflineRegion
- MGLOfflineStorage
- MGLOfflinePack
- MGLOfflinePackAdditionCompletionHandler
- MGLOfflinePackErrorNotification
- MGLOfflinePackErrorUserInfoKey
- MGLOfflinePackMaximumCountUserInfoKey
- MGLOfflinePackMaximumMapboxTilesReachedNotification
- MGLOfflinePackProgress
- MGLOfflinePackProgressChangedNotification
- MGLOfflinePackProgressUserInfoKey
- MGLOfflinePackRemovalCompletionHandler
- MGLOfflinePackState
- MGLOfflinePackStateUserInfoKey
- MGLTilePyramidOfflineRegion
- name: Geometry
children:

View File

@@ -6,7 +6,7 @@ NS_ASSUME_NONNULL_BEGIN
@protocol MGLAnnotation;
/** These constants indicate the current drag state of an annotation view. **/
/** These constants indicate the current drag state of an annotation view. */
typedef NS_ENUM(NSUInteger, MGLAnnotationViewDragState) {
/**
The view is not involved in a drag operation.
@@ -64,7 +64,7 @@ typedef NS_ENUM(NSUInteger, MGLAnnotationViewDragState) {
leaves the viewport, the map view moves its associated view to a reuse queue.
When a new annotation becomes visible, you can request a view for that
annotation by passing the appropriate reuse identifier string to the
`-[MGLMapView dequeueReusableAnnotationViewWithIdentifier:` method.
`-[MGLMapView dequeueReusableAnnotationViewWithIdentifier:]` method.
@param reuseIdentifier A unique string identifier for this view that allows you
to reuse this view with multiple similar annotations. You can set this

View File

@@ -30,7 +30,10 @@ extern const CGFloat MGLMapViewDecelerationRateFast;
/** Disables decleration in a map view. */
extern const CGFloat MGLMapViewDecelerationRateImmediate;
/** The vertical alignment of an annotation within a map view. */
/**
The vertical alignment of an annotation within a map view. Used with
`MGLMapView.userLocationVerticalAlignment`.
*/
typedef NS_ENUM(NSUInteger, MGLAnnotationVerticalAlignment) {
/** Aligns the annotation vertically in the center of the map view. */
MGLAnnotationVerticalAlignmentCenter = 0,

View File

@@ -18,11 +18,9 @@ custom_categories:
children:
- MGLAccountManager
- MGLMapCamera
- MGLMapDebugMaskOptions
- MGLMapView
- MGLMapViewDelegate
- MGLStyle
- MGLStyleDefaultVersion
- MGLUserTrackingMode
- name: Annotations
children:
@@ -52,17 +50,8 @@ custom_categories:
- MGLOfflineRegion
- MGLOfflineStorage
- MGLOfflinePack
- MGLOfflinePackAdditionCompletionHandler
- MGLOfflinePackErrorNotification
- MGLOfflinePackErrorUserInfoKey
- MGLOfflinePackMaximumCountUserInfoKey
- MGLOfflinePackMaximumMapboxTilesReachedNotification
- MGLOfflinePackProgress
- MGLOfflinePackProgressChangedNotification
- MGLOfflinePackProgressUserInfoKey
- MGLOfflinePackRemovalCompletionHandler
- MGLOfflinePackState
- MGLOfflinePackStateUserInfoKey
- MGLTilePyramidOfflineRegion
- name: Geometry
children:
@@ -75,6 +64,7 @@ custom_categories:
- MGLCoordinateBoundsMake
- MGLCoordinateBoundsOffset
- MGLCoordinateFormatter
- MGLCoordinateInCoordinateBounds
- MGLCoordinateSpan
- MGLCoordinateSpanEqualToCoordinateSpan
- MGLCoordinateSpanMake