react-cesium-map
TypeScript icon, indicating that this package has built-in type declarations

0.0.24 • Public • Published

使用 cesium 和 react 创建 3D 地图

开发中....不推荐使用....

Usage

1. npm install react-cesium-map cesium --save
2. webpack中的plugins属性增加如下配置(您可能实现需要安装 npm install copy-webpack-plugin --save-dev)
    new CopyWebpackPlugin({ patterns: [{ from: path.resolve(__dirname, 'node_modules/react-cesium-map/build', 'cesium') }] }),
    new webpack.DefinePlugin({ CESIUM_BASE_URL: JSON.stringify('cesium') }),
3. webpack中module增加如下配置(解决Critical dependency: require function is used in a way in which dependencies cannot be statically extracted的问题)
    unknownContextCritical: false,

API 文档

// 暂无

补充信息,譬如兼容性描述等

// 暂无

ChangeLog

// 暂无

贡献、联系作者、License 等

// 暂无

Readme

Keywords

Package Sidebar

Install

npm i react-cesium-map

Weekly Downloads

7

Version

0.0.24

License

MIT

Unpacked Size

9.59 MB

Total Files

678

Last publish

Collaborators

  • sun.t