Skip to main content

flywave-mapview.mapviewatmosphere

Home > @flywave/flywave-mapview > MapViewAtmosphere

MapViewAtmosphere class

Class that provides MapView's atmospheric scattering effect.

Signature:

export declare class MapViewAtmosphere 

Constructors

Constructor

Modifiers

Description

(constructor)(m_mapAnchors, m_sceneCamera, m_projection, m_rendererCapabilities, m_updateCallback, m_atmosphereVariant, m_materialVariant)

Creates and adds Atmosphere effects to the scene.

Currently works only with globe projection.

Properties

Property

Modifiers

Type

Description

enabled

boolean

Returns the current atmosphere status, enabled or disabled.

GroundAtmosphereUserName

static

string

User data name attribute assigned to created mesh.

groundMesh

readonly

THREE.Mesh | undefined

lightDirection

readonly

THREE.Vector3

lightMode

AtmosphereLightMode

SkyAtmosphereUserName

static

string

User data name attribute assigned to created mesh.

skyMesh

readonly

THREE.Mesh | undefined

Methods

Method

Modifiers

Description

dispose()

Disposes allocated resources.

isPresent(mapAnchors)

static

Check if map anchors have already atmosphere effect added.

reset(theme)

Sets the atmosphere depending on the instance provided.

This function is called when a theme is loaded. Atmosphere is added only if the theme contains a atmosphere definition with a: - color property, used to set the atmosphere color.

setLightDirection(lightDirection)

更新光照方向