threebox

WebJar for threebox

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

threebox
Last Version

Last Version

0.1.5
Release Date

Release Date

Type

Type

jar
Description

Description

threebox
WebJar for threebox
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/peterqliu/threebox

Download threebox

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/threebox/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>threebox</artifactId>
    <version>0.1.5</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/threebox/
implementation 'org.webjars.npm:threebox:0.1.5'
// https://jarcasting.com/artifacts/org.webjars.npm/threebox/
implementation ("org.webjars.npm:threebox:0.1.5")
'org.webjars.npm:threebox:jar:0.1.5'
<dependency org="org.webjars.npm" name="threebox" rev="0.1.5">
  <artifact name="threebox" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='threebox', version='0.1.5')
)
libraryDependencies += "org.webjars.npm" % "threebox" % "0.1.5"
[org.webjars.npm/threebox "0.1.5"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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.

Versions

Version
0.1.5