Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

polygonjs/plugin-mapbox

Open more actions menu

Repository files navigation

DEPRECATED

This repository is not used anymore, as the mapbox nodes have been fully integrated into the core engine. See live examples scenes

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>');
}

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.