Open luojiandan opened 4 years ago
import
If that´s your only html, you are missing the required links to mapbox script and css
<script src="https://api.mapbox.com/mapbox-gl-js/v1.11.1/mapbox-gl.js"></script>
<link href="https://api.mapbox.com/mapbox-gl-js/v1.11.1/mapbox-gl.css" rel="stylesheet" />
Threebox is a Three.js plugin for Mapbox, Three.js is embedded, but not Mapbox, you need to add it to your project or the link to their js + css
@jscastro76 thanks your replay:) I work in Vue
Vue:2.5.2 Mapbox-GL:1.12.0 threebox:2.0.4
@jscastro76 Example repo:https://github.com/luojiandan/VueMapboxThreebox
Solved in this fork
@peterqliu @kronick @McCulloughRT Hi,I need u help:) I import threebox to my project,get error:(,what's wrong?
the threebox.js in static folder,it's ok: