Class: Buildings3D

cercaliagl.control/Buildings3D


Javascript ES5

const control = new cercaliagl.control.Buildings3D();

This control enables buildings3d layer. It displays 3D buildings provided by MVT from server. If base layer is a PNG raster. This buildings are provided by other `VectorTiles` server.

When this control is loaded an additional library is loaded `deckgl-plugin.min.js` which draws buildings shadows and user can change the sun time modifying date and time via a UI component shown in the bottom right corner

new Buildings3D()

Extends

Methods

changeSunLightTime(hour, minutes, dd, mm, yyyy)

Change sun light time. It only works when sun light is enabled in UI component.

Name Type Description
hour number

Hours 0 to 24.

minutes number

Minutes 0 to 60

dd number

Day 1 to 31.

mm number

Month. 0 to 11.

yyyy number

Year.

Returns cercalia Map object

Returns:
Cercalia map.

getClass(){string} inherited

Get class name.

Returns:
Class name.

getElement(){Element} inherited

Get control HTML Element

Returns:
HTML Element

Get control id.

Returns:
Id.

getMap(){module:maplibre-gl~Map} inherited

Returns mapboxgl Map object

getName(){string|null} inherited

Get control name. Null if control has not defined name.

Returns:
Class name.

Hide control.

Show control.