Skip to main content

flywave-mapview.mapviewenvironment

Home > @flywave/flywave-mapview > MapViewEnvironment

MapViewEnvironment class

Class handling the Scene Environment, like fog, sky, background datasource, clearColor etc for MapView

Signature:

export declare class MapViewEnvironment 

Constructors

Constructor

Modifiers

Description

(constructor)(m_mapView, options)

Constructs a new instance of the MapViewEnvironment class

Properties

Property

Modifiers

Type

Description

celestia

readonly

Celestia

fog

readonly

MapViewFog

lights

readonly

THREE.Light[]

Methods

Method

Modifiers

Description

clearBackgroundDataSource()

createLight(lightDescription)

update()

updateBackgroundDataSource()

updateCelestia(options)

updateClearColor(clearColor, clearAlpha)

updateLighting(lights)

updateLights()

Update the directional light camera. Note, this requires the cameras to first be updated.

updateSkyBackground(sky, clearColor)