This is a demo of Singapore buildings 3D tiles from OneMap 3D on Mapbox GL JS.
# install dependencies
npm i
# Start local server
npm start
# Download tiles from OneMap to ./tiles/*
# Roughly 700-800 MB
npm run fetch-tiles
# Generate optimized tiles into ./optimized-tiles/*
# Roughly 50-60 MB
npm run optimize-tiles
This uses Deck.gl's Tile3DLayer to render 3D Tiles.
The files in ./tiles
and ./optimized-tiles/*.glb
are excluded from this repository because they takes up too much space and unnecessary for this demo.