Skip to content
/ om3d Public

Demo of Singapore buildings 3D tiles from OneMap on Mapbox GL JS.

Notifications You must be signed in to change notification settings

cheeaun/om3d

Repository files navigation

Singapore buildings 3D Tiles from OneMap 3D on Mapbox GL JS

Screenshot of demo site

This is a demo of Singapore buildings 3D tiles from OneMap 3D on Mapbox GL JS.

Development

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

Copyright

@ SLA @ OneMap