Mapbox Maps SDK for macOS Docs Maps SDK for macOS Reference

View on GitHub

Install in Dash

Mapbox Maps SDK for macOS Reference Geometry Reference
  • Guides
    • Working with GeoJSON Data
    • Predicates and Expressions
    • For Style Authors
    • Using Style Functions at Runtime
    • Tile URL Templates
    • Info.plist Keys
  • Maps
    • MGLAccountManager
    • MGLMapCamera
    • MGLMapView
    • MGLMapViewDelegate
    • MGLMapSnapshot
    • MGLMapSnapshotOptions
    • MGLMapSnapshotter
  • Shapes and Annotations
    • MGLAnnotation
    • MGLAnnotationImage
    • MGLOverlay
    • MGLShape
    • MGLMultiPoint
    • MGLPointAnnotation
    • MGLPointCollection
    • MGLPolygon
    • MGLPolyline
    • MGLMultiPolygon
    • MGLMultiPolyline
    • MGLShapeCollection
  • Styling the Map
    • MGLStyle
    • MGLLight
  • Content Primitives
    • MGLFeature
    • MGLPointFeature
    • MGLPolygonFeature
    • MGLPolylineFeature
    • MGLMultiPolygonFeature
    • MGLMultiPolylineFeature
    • MGLPointCollectionFeature
    • MGLShapeCollectionFeature
  • Content Sources
    • MGLSource
    • MGLShapeSource
    • MGLComputedShapeSource
    • MGLTileSource
    • MGLRasterTileSource
    • MGLRasterDEMSource
    • MGLVectorTileSource
    • MGLImageSource
  • Style Layers
    • MGLStyleLayer
    • MGLForegroundStyleLayer
    • MGLBackgroundStyleLayer
    • MGLRasterStyleLayer
    • MGLVectorStyleLayer
    • MGLCircleStyleLayer
    • MGLFillStyleLayer
    • MGLFillExtrusionStyleLayer
    • MGLHeatmapStyleLayer
    • MGLHillshadeStyleLayer
    • MGLLineStyleLayer
    • MGLSymbolStyleLayer
  • Offline Maps
    • MGLOfflineRegion
    • MGLOfflineStorage
    • MGLOfflinePack
    • MGLOfflinePackProgress
    • MGLOfflinePackState
    • MGLTilePyramidOfflineRegion
  • Geometry
    • MGLCoordinateBounds
    • MGLCoordinateBoundsEqualToCoordinateBounds
    • MGLCoordinateBoundsGetCoordinateSpan
    • MGLCoordinateBoundsIntersectsCoordinateBounds
    • MGLCoordinateBoundsIsEmpty
    • MGLCoordinateBoundsMake
    • MGLCoordinateBoundsOffset
    • MGLCoordinateInCoordinateBounds
    • MGLCoordinateSpan
    • MGLCoordinateSpanEqualToCoordinateSpan
    • MGLCoordinateSpanMake
    • MGLCoordinateSpanZero
    • MGLDegreesFromRadians
    • MGLRadiansFromDegrees
    • MGLStringFromCoordinateBounds
  • Formatters
    • MGLClockDirectionFormatter
    • MGLCompassDirectionFormatter
    • MGLCoordinateFormatter
    • MGLDistanceFormatter
  • Other Categories
    • NSValue(MGLAdditions)
    • NSValue(MGLCircleStyleLayerAdditions)
    • NSValue(MGLFillExtrusionStyleLayerAdditions)
    • NSValue(MGLFillStyleLayerAdditions)
    • NSValue(MGLHillshadeStyleLayerAdditions)
    • NSValue(MGLLineStyleLayerAdditions)
    • NSValue(MGLSymbolStyleLayerAdditions)
  • Other Classes
    • MGLAttributionInfo
  • Other Constants
    • MGLErrorDomain
    • MGLExpressionInterpolationModeCubicBezier
    • MGLExpressionInterpolationModeExponential
    • MGLExpressionInterpolationModeLinear
    • MGLOfflinePackErrorNotification
    • MGLOfflinePackMaximumMapboxTilesReachedNotification
    • MGLOfflinePackProgressChangedNotification
    • MGLOfflinePackUserInfoKeyError
    • MGLOfflinePackUserInfoKeyMaximumCount
    • MGLOfflinePackUserInfoKeyProgress
    • MGLOfflinePackUserInfoKeyState
    • MGLShapeSourceOptionBuffer
    • MGLShapeSourceOptionClipsCoordinates
    • MGLShapeSourceOptionClusterRadius
    • MGLShapeSourceOptionClustered
    • MGLShapeSourceOptionMaximumZoomLevel
    • MGLShapeSourceOptionMaximumZoomLevelForClustering
    • MGLShapeSourceOptionMinimumZoomLevel
    • MGLShapeSourceOptionSimplificationTolerance
    • MGLShapeSourceOptionWrapsCoordinates
    • MGLStyleDefaultVersion
    • MGLTileSourceOptionAttributionHTMLString
    • MGLTileSourceOptionAttributionInfos
    • MGLTileSourceOptionCoordinateBounds
    • MGLTileSourceOptionDEMEncoding
    • MGLTileSourceOptionMaximumZoomLevel
    • MGLTileSourceOptionMinimumZoomLevel
    • MGLTileSourceOptionTileCoordinateSystem
    • MGLTileSourceOptionTileSize
    • MapboxVersionNumber
    • MapboxVersionString
  • Other Enumerations
    • MGLAttributionInfoStyle
    • MGLCirclePitchAlignment
    • MGLCircleScaleAlignment
    • MGLCircleTranslationAnchor
    • MGLDEMEncoding
    • MGLErrorCode
    • MGLFillExtrusionTranslationAnchor
    • MGLFillTranslationAnchor
    • MGLHillshadeIlluminationAnchor
    • MGLIconAnchor
    • MGLIconPitchAlignment
    • MGLIconRotationAlignment
    • MGLIconTextFit
    • MGLIconTranslationAnchor
    • MGLLightAnchor
    • MGLLineCap
    • MGLLineJoin
    • MGLLineTranslationAnchor
    • MGLMapDebugMaskOptions
    • MGLResourceKind
    • MGLSymbolPlacement
    • MGLTextAnchor
    • MGLTextJustification
    • MGLTextPitchAlignment
    • MGLTextRotationAlignment
    • MGLTextTransform
    • MGLTextTranslationAnchor
    • MGLTileCoordinateSystem
  • Other Protocols
    • MGLComputedShapeSourceDataSource
    • MGLOfflineStorageDelegate
  • Other Type Definitions
    • MGLMapSnapshotCompletionHandler
    • MGLOfflinePackAdditionCompletionHandler
    • MGLOfflinePackRemovalCompletionHandler
    • MGLOfflinePackUserInfoKey
    • MGLShapeSourceOption
    • MGLTileSourceOption
  • Other Functions
    • MGLCoordinateQuadFromCoordinateBounds
    • MGLCoordinateQuadMake
    • MGLMapPointForCoordinate
    • MGLMapPointMake
    • MGLSphericalPositionMake
    • MGLStringFromCoordinateQuad
    • MGLTransitionMake
  • Other Structures
    • MGLCoordinateQuad
    • MGLSphericalPosition
    • MGLTransition

Geometry

  • MGLCoordinateBounds

    A rectangular area as measured on a two-dimensional map projection.

    See more

    Declaration

    Objective-C

    struct MGLCoordinateBounds {}

    Swift

    struct MGLCoordinateBounds
    View Source on GitHub
  • MGLCoordinateBoundsEqualToCoordinateBounds

    Returns YES if the two coordinate bounds are equal to each other.

    Declaration

    Objective-C

    static inline BOOL
    MGLCoordinateBoundsEqualToCoordinateBounds(MGLCoordinateBounds bounds1,
                                               MGLCoordinateBounds bounds2)

    Swift

    func MGLCoordinateBoundsEqualToCoordinateBounds(_ bounds1: MGLCoordinateBounds, _ bounds2: MGLCoordinateBounds) -> Bool
    View Source on GitHub
  • MGLCoordinateBoundsGetCoordinateSpan

    Returns the area spanned by the coordinate bounds.

    Declaration

    Objective-C

    static inline MGLCoordinateSpan
    MGLCoordinateBoundsGetCoordinateSpan(MGLCoordinateBounds bounds)

    Swift

    func MGLCoordinateBoundsGetCoordinateSpan(_ bounds: MGLCoordinateBounds) -> MGLCoordinateSpan
    View Source on GitHub
  • MGLCoordinateBoundsIntersectsCoordinateBounds

    Returns YES if the two coordinate bounds intersect.

    Declaration

    Objective-C

    static inline BOOL
    MGLCoordinateBoundsIntersectsCoordinateBounds(MGLCoordinateBounds bounds1,
                                                  MGLCoordinateBounds bounds2)

    Swift

    func MGLCoordinateBoundsIntersectsCoordinateBounds(_ bounds1: MGLCoordinateBounds, _ bounds2: MGLCoordinateBounds) -> Bool
    View Source on GitHub
  • MGLCoordinateBoundsIsEmpty

    Returns YES if the coordinate bounds covers no area.

    Note

    A bounds may be empty but have a non-zero coordinate span (e.g., when its northeast point lies due north of its southwest point).

    Declaration

    Objective-C

    static inline BOOL MGLCoordinateBoundsIsEmpty(MGLCoordinateBounds bounds)

    Swift

    func MGLCoordinateBoundsIsEmpty(_ bounds: MGLCoordinateBounds) -> Bool
    View Source on GitHub
  • MGLCoordinateBoundsMake

    Creates a new MGLCoordinateBounds structure from the given southwest and northeast coordinates.

    Declaration

    Objective-C

    static inline MGLCoordinateBounds
    MGLCoordinateBoundsMake(CLLocationCoordinate2D sw, CLLocationCoordinate2D ne)

    Swift

    func MGLCoordinateBoundsMake(_ sw: CLLocationCoordinate2D, _ ne: CLLocationCoordinate2D) -> MGLCoordinateBounds
    View Source on GitHub
  • MGLCoordinateBoundsOffset

    Returns a coordinate bounds with southwest and northeast coordinates that are offset from those of the source bounds.

    Declaration

    Objective-C

    static inline MGLCoordinateBounds
    MGLCoordinateBoundsOffset(MGLCoordinateBounds bounds, MGLCoordinateSpan offset)

    Swift

    func MGLCoordinateBoundsOffset(_ bounds: MGLCoordinateBounds, _ offset: MGLCoordinateSpan) -> MGLCoordinateBounds
    View Source on GitHub
  • MGLCoordinateInCoordinateBounds

    Returns YES if the coordinate is within the coordinate bounds.

    Declaration

    Objective-C

    static inline BOOL
    MGLCoordinateInCoordinateBounds(CLLocationCoordinate2D coordinate,
                                    MGLCoordinateBounds bounds)

    Swift

    func MGLCoordinateInCoordinateBounds(_ coordinate: CLLocationCoordinate2D, _ bounds: MGLCoordinateBounds) -> Bool
    View Source on GitHub
  • MGLCoordinateSpan

    Defines the area spanned by an MGLCoordinateBounds.

    See more

    Declaration

    Objective-C

    struct MGLCoordinateSpan {}

    Swift

    struct MGLCoordinateSpan
    View Source on GitHub
  • MGLCoordinateSpanEqualToCoordinateSpan

    Returns YES if the two coordinate spans represent the same latitudinal change and the same longitudinal change.

    Declaration

    Objective-C

    static inline BOOL
    MGLCoordinateSpanEqualToCoordinateSpan(MGLCoordinateSpan span1,
                                           MGLCoordinateSpan span2)

    Swift

    func MGLCoordinateSpanEqualToCoordinateSpan(_ span1: MGLCoordinateSpan, _ span2: MGLCoordinateSpan) -> Bool
    View Source on GitHub
  • MGLCoordinateSpanMake

    Creates a new MGLCoordinateSpan from the given latitudinal and longitudinal deltas.

    Declaration

    Objective-C

    static inline MGLCoordinateSpan
    MGLCoordinateSpanMake(CLLocationDegrees latitudeDelta,
                          CLLocationDegrees longitudeDelta)

    Swift

    func MGLCoordinateSpanMake(_ latitudeDelta: CLLocationDegrees, _ longitudeDelta: CLLocationDegrees) -> MGLCoordinateSpan
    View Source on GitHub
  • MGLCoordinateSpanZero

    An area of zero width and zero height.

    Declaration

    Objective-C

    extern const MGLCoordinateSpan MGLCoordinateSpanZero

    Swift

    let MGLCoordinateSpanZero: MGLCoordinateSpan
    View Source on GitHub
  • MGLDegreesFromRadians

    Returns degrees, converted from radians.

    Declaration

    Objective-C

    static inline CLLocationDegrees MGLDegreesFromRadians(CGFloat radians)

    Swift

    func MGLDegreesFromRadians(_ radians: CGFloat) -> CLLocationDegrees
    View Source on GitHub
  • MGLRadiansFromDegrees

    Returns radians, converted from degrees.

    Declaration

    Objective-C

    static inline CGFloat MGLRadiansFromDegrees(CLLocationDegrees degrees)

    Swift

    func MGLRadiansFromDegrees(_ degrees: CLLocationDegrees) -> CGFloat
    View Source on GitHub
  • MGLStringFromCoordinateBounds

    Returns a formatted string for the given coordinate bounds.

    Declaration

    Objective-C

    static inline NSString *_Nonnull MGLStringFromCoordinateBounds(
        MGLCoordinateBounds bounds)

    Swift

    func MGLStringFromCoordinateBounds(_ bounds: MGLCoordinateBounds) -> String
    View Source on GitHub

© 2014–2018 Mapbox. See license for more details.

Generated by jazzy ♪♫ v0.9.1, a Realm project.