Function show3dMap

  • Experimental

    Asynchronously displays a 3D map inside a specified HTML element and returns a MapView instance.

    Parameters

    • el: HTMLElement

      The HTMLElement where the map will be rendered.

    • mapData: MapData

      The data to be used for rendering the map.

    • Optional options: TShow3DMapOptions

      Optional parameters for map display.

    Returns Promise<MapView>

    A promise that resolves to the MapView instance.

    Example

    const mapData = await getMapData({ key: 'api_key', secret: 'api_secret', mapId: 'id' });
    const mapContainer = document.getQuerySelector('body');
    const map = await show3dMap(mapContainer, mapData, { auto: true });