Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

vue import error: #93

Open
luojiandan opened this issue Oct 16, 2020 · 5 comments
Open

vue import error: #93

luojiandan opened this issue Oct 16, 2020 · 5 comments

Comments

@luojiandan
Copy link

luojiandan commented Oct 16, 2020

@peterqliu @kronick @McCulloughRT Hi,I need u help:)
I import threebox to my project,get error:(,what's wrong?
image
image
image

the threebox.js in static folder,it's ok:
image

@luojiandan
Copy link
Author

import
image

@jscastro76
Copy link

jscastro76 commented Oct 16, 2020

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

@luojiandan
Copy link
Author

@jscastro76 thanks your replay:)
I work in Vue

Vue:2.5.2
Mapbox-GL:1.12.0
threebox:2.0.4
image
image

@luojiandan
Copy link
Author

@jscastro76
Copy link

Solved in this fork

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants