Class: Go3dView

Go3dView

A class responsible for initializing and managing the 3D view of the map, including setting up layers, handling map events, and providing view-related utilities.

new Go3dView(map, viewConfig)

GoMap/View/index.ts, line 11

Constructs a Go3dView instance.

Name Type Description
map Go3dMap

The Go3dMap instance that this view will be associated with.

viewConfig Go3dViewConfig

Configuration options for the view.

Methods

getLayer(layerId){Go3dLayer|undefined}

GoMap/View/index.ts, line 173

Retrieves a specific layer by its ID.

Name Type Description
layerId string

The ID of the layer to retrieve.

Returns:
Type Description
Go3dLayer | undefined
  • The Go3dLayer instance with the specified ID, or undefined if not found.

getLayers(){Map.<string, Go3dLayer>}

GoMap/View/index.ts, line 164

Retrieves all layers associated with this view.

Returns:
Type Description
Map.<string, Go3dLayer>
  • A map of layer IDs to Go3dLayer instances.

getMapContainer(){HTMLElement}

GoMap/View/index.ts, line 48

Returns the map container element.

Returns:
Type Description
HTMLElement
  • The HTML element used as the map container.

getRenderer(){maptalks.Renderer}

GoMap/View/index.ts, line 81

Retrieves the renderer used by the maptalks map.

Returns:
Type Description
maptalks.Renderer
  • The renderer of the maptalks map.

restore()

GoMap/View/index.ts, line 138

Restores the map view to the configuration specified in the viewConfig.