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

    The 3D Map.

    The Component itself stays lightweight: Cesium and OLCesium are only imported when the 3D Map is displayed for the first time. Everything that needs those libraries lives in ./tools/globe. The synchronization with the 2D Map is done by OLCesium, through the OpenLayers map of the MapManager. There is therefore no direct dependency to the map-2d Component.

    Hierarchy (View Summary)

    Index
    displayStyle?: string
    feedbackTemplateHtml?: string
    globe: Globe | null = null
    loading: boolean = false
    map3dTarget: HTMLDivElement
    name: string
    pixelTolerance: number = 10
    rendered: boolean = false
    shadow: ShadowRoot
    styleUrls: string[] = ...
    template: Hole | (() => Hole)
    templateUrl: string = './template.html'
    • get isFullscreenComponent(): boolean

      The Map needs to be displayed in Fullscreen Mode.

      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

    • Creates and enables the globe when the 3D Map is displayed in a Cell of the Grid, and disables it when it is not displayed anymore. The size and the position of the Map are managed by the Grid, OLCesium takes care of following the size of its container.

      Returns Promise<void>

    • 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