mars3d-space 3.4.1 → 3.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -17
- package/dist/mars3d-space.js +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
|
|
2
2
|
<p align="center">
|
|
3
|
-
|
|
3
|
+
<img src="//mars3d.cn/logo.png" width="300px" />
|
|
4
4
|
</p>
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
<p align="center">🌎 一款基于WebGL技术实现的三维地球客户端开发平台</p>
|
|
7
|
+
|
|
6
8
|
<p align="center">
|
|
7
|
-
<a target="_black" href="https://
|
|
8
|
-
|
|
9
|
+
<a target="_black" href="https://www.npmjs.com/package/mars3d-space">
|
|
10
|
+
<img alt="Npm version" src="https://img.shields.io/npm/v/mars3d-space.svg?style=flat&logo=npm&label=版本号" />
|
|
9
11
|
</a>
|
|
10
|
-
<a target="_black" href="https://www.npmjs.com/package/mars3d">
|
|
11
|
-
|
|
12
|
+
<a target="_black" href="https://www.npmjs.com/package/mars3d-space">
|
|
13
|
+
<img alt="Npm downloads" src="https://img.shields.io/npm/dt/mars3d-space?style=flat&logo=npm&label=下载量" />
|
|
14
|
+
</a>
|
|
15
|
+
<a target="_black" href="https://github.com/marsgis/mars3d">
|
|
16
|
+
<img alt="GitHub stars" src="https://img.shields.io/github/stars/marsgis/mars3d?style=flat&logo=github" />
|
|
12
17
|
</a>
|
|
13
|
-
<a target="_black" href="https://
|
|
14
|
-
|
|
18
|
+
<a target="_black" href="https://gitee.com/marsgis/mars3d">
|
|
19
|
+
<img src="https://gitee.com/marsgis/mars3d/badge/star.svg?theme=dark" alt="star" />
|
|
15
20
|
</a>
|
|
16
21
|
</p>
|
|
22
|
+
|
|
17
23
|
Mars3D平台插件, 卫星及相关视锥体可视化功能
|
|
18
24
|
|
|
19
25
|
|
|
@@ -23,23 +29,40 @@ Mars3D平台插件, 卫星及相关视锥体可视化功能
|
|
|
23
29
|
|
|
24
30
|
|
|
25
31
|
|
|
26
|
-
|
|
32
|
+
|
|
33
|
+
## 使用方式
|
|
27
34
|
|
|
28
|
-
|
|
29
|
-
`npm install` 或 `cnpm install`
|
|
30
|
-
|
|
31
|
-
### 打包编译项目
|
|
32
|
-
运行`npm run build`来构建项目。
|
|
35
|
+
使用 Node 环境下的现代 web 前端技术栈时,可以使用 npm 或 cnpm 或 yarn 等方式来安装 mars3d 插件包
|
|
33
36
|
|
|
37
|
+
```sh
|
|
38
|
+
//安装mars3d主库
|
|
39
|
+
npm install mars3d --save
|
|
34
40
|
|
|
41
|
+
//安装mars3d插件(按需安装)
|
|
42
|
+
npm install mars3d-space --save
|
|
43
|
+
```
|
|
44
|
+
|
|
35
45
|
|
|
36
|
-
|
|
37
|
-
核心依赖库:Cesium、mars3d
|
|
46
|
+
安装后在mars3d引入后,引入一次插件即可
|
|
38
47
|
|
|
39
|
-
|
|
48
|
+
```js
|
|
49
|
+
//导入mars3d主库
|
|
50
|
+
import "mars3d/dist/mars3d.css";
|
|
51
|
+
import * as mars3d from "mars3d";
|
|
52
|
+
|
|
53
|
+
//导入mars3d插件 [在mars3d引入后]
|
|
54
|
+
import "mars3d-space";
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
> 关于引入后的具体如何使用,请参考教程[在项目中集成 Mars3D](http://mars3d.cn/dev/guide/start/import.html)中了解更多信息。
|
|
40
58
|
|
|
41
59
|
|
|
42
60
|
|
|
61
|
+
## 相关依赖
|
|
62
|
+
mars3d
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
43
66
|
## Mars3D 是什么
|
|
44
67
|
> `Mars3D三维地球平台软件` 是[火星科技](http://marsgis.cn/)研发的一款基于 WebGL 技术实现的三维客户端开发平台,基于[Cesium](https://cesium.com/cesiumjs/)优化提升与B/S架构设计,支持多行业扩展的轻量级高效能GIS开发平台,能够免安装、无插件地在浏览器中高效运行,并可快速接入与使用多种GIS数据和三维模型,呈现三维空间的可视化,完成平台在不同行业的灵活应用。
|
|
45
68
|
|