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.
- Mapbox v.0.50.0 and later (for custom layer support), barring breaking changes later
- Three.r94 (already bundled into the Threebox build)
Download the bundle from dist/threebox.js
and add include it in a <script>
tag on your page. Note that the npm package is from an old version, and will not work (update in progress).
npm run build
or to continually rebuild as you develop:
npm run dev
Both commands will output a bundled in /dist/threebox.js
.