@polygonjs/plugin-mapbox
TypeScript icon, indicating that this package has built-in type declarations

1.2.19 • Public • Published

Polygonjs Mapbox Plugin

This adds several nodes to work with Mapbox with the Polygonjs webgl engine.

See Live Demo or example repo:

example scene with mapbox camera

Install

Import the plugin:

yarn add @polygonjs/plugin-mapbox

And register the plugin in the function configurePolygonjs in the file PolyConfig.js so that the mapbox nodes can be accessible in both the editor and your exported scene:

import {polyPluginMapbox} from '@polygonjs/plugin-mapbox/dist/src/index';

export function configurePolygonjs(poly) {
	poly.registerPlugin(polyPluginMapbox);
	polyPluginMapbox.setToken('<your-mapbox-token>');
}

Package Sidebar

Install

npm i @polygonjs/plugin-mapbox

Weekly Downloads

0

Version

1.2.19

License

MIT

Unpacked Size

6.2 MB

Total Files

118

Last publish

Collaborators

  • polygonjs