Coder Social home page Coder Social logo

cheeaun / om3d Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 3.0 50.42 MB

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

Home Page: https://om3d.netlify.app/

HTML 14.86% JavaScript 50.35% Shell 9.24% CSS 25.55%
singapore 3d-tiles onemap mapbox-gl-js deck-gl buildings map 3d

om3d's Introduction

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

om3d's People

Contributors

cheeaun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

om3d's Issues

No roof display

Hi, thanks for the great idea
I tried with data that is part of Singapore region from source OSM
The results I see do not show roof data. Is it because of the data structure or something else?
Looking forward to hearing from you soon. Thank you

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.