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

    Class StreetViewComponentAbstract

    A StreetView, displaying the footage of a provider (Google Street View, ...) side by side with the 2D Map.

    The Component stays lightweight: the provider and its external library are only loaded when the StreetView is displayed for the first time. A click on the map displays the closest footage, and a marker on the map shows the position and the direction of sight of the displayed footage. The map is accessed through the MapManager: there is no dependency to the map-2d Component.

    Hierarchy (View Summary)

    Index
    displayStyle?: string
    feedbackTemplateHtml?: string
    hasFootage: boolean = false
    loading: boolean = false
    name: string
    provider: "google"
    rendered: boolean = false
    shadow: ShadowRoot
    styleUrls: string[] = ...
    template: Hole | (() => Hole)
    templateUrl: string = './template.html'
    • get isFullscreenComponent(): boolean

      The StreetView is displayed in a Cell of the Grid, like the Maps.

      Returns boolean

    • Parameters

      • parentNodeName: string
      • elem: Node | null
      • initialElem: Node | null = elem

      Returns Node | null

    • Convert the string in parameter with uHtml and return it. This allows to convert a string with html in a right html object. For example, htmlUnsafe('

      ') will return an html div object.

      Parameters

      • str: string

      Returns Hole

    • In the templates, sometimes for accessibility reasons, we have to support the KeyDown Event In those case, we often juste want to do the same as the click event when Enter or Space is pressed Then this method can be used : it just calls the click event on the same element

      Parameters

      • e: KeyboardEvent

      Returns void