mars3d-tdt 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.
Files changed (2) hide show
  1. package/README.md +39 -15
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,19 +1,25 @@
1
1
 
2
2
  <p align="center">
3
- <img src="//mars3d.cn/logo.png" width="300px" />
3
+ <img src="//mars3d.cn/logo.png" width="300px" />
4
4
  </p>
5
- <p align="center">一款免费的三维地球客户端开发平台 :Mars3D</p>
5
+
6
+ <p align="center">🌎 一款基于WebGL技术实现的三维地球客户端开发平台</p>
7
+
6
8
  <p align="center">
7
- <a target="_black" href="https://github.com/marsgis/mars3d">
8
- <img alt="GitHub stars" src="https://img.shields.io/github/stars/marsgis/mars3d?style=flat&logo=github">
9
+ <a target="_black" href="https://www.npmjs.com/package/mars3d-tdt">
10
+ <img alt="Npm version" src="https://img.shields.io/npm/v/mars3d-tdt.svg?style=flat&logo=npm&label=版本号" />
9
11
  </a>
10
- <a target="_black" href="https://www.npmjs.com/package/mars3d">
11
- <img alt="Npm downloads" src="https://img.shields.io/npm/dt/mars3d?style=flat&logo=npm">
12
+ <a target="_black" href="https://www.npmjs.com/package/mars3d-tdt">
13
+ <img alt="Npm downloads" src="https://img.shields.io/npm/dt/mars3d-tdt?style=flat&logo=npm&label=下载量" />
12
14
  </a>
13
- <a target="_black" href="https://www.npmjs.com/package/mars3d">
14
- <img alt="Npm version" src="https://img.shields.io/npm/v/mars3d.svg?style=flat&logo=npm&label=version"/>
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" />
17
+ </a>
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
  ### 插件说明
@@ -29,18 +35,36 @@ github地址:https://github.com/ngcc-tdt/plugin [实际未开源,里面是
29
35
 
30
36
 
31
37
 
32
- ## 运行命令
38
+ ## 使用方式
33
39
 
34
- ### 首次运行前安装依赖
35
- `npm install` 或 `cnpm install`
36
-
37
- ### 打包编译项目
38
- 运行`npm run build`来构建项目。
40
+ 使用 Node 环境下的现代 web 前端技术栈时,可以使用 npm 或 cnpm 或 yarn 等方式来安装 mars3d 插件包
41
+
42
+ ```sh
43
+ //安装mars3d主库
44
+ npm install mars3d --save
45
+
46
+ //安装mars3d插件(按需安装)
47
+ npm install mars3d-tdt --save
48
+ ```
49
+
50
+
51
+ 安装后在mars3d引入后,引入一次插件即可
52
+
53
+ ```js
54
+ //导入mars3d主库
55
+ import "mars3d/dist/mars3d.css";
56
+ import * as mars3d from "mars3d";
57
+
58
+ //导入mars3d插件 [在mars3d引入后]
59
+ import "mars3d-tdt";
60
+ ```
61
+
62
+ > 关于引入后的具体如何使用,请参考教程[在项目中集成 Mars3D](http://mars3d.cn/dev/guide/start/import.html)中了解更多信息。
39
63
 
40
64
 
41
65
 
42
66
  ## 相关依赖
43
- 核心依赖库:Cesium、mars3d
67
+ 核心依赖库:mars3d
44
68
 
45
69
 
46
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mars3d-tdt",
3
- "version": "3.4.1",
3
+ "version": "3.4.2",
4
4
  "description": "Mars3D平台插件,支持对天地图三维地名服务和地形服务加载使用",
5
5
  "main": "dist/mars3d-tdt.js",
6
6
  "files": [
@@ -10,7 +10,7 @@
10
10
  "bytebuffer": "^5.0.1"
11
11
  },
12
12
  "devDependencies": {
13
- "mars3d": "^3.4.1"
13
+ "mars3d": "^3.4.2"
14
14
  },
15
15
  "scripts": {
16
16
  "lint": "eslint ./src/**/*.{js,ts} --fix"