-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to import package ? #687
Comments
Hi @jalik, Cesium is loaded as an external library in the html. |
I'm having same problem as @jalik I'm trying to integrate ol-Cesium into my Vue - Openlayers app. But I'm getting this type of error: I'm using Openlayers v 5.3.0
|
Hi @NevenD, Cesium is not part of OL-Cesium. |
@gberaudo Thank you for our response. I'm sorry I didn't catch, to be honest. What should I reference in script tag.? OCesium.js file or ...? So, basically, my index.html looks like this:
Then as I wrote I tried to install the package as an ES6 library I tried to reference OLCesium as a script in idex.html but without any luck |
@NevenD, you simply need to add this line before the OLCesium script: |
@gberaudo Ok, thank you. It works now. Keep up the good work :) |
This worked for me: |
I don't understand how to use this package.
I tried to import in several ways, but I always ended up with errors...
I a m using webpack and I found this link: #594
but it seems the code is stale.
Basically here is what I did based on the doc:
I had errors like
Cesium is not defined
so I tried to installcesium
from npm but don't know how to load it, there's no doc for that.. I am using OL 5.3.0.The text was updated successfully, but these errors were encountered: