mars3d 3.5.8 → 3.5.10
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 +24 -0
- package/dist/mars3d.css +2 -2
- package/dist/mars3d.d.ts +384 -29
- package/dist/mars3d.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,30 @@
|
|
|
23
23
|
[**English**](./README_EN.md) |[**中文**](./README.md)
|
|
24
24
|
|
|
25
25
|
|
|
26
|
+
|
|
27
|
+
## 使用方式
|
|
28
|
+
|
|
29
|
+
使用 Node 环境下的现代 web 前端技术栈时,可以使用 npm 或 cnpm 或 yarn 等方式来安装 mars3d 插件包
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
//安装mars3d主库
|
|
33
|
+
npm install mars3d mars3d-cesium @turf/turf --save
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
安装后在mars3d引入后,引入一次插件即可
|
|
38
|
+
|
|
39
|
+
```js
|
|
40
|
+
//导入mars3d主库
|
|
41
|
+
import "mars3d-cesium/Build/Cesium/Widgets/widgets.css"
|
|
42
|
+
import "mars3d/dist/mars3d.css"
|
|
43
|
+
import * as mars3d from "mars3d";
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
> 关于引入后的具体如何使用,请参考教程[在项目中集成 Mars3D](http://mars3d.cn/dev/guide/start/import.html)中了解更多信息。
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
26
50
|
当前仓库包含SDK更新日志、和其他仓库导航。
|
|
27
51
|
|
|
28
52
|
|