@polygonjs/plugin-mapbox
v1.2.19
Published
Mapbox plugin for the 3D engine https://polygonjs.com
Downloads
40
Maintainers
Readme
Polygonjs Mapbox Plugin
This adds several nodes to work with Mapbox with the Polygonjs webgl engine.
See Live Demo or example repo:
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>');
}