Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rudifa/parcel-cesium-lit
Experimenting with parcel + cesium + lit
https://github.com/rudifa/parcel-cesium-lit
Last synced: 24 days ago
JSON representation
Experimenting with parcel + cesium + lit
- Host: GitHub
- URL: https://github.com/rudifa/parcel-cesium-lit
- Owner: rudifa
- Created: 2023-02-16T14:18:47.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-16T23:46:00.000Z (almost 2 years ago)
- Last Synced: 2024-10-06T01:41:20.629Z (about 1 month ago)
- Language: JavaScript
- Size: 236 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Intro to Parcel.js
[An Introduction to Parcel.js, the No-Config Web Application Bundler](https://www.codeinwp.com/blog/introduction-to-parcel-js/)
[Parcel](https://parceljs.org/)
[CesiumJS Quickstart](https://cesium.com/learn/cesiumjs-learn/cesiumjs-quickstart/#step-2-set-up-the-cesiumjs-client)
Configuring CESIUM_BASE_URL
CesiumJS requires a few static files to be hosted on your server, like web workers and SVG icons. Configure your module bundler to copy the following four directories and serve them as static files:
```
node_modules/cesium/Build/Cesium/Workers
node_modules/cesium/Build/Cesium/ThirdParty
node_modules/cesium/Build/Cesium/Assets
node_modules/cesium/Build/Cesium/Widgets
```The window.CESIUM_BASE_URL global variable must be set before CesiumJS is imported. It must point to the URL where those four directories are served.
### TODO
- incorporate copying Cesium assets into the parcel build procedures.
- move the CreditDisplay styles into Widget styles.