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 featureGeometry The geometry feature to which the style will be applied.
-
getThreeLayer(){maptalksTHREE.ThreeLayer}
GoMap/Styles/BuildingStyle.ts, line 41 -
Gets the
ThreeLayerinstance used for rendering the building styles.Returns:
Type Description maptalksTHREE.ThreeLayer The ThreeLayer instance.
