Class: BuildingStyle

BuildingStyle

A class that represents styles for building features using 3D models. This class extends BaseStyles to provide specific styling for buildings, including extrusion and animation effects.

new BuildingStyle(source, styleOptions)

GoMap/Styles/BuildingStyle.ts, line 24

Creates an instance of BuildingStyle.

Name Type Description
source BaseSource

The source from which the building data is derived.

styleOptions Go3dStylesConfig

Configuration options for the building style.

Extends

  • undefined

Methods

__init()

GoMap/Styles/BuildingStyle.ts, line 85

Initializes the BuildingStyle by creating and setting up the ThreeLayer.

apply(feature)

GoMap/Styles/BuildingStyle.ts, line 49

Applies the building style to a given map feature.

Name Type Description
feature Geometry

The geometry feature to which the style will be applied.

getThreeLayer(){maptalksTHREE.ThreeLayer}

GoMap/Styles/BuildingStyle.ts, line 41

Gets the ThreeLayer instance used for rendering the building styles.

Returns:
Type Description
maptalksTHREE.ThreeLayer The ThreeLayer instance.