Import the script
<script type="module" src="./dist/web-globe.js"></script>
And use the web-globe
component
<web-globe arcSpeed="2" rotateSpeed="1"></web-globe>
Install dependencies:
npm i
This sample uses the TypeScript compiler to produce JavaScript that runs in modern browsers.
To build the JavaScript version of your component:
npm run build
To watch files and rebuild when the files are modified, run the following command in a separate shell:
npm run build:watch
To create the production build run:
npm run build:prod
- Thomas Pöhlmann (@perryrh0dan)