Giter Site home page Giter Site logo

nuancheng / threebox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from peterqliu/threebox

0.0 0.0 0.0 12.11 MB

A three.js plugin for Mapbox GL JS, with support for basic animation and advanced 3D rendering.

License: MIT License

JavaScript 99.14% HTML 0.86%

threebox's Introduction

threebox

A three.js plugin for Mapbox GL JS, using the custom layer feature. Provides convenient methods to manage objects in lnglat coordinates, and to synchronize the map and scene cameras.

threebox

Compatibility/Dependencies

  • Mapbox v.0.50.0 and later (for custom layer support)
  • Three.r94 (already bundled into the Threebox build). If desired, other versions can be swapped in and rebuilt here, though compatibility is not guaranteed.

Getting started

Download the bundle from dist/threebox.js and add include it in a <script> tag on your page.

Several introductory examples are here. To run them, create a config.js file with your Mapbox access token, alongside and in the format of the template.

Documentation lives here.

Contributing

Build the library with npm run build, or npm run dev to rebuild continuously as you develop. Both commands will output a bundle in /dist/threebox.js.

Tests live here -- run index.html and check the console for test results.

threebox's People

Contributors

mcculloughrt avatar peter avatar peterqliu avatar petersirota avatar ptrbrn avatar

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.