@geogirafe/lib-geoportal
    Preparing search index...

    The Google Street View footage, displayed by a StreetViewPanorama. This module is the only place where the Google Maps API is used. It is loaded on demand by the StreetView Component, so that the API stays out of the application as long as no Google StreetView is displayed.

    Implements

    Index
    • Loads the external library, if needed, and creates the viewer in the target element. The callback is called each time the displayed footage or the direction of sight changes.

      Parameters

      • target: HTMLElement
      • onFootageChanged: (footage: Footage) => void

      Returns Promise<void>

    • Displays the closest footage around the coordinate, within the radius (in meters), looking in the given direction or, by default, in the direction the footage was taken. Resolves to false when there is no footage within the radius.

      Parameters

      • lonLat: Coordinate
      • radius: number
      • Optionalpov: PointOfView

      Returns Promise<boolean>