刚开始使用的 cesium 踩过的坑,希望对你有用
https://gitee.com/amluck/cesiumGS 由于使用Cesium源码比较频繁,用gitee搞了一个镜像,一周内会手动同步3-5次
20200708
- Cesium版本更新到了1.71.0
- 部分依赖包的版本更新
不同的分支代表不同的环境
参照 cesium 官方 GitHub 库cesium-webpack-example ,添加了@znemz/cesium-navigation。
git clone -b webpack https://github.com/amluck/cesium-in-use.git
npm install
npm start
npm start
- Runs a webpack build withwebpack.config.js
and starts a development servernpm run build
- Runs a webpack build withwebpack.config.js
npm run release
- Runs an optimized webpack build withwebpack.release.config.js
npm run serve-release
- Runs an optimized webpack build withwebpack.release.config.js
and starts a development server
使用Vue Cli 2
构建,工程使用了 eslint+prettier
进行代码格式化
git clone -b vuecli2 https://github.com/amluck/cesium-in-use.git
npm install
npm run dev
npm run dev
- Runs a serve with hot reload atlocalhost:8080
npm run build
- Build for production with minificationnpm run lint
- Lint code by eslint
使用Vue Cli 4.05
构建,工程使用了 eslint+prettier
进行代码格式化
git clone -b vuecli3+ https://github.com/amluck/cesium-in-use.git
yarn install
yarn serve
yarn serve
- Runs a serve with hot reload atlocalhost:9099
yarn build
- Build for production with minificationyarn lint
- Lint code by eslint