0.1.1 • Published 5 years ago

mapbox-three v0.1.1

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

Mapbox Three

Mapbox plugin for rendering 3d worlds on top of a map.

Features

  • Handle projection of the camera
  • Handle geo coords of object.
  • Rendering of the world.

Install from NPM

npm install mapbox-three

Example code

import { ThreeMapboxLayer } from 'mapbox-three';

const map = ....; // Mapbox map.
const layer = new ThreeMapboxLayer('3d-world');
map.addLayer(layer);

const object3d = ...; // Threejs creation of obj.
const wrapped = layer.add(object3d);
wrapped.setCoords([1.0, 1.0]);

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install the software and how to install them

Installation

Install NodeJS dependencies:

$ npm i

Running the app

# watch mode (recommended for development)
$ npm run serve

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

Nest is MIT licensed.

0.1.1

5 years ago

0.1.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago