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

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.
  • 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