GitHub - polygonjs/example-plugin-mapbox: Mapbox plugin for Polygonjs - Example setup

Polygonjs Plugin Mapbox Example

This repository shows how to use the Mapbox Plugin for the WebGL engine Polygonjs.

scene with 3D objects above a map

models are from:

Open the scene in the WebGL editor

yarn && yarn polygon

and open your browser at

http://localhost:8091?scene=default

This will open the scene saved in this repo.

mapbox plugin from Polygonjs node-based Editor

Open the exported scene without the editor

  1. Go to the export folder: cd public/polygonjs/build/default. If the folder does not exist, make sure to open the editor as described above and save the scene. This will create the exported files.

  2. Open a local server. You can do this in multiple ways. Either python3 -m http.server or npx http-server -p 8000 -c-1 .

  3. Open your browser at http://localhost:8000