Display buildings in 3D
✓ Published0🌍 Public
AAlan McConchie
Last edited Feb 22, 2018
Created on Feb 22, 2018
This example displays buildings in 3D on a Mapbox GL map centered on downtown Los Angeles, with a tilted and rotated perspective. It uses the Mapbox GL JS API to render a `fill-extrusion` layer from the `building` source-layer in the `composite` vector source, which contains OpenStreetMap building-height data. The extrusion height and base are interpolated from zoom level 15 to 15.05, creating a smooth transition as the user zooms in, with a gray color and 0.6 opacity.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed