Function calculateDistanceToGroundFromZoomLevel

  • Calculates and returns the distance from the ground, which is needed to put the camera to this height, to see the size of the area that would be covered by one tile for the given zoom level.

    Parameters

    • mapView: {
          camera: PerspectiveCamera;
          focalLength: number;
          projection: Projection;
      }

      Instance of MapView.

      • camera: PerspectiveCamera
      • focalLength: number
      • projection: Projection
    • zoomLevel: number

    Returns number

Generated using TypeDoc