DingiMap Docs iOS SDK Reference

DingiMap Reference Geometry Reference
  • Maps
    • DingiAccountManager
    • DingiMapCamera
    • DingiMapView
    • DingiMapViewDelegate
    • DingiMapSnapshot
    • DingiMapSnapshotOptions
    • DingiMapSnapshotter
    • DingiUserTrackingMode
  • Primitive Shapes
    • DingiAnnotation
    • DingiOverlay
    • DingiShape
    • DingiMultiPoint
    • DingiPointAnnotation
    • DingiPointCollection
    • DingiPolygon
    • DingiPolyline
    • DingiMultiPolygon
    • DingiMultiPolyline
    • DingiShapeCollection
  • Annotations
    • DingiAnnotationImage
    • DingiAnnotationView
    • DingiUserLocation
    • DingiUserLocationAnnotationView
  • User Interaction
    • DingiCalloutView
    • DingiCalloutViewDelegate
  • Location Updates
    • DingiLocationManager
    • DingiLocationManagerDelegate
  • Styling the Map
    • DingiStyle
    • DingiLight
  • Style Primitives
    • DingiFeature
    • DingiPointFeature
    • DingiPolygonFeature
    • DingiPolylineFeature
    • DingiMultiPolygonFeature
    • DingiMultiPolylineFeature
    • DingiPointCollectionFeature
    • DingiShapeCollectionFeature
  • Style Content
    • DingiSource
    • DingiShapeSource
    • DingiComputedShapeSource
    • DingiTileSource
    • DingiRasterTileSource
    • DingiRasterDEMSource
    • DingiVectorTileSource
    • DingiImageSource
  • Style Layers
    • DingiStyleLayer
    • DingiForegroundStyleLayer
    • DingiBackgroundStyleLayer
    • DingiRasterStyleLayer
    • DingiVectorStyleLayer
    • DingiCircleStyleLayer
    • DingiFillStyleLayer
    • DingiFillExtrusionStyleLayer
    • DingiHeatmapStyleLayer
    • DingiHillshadeStyleLayer
    • DingiLineStyleLayer
    • DingiSymbolStyleLayer
  • Geometry
    • DingiCoordinateBounds
    • DingiCoordinateBoundsEqualToCoordinateBounds
    • DingiCoordinateBoundsGetCoordinateSpan
    • DingiCoordinateBoundsIntersectsCoordinateBounds
    • DingiCoordinateBoundsIsEmpty
    • DingiCoordinateBoundsMake
    • DingiCoordinateBoundsOffset
    • DingiCoordinateInCoordinateBounds
    • DingiCoordinateQuad
    • DingiCoordinateQuadMake
    • DingiCoordinateQuadFromCoordinateBounds
    • DingiCoordinateSpan
    • DingiCoordinateSpanEqualToCoordinateSpan
    • DingiCoordinateSpanMake
    • DingiCoordinateSpanZero
    • DingiDegreesFromRadians
    • DingiRadiansFromDegrees
    • DingiStringFromCoordinateBounds
    • DingiStringFromCoordinateQuad
  • Formatters
    • DingiClockDirectionFormatter
    • DingiCompassDirectionFormatter
    • DingiCoordinateFormatter
    • DingiDistanceFormatter
  • Other Guides
    • For Style Authors
    • Gesture Recognizers
    • Info.plist Keys
    • Migrating to Expressions
    • Predicates and Expressions
    • Tile URL Templates
    • Working with GeoJSON Data
  • Other Categories
    • NSExpression(MGLAdditions)
    • NSValue(DingiCircleStyleLayerAdditions)
    • NSValue(DingiFillExtrusionStyleLayerAdditions)
    • NSValue(DingiFillStyleLayerAdditions)
    • NSValue(DingiHillshadeStyleLayerAdditions)
    • NSValue(DingiLineStyleLayerAdditions)
    • NSValue(DingiRasterStyleLayerAdditions)
    • NSValue(DingiSymbolStyleLayerAdditions)
    • NSValue(MGLAdditions)
  • Other Classes
    • DingiAttributionInfo
    • DingiLoggingConfiguration
    • DingiOfflinePack
    • DingiOfflineStorage
    • DingiShapeOfflineRegion
    • DingiTilePyramidOfflineRegion
  • Other Constants
    • DingiErrorDomain
    • DingiExpressionInterpolationModeCubicBezier
    • DingiExpressionInterpolationModeExponential
    • DingiExpressionInterpolationModeLinear
    • DingiMapVersionNumber
    • DingiMapVersionString
    • DingiMapViewDecelerationRateFast
    • DingiMapViewDecelerationRateImmediate
    • DingiMapViewDecelerationRateNormal
    • DingiMapViewPreferredFramesPerSecondDefault
    • DingiMapViewPreferredFramesPerSecondLowPower
    • DingiMapViewPreferredFramesPerSecondMaximum
    • DingiOfflinePackErrorNotification
    • DingiOfflinePackMaximumDingiTilesReachedNotification
    • DingiOfflinePackProgressChangedNotification
    • DingiOfflinePackUserInfoKeyError
    • DingiOfflinePackUserInfoKeyMaximumCount
    • DingiOfflinePackUserInfoKeyProgress
    • DingiOfflinePackUserInfoKeyState
    • DingiShapeSourceOptionBuffer
    • DingiShapeSourceOptionClipsCoordinates
    • DingiShapeSourceOptionClusterRadius
    • DingiShapeSourceOptionClustered
    • DingiShapeSourceOptionLineDistanceMetrics
    • DingiShapeSourceOptionMaximumZoomLevel
    • DingiShapeSourceOptionMaximumZoomLevelForClustering
    • DingiShapeSourceOptionMinimumZoomLevel
    • DingiShapeSourceOptionSimplificationTolerance
    • DingiShapeSourceOptionWrapsCoordinates
    • DingiStyleDefaultVersion
    • DingiTileSourceOptionAttributionHTMLString
    • DingiTileSourceOptionAttributionInfos
    • DingiTileSourceOptionCoordinateBounds
    • DingiTileSourceOptionDEMEncoding
    • DingiTileSourceOptionMaximumZoomLevel
    • DingiTileSourceOptionMinimumZoomLevel
    • DingiTileSourceOptionTileCoordinateSystem
    • DingiTileSourceOptionTileSize
  • Other Enumerations
    • DingiAnnotationVerticalAlignment
    • DingiAnnotationViewDragState
    • DingiAttributionInfoStyle
    • DingiCirclePitchAlignment
    • DingiCircleScaleAlignment
    • DingiCircleTranslationAnchor
    • DingiDEMEncoding
    • DingiErrorCode
    • DingiFillExtrusionTranslationAnchor
    • DingiFillTranslationAnchor
    • DingiHillshadeIlluminationAnchor
    • DingiIconAnchor
    • DingiIconPitchAlignment
    • DingiIconRotationAlignment
    • DingiIconTextFit
    • DingiIconTranslationAnchor
    • DingiLightAnchor
    • DingiLineCap
    • DingiLineJoin
    • DingiLineTranslationAnchor
    • DingiLoggingLevel
    • DingiMapDebugMaskOptions
    • DingiOfflinePackState
    • DingiRasterResamplingMode
    • DingiResourceKind
    • DingiSymbolPlacement
    • DingiSymbolZOrder
    • DingiTextAnchor
    • DingiTextJustification
    • DingiTextPitchAlignment
    • DingiTextRotationAlignment
    • DingiTextTransform
    • DingiTextTranslationAnchor
    • DingiTileCoordinateSystem
  • Other Protocols
    • DingiComputedShapeSourceDataSource
    • DingiOfflineRegion
    • DingiOfflineStorageDelegate
  • Other Type Definitions
    • DingiBatchedOfflinePackAdditionCompletionHandler
    • DingiLoggingBlockHandler
    • DingiMapSnapshotCompletionHandler
    • DingiMapViewDecelerationRate
    • DingiMapViewPreferredFramesPerSecond
    • DingiOfflinePackAdditionCompletionHandler
    • DingiOfflinePackRemovalCompletionHandler
    • DingiOfflinePackUserInfoKey
    • DingiShapeSourceOption
    • DingiTileSourceOption
  • Other Functions
    • DingiAltitudeForZoomLevel
    • DingiMapPointForCoordinate
    • DingiMapPointMake
    • DingiSphericalPositionMake
    • DingiTransitionMake
    • DingiZoomLevelForAltitude
  • Other Structures
    • DingiOfflinePackProgress
    • DingiSphericalPosition
    • DingiTransition

Geometry

  • DingiCoordinateBounds

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

    See more

    Declaration

    Objective-C

    struct DingiCoordinateBounds {}

    Swift

    struct DingiCoordinateBounds
  • DingiCoordinateBoundsEqualToCoordinateBounds

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

    Declaration

    Objective-C

    static inline BOOL
    DingiCoordinateBoundsEqualToCoordinateBounds(DingiCoordinateBounds bounds1,
                                                 DingiCoordinateBounds bounds2)

    Swift

    func DingiCoordinateBoundsEqualToCoordinateBounds(_ bounds1: DingiCoordinateBounds, _ bounds2: DingiCoordinateBounds) -> Bool
  • DingiCoordinateBoundsGetCoordinateSpan

    Returns the area spanned by the coordinate bounds.

    Declaration

    Objective-C

    static inline DingiCoordinateSpan
    DingiCoordinateBoundsGetCoordinateSpan(DingiCoordinateBounds bounds)

    Swift

    func DingiCoordinateBoundsGetCoordinateSpan(_ bounds: DingiCoordinateBounds) -> DingiCoordinateSpan
  • DingiCoordinateBoundsIntersectsCoordinateBounds

    Returns YES if the two coordinate bounds intersect.

    Declaration

    Objective-C

    static inline BOOL
    DingiCoordinateBoundsIntersectsCoordinateBounds(DingiCoordinateBounds bounds1,
                                                    DingiCoordinateBounds bounds2)

    Swift

    func DingiCoordinateBoundsIntersectsCoordinateBounds(_ bounds1: DingiCoordinateBounds, _ bounds2: DingiCoordinateBounds) -> Bool
  • DingiCoordinateBoundsIsEmpty

    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 DingiCoordinateBoundsIsEmpty(DingiCoordinateBounds bounds)

    Swift

    func DingiCoordinateBoundsIsEmpty(_ bounds: DingiCoordinateBounds) -> Bool
  • DingiCoordinateBoundsMake

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

    Declaration

    Objective-C

    static inline DingiCoordinateBounds
    DingiCoordinateBoundsMake(CLLocationCoordinate2D sw, CLLocationCoordinate2D ne)

    Swift

    func DingiCoordinateBoundsMake(_ sw: CLLocationCoordinate2D, _ ne: CLLocationCoordinate2D) -> DingiCoordinateBounds
  • DingiCoordinateBoundsOffset

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

    Declaration

    Objective-C

    static inline DingiCoordinateBounds
    DingiCoordinateBoundsOffset(DingiCoordinateBounds bounds,
                                DingiCoordinateSpan offset)

    Swift

    func DingiCoordinateBoundsOffset(_ bounds: DingiCoordinateBounds, _ offset: DingiCoordinateSpan) -> DingiCoordinateBounds
  • DingiCoordinateInCoordinateBounds

    Returns YES if the coordinate is within the coordinate bounds.

    Declaration

    Objective-C

    static inline BOOL
    DingiCoordinateInCoordinateBounds(CLLocationCoordinate2D coordinate,
                                      DingiCoordinateBounds bounds)

    Swift

    func DingiCoordinateInCoordinateBounds(_ coordinate: CLLocationCoordinate2D, _ bounds: DingiCoordinateBounds) -> Bool
  • DingiCoordinateQuad

    A quadrilateral area as measured on a two-dimensional map projection. DingiCoordinateQuad differs from DingiCoordinateBounds in that it allows representation of non-axis aligned bounds and non-rectangular quadrilaterals. The coordinates are described in counter clockwise order from top left.

    See more

    Declaration

    Objective-C

    struct DingiCoordinateQuad {}

    Swift

    struct DingiCoordinateQuad
  • DingiCoordinateQuadMake

    Creates a new DingiCoordinateQuad structure from the given top left, bottom left, bottom right, and top right coordinates.

    Declaration

    Objective-C

    static inline DingiCoordinateQuad DingiCoordinateQuadMake(
        CLLocationCoordinate2D topLeft, CLLocationCoordinate2D bottomLeft,
        CLLocationCoordinate2D bottomRight, CLLocationCoordinate2D topRight)

    Swift

    func DingiCoordinateQuadMake(_ topLeft: CLLocationCoordinate2D, _ bottomLeft: CLLocationCoordinate2D, _ bottomRight: CLLocationCoordinate2D, _ topRight: CLLocationCoordinate2D) -> DingiCoordinateQuad
  • DingiCoordinateQuadFromCoordinateBounds

    Creates a new DingiCoordinateQuad structure from the given DingiCoordinateBounds. The returned quad uses the bounds’ northeast coordinate as the top right, and the southwest coordinate at the bottom left.

    Declaration

    Objective-C

    static inline DingiCoordinateQuad
    DingiCoordinateQuadFromCoordinateBounds(DingiCoordinateBounds bounds)

    Swift

    func DingiCoordinateQuadFromCoordinateBounds(_ bounds: DingiCoordinateBounds) -> DingiCoordinateQuad
  • DingiCoordinateSpan

    Defines the area spanned by an DingiCoordinateBounds.

    See more

    Declaration

    Objective-C

    struct DingiCoordinateSpan {}

    Swift

    struct DingiCoordinateSpan
  • DingiCoordinateSpanEqualToCoordinateSpan

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

    Declaration

    Objective-C

    static inline BOOL
    DingiCoordinateSpanEqualToCoordinateSpan(DingiCoordinateSpan span1,
                                             DingiCoordinateSpan span2)

    Swift

    func DingiCoordinateSpanEqualToCoordinateSpan(_ span1: DingiCoordinateSpan, _ span2: DingiCoordinateSpan) -> Bool
  • DingiCoordinateSpanMake

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

    Declaration

    Objective-C

    static inline DingiCoordinateSpan
    DingiCoordinateSpanMake(CLLocationDegrees latitudeDelta,
                            CLLocationDegrees longitudeDelta)

    Swift

    func DingiCoordinateSpanMake(_ latitudeDelta: CLLocationDegrees, _ longitudeDelta: CLLocationDegrees) -> DingiCoordinateSpan
  • DingiCoordinateSpanZero

    An area of zero width and zero height.

    Declaration

    Objective-C

    extern const DingiCoordinateSpan DingiCoordinateSpanZero

    Swift

    let DingiCoordinateSpanZero: DingiCoordinateSpan
  • DingiDegreesFromRadians

    Returns degrees, converted from radians.

    Declaration

    Objective-C

    static inline CLLocationDegrees DingiDegreesFromRadians(CGFloat radians)

    Swift

    func DingiDegreesFromRadians(_ radians: CGFloat) -> CLLocationDegrees
  • DingiRadiansFromDegrees

    Returns radians, converted from degrees.

    Declaration

    Objective-C

    static inline CGFloat DingiRadiansFromDegrees(CLLocationDegrees degrees)

    Swift

    func DingiRadiansFromDegrees(_ degrees: CLLocationDegrees) -> CGFloat
  • DingiStringFromCoordinateBounds

    Returns a formatted string for the given coordinate bounds.

    Declaration

    Objective-C

    static inline NSString *_Nonnull DingiStringFromCoordinateBounds(
        DingiCoordinateBounds bounds)

    Swift

    func DingiStringFromCoordinateBounds(_ bounds: DingiCoordinateBounds) -> String
  • DingiStringFromCoordinateQuad

    Returns a formatted string for the given coordinate quad.

    Declaration

    Objective-C

    static inline NSString *_Nonnull DingiStringFromCoordinateQuad(
        DingiCoordinateQuad quad)

    Swift

    func DingiStringFromCoordinateQuad(_ quad: DingiCoordinateQuad) -> String

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

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