Buildings 3D playground

Give the base map's 3D buildings windows, a sun that casts shadows and a night look, and tune their look live

View on GitHub
Landmarks 3D plugin 0.3.2Private previewSDK 1.0.0

Midtown Manhattan’s towers rise with windows on every wall and shadows across the streets, lit from inside on a dark style.

  • new Buildings3D(map) extrudes the buildings of the tiles the map already loads, so it needs no data of its own.
  • buildings3DKnobCatalogue builds every buildings control: its options, range and tooltip.
  • walls.palette and roofs.palette take arrays of your own colours, one per building; the roofs follow the walls’ until given their own.
  • getKnob reports the value each knob resolves to, so the panel keeps up with a preset change, a style switch or resetConfig().
  • new Landmarks3D(map), behind the Landmarks toggle, adds the Empire State Building and its neighbours, which share the buildings’ sun, shadows and wall colour.

Related examples