Function rayCastGeoCoordinates

  • Casts a ray in NDC space from the current view of the camera and returns the intersection point of that ray against the map in geo coordinates. The return value can be null when the raycast is above the horizon.

    Parameters

    • mapView: MapView

      Instance of MapView.

    • pointOnScreenXinNDC: number
    • pointOnScreenYinNDC: number

    Returns GeoCoordinates | null

    Intersection geo coordinates, or null if raycast is above the horizon.

Generated using TypeDoc