You can install
resium from npm.
npm install --save cesium resium# oryarn add cesium resium
Note: If you are using TypeScript, install
@types/cesium also. Installing
@types/resium is unnecessary as type definitions for Resium are built-in.
To use Cesium in webpack environment, preparation is a bit more necessary, because Cesium includes many asset files and uses AMD as module system.
There are some choices. Choose one.
- If you are using
create-react-app, craco-cesium is recommended. (easiest)
- Copy whole Cesium files and load Cesium in HTML (easier)
- Copy only asset files and load Cesium partially
Everything is ready! Advance to Getting Started.