MBMElevationData

@protocol MBMElevationData

Interface that provides access to elevation data.

  • Get elevation for given coordinate. Value is available only for the visible region on the screen, if terrain (DEM) tile is available.

    Declaration

    Objective-C

    - (nullable NSNumber *)getElevationForCoordinate:
        (CLLocationCoordinate2D)coordinate;

    Swift

    func getElevationFor(_ coordinate: CLLocationCoordinate2D) -> NSNumber?

    Parameters

    coordinate

    defined as longitude-latitude pair.

    Return Value

    Elevation (in meters) multiplied by current terrain exaggeration, or empty if elevation for the coordinate is not available.

  • Current value of terrain exaggeration.

    Declaration

    Objective-C

    - (double)getTerrainExaggeration;

    Swift

    func getTerrainExaggeration() -> Double

    Return Value

    Current value of terrain exaggeration.