mars3d-supermap 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 +38 -14
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,30 +1,54 @@
|
|
|
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-supermap">
|
|
10
|
+
<img alt="Npm version" src="https://img.shields.io/npm/v/mars3d-supermap.svg?style=flat&logo=npm&label=版本号" />
|
|
11
|
+
</a>
|
|
12
|
+
<a target="_black" href="https://www.npmjs.com/package/mars3d-supermap">
|
|
13
|
+
<img alt="Npm downloads" src="https://img.shields.io/npm/dt/mars3d-supermap?style=flat&logo=npm&label=下载量" />
|
|
9
14
|
</a>
|
|
10
|
-
<a target="_black" href="https://
|
|
11
|
-
|
|
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平台插件, 结合supermap超图库使用的功能插件
|
|
18
24
|
|
|
19
25
|
|
|
26
|
+
## 使用方式
|
|
27
|
+
|
|
28
|
+
使用 Node 环境下的现代 web 前端技术栈时,可以使用 npm 或 cnpm 或 yarn 等方式来安装 mars3d 插件包
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
//安装mars3d主库
|
|
32
|
+
npm install mars3d --save
|
|
20
33
|
|
|
21
|
-
|
|
34
|
+
//安装mars3d插件(按需安装)
|
|
35
|
+
npm install mars3d-supermap --save
|
|
36
|
+
```
|
|
22
37
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
38
|
+
|
|
39
|
+
安装后在mars3d引入后,引入一次插件即可
|
|
40
|
+
|
|
41
|
+
```js
|
|
42
|
+
//导入mars3d主库
|
|
43
|
+
import "mars3d/dist/mars3d.css";
|
|
44
|
+
import * as mars3d from "mars3d";
|
|
45
|
+
|
|
46
|
+
//导入mars3d插件 [在mars3d引入后]
|
|
47
|
+
import "mars3d-supermap";
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
> 关于引入后的具体如何使用,请参考教程[在项目中集成 Mars3D](http://mars3d.cn/dev/guide/start/import.html)中了解更多信息。
|
|
51
|
+
|
|
28
52
|
|
|
29
53
|
|
|
30
54
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mars3d-supermap",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"description": "Mars3D平台插件,结合supermap超图库使用的功能插件",
|
|
5
5
|
"main": "dist/mars3d-supermap.js",
|
|
6
6
|
"files": [
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
],
|
|
9
9
|
"dependencies": {},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"mars3d": "^3.4.
|
|
11
|
+
"mars3d": "^3.4.2"
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
14
|
"lint": "eslint ./src/**/*.{js,ts} --fix"
|