Mapbox - Extruding circles (stacked)
✓ Published0🌍 Public
HHirosaji
Last edited Feb 23, 2021
Created on Feb 18, 2021
This example visualizes Japanese towers with observation decks using Mapbox GL JS and D3 v5. It renders filled 3D extruded circles on a map, with the stacked heights representing each tower’s total height and its observation deck altitude, colored blue and red at hover. The code loads tower height data from a CSV, geocodes points, and uses Turf.js to create circular polygons that are extruded via Mapbox’s fill-extrusion layers and feature-state hover styling.
AI-generated descriptionmit Licensed