gd-cesium
Description
vue cesium框架Installation
- 安装
- vue.config.js中引入cesium静态文件,configureWebpackh中添加
// Copy Cesium Assets, Widgets, and Workers to a static directory
new CopyWebpackPlugin([{ from: 'node_modules/cesium/Build/Cesium/Workers', to: 'Workers' }]),
new CopyWebpackPlugin([{ from: 'node_modules/cesium/Build/Cesium/ThirdParty', to: 'ThirdParty' }]),
new CopyWebpackPlugin([{ from: 'node_modules/cesium/Build/Cesium/Assets', to: 'Assets' }]),
new CopyWebpackPlugin([{ from: 'node_modules/cesium/Build/Cesium/Widgets', to: 'Widgets' }]),
new webpack.DefinePlugin({
// Define relative base path in cesium for loading assets
CESIUM_BASE_URL: JSON.stringify('')
})
]
```
- main.js中全局引入
- 注意项目引入cesium只能引入"cesium": "1.92.0",现在不支持更新版本,会报错
Instructions
- xxxx
- xxxx
- xxxx
Contribution
- Fork the repository
- Create Featxxx branch
- Commit your code
- Create Pull Request