Creates the buildings on a map, drawn as soon as the map is ready.
The map to draw the buildings on.
Optionalconfig: Buildings3DConfig
The knobs to start with.
The underlying MapLibre custom layer, for advanced use beyond this facade.
Replaces the whole configuration. An empty object has every knob take the auto preset's value.
Use it, and updateConfig, for a look your code writes: the type is the check, and the
values are not checked again. For values held as data, the SDK's setKnobs checks each against
buildings3DKnobCatalogue and sets them by id.
Returns the knobs set, as a plain serializable copy. The SDK's getKnob reads a knob's value
in force, the preset's one when unset.
Whether the buildings are set to be shown: the visible knob, true unless set.
Unsets every knob, so the buildings show with the look of the map's style.
Shows or hides the buildings. Stored as visible in the configuration. Hidden, they give the
style's own 3D buildings their place back.
Changes the given knobs and keeps the others, one level deep: a part you pass, such as light,
replaces that part's values.
Draws the base map's buildings in 3D with Three.js, with windows on their facades, a sun or moon that casts shadows on the buildings and the ground, and a look for every standard style.
Remarks
Public Preview until the plugin's 1.0.0 release.
3D - Buildinglayer. It draws whether or not thebuildings3Dgroup of theBaseMapModuleshows.autopreset follows the map style: the dark street and mono styles light windows from inside under a moon, the others get a sun and glass that mirrors the street and the sky.walls.color, following the map colours that restyle them.minZoomfor their unset knobs. Unless theirtextureknob says otherwise, their own textures show as facade detail, as strong asfacade.intensity. They mirror a little of the street and the sky, as much asreflections.intensitysets.roadLabels.occludedorpois.occluded, it moves those style layers under its own, so a building drawn over a label hides it. A hidden POI still keeps other labels off its place, and the moved labels give way to the labels above them where they collide.Example