mars3d-tdt 3.9.2 → 3.9.4
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 +2 -2
- package/mars3d-tdt.js +9 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -40,10 +40,10 @@ github地址:https://github.com/ngcc-tdt/demo/ [实际未开源,里面是
|
|
|
40
40
|
使用 Node 环境下的现代 web 前端技术栈时,可以使用 npm 或 cnpm 或 yarn 等方式来安装 mars3d 插件包
|
|
41
41
|
|
|
42
42
|
```sh
|
|
43
|
-
//安装mars3d主库
|
|
43
|
+
//安装mars3d主库(如果已安装请忽略)
|
|
44
44
|
npm install mars3d --save
|
|
45
45
|
|
|
46
|
-
//安装mars3d
|
|
46
|
+
//安装mars3d插件
|
|
47
47
|
npm install mars3d-tdt --save
|
|
48
48
|
```
|
|
49
49
|
|
package/mars3d-tdt.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Mars3D平台插件,支持对天地图三维地名服务和地形服务加载使用 mars3d-tdt
|
|
3
3
|
*
|
|
4
|
-
* 版本信息:v3.9.
|
|
5
|
-
* 编译日期:2025-03-
|
|
4
|
+
* 版本信息:v3.9.4
|
|
5
|
+
* 编译日期:2025-03-25 22:36
|
|
6
6
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
7
7
|
* 使用单位:火星科技免费公开版 ,2025-02-01
|
|
8
8
|
*/
|
|
@@ -37,6 +37,11 @@
|
|
|
37
37
|
Cesium$2.when = Cesium$2.when || {};
|
|
38
38
|
Cesium$2.when.defer = Cesium$2.defer;
|
|
39
39
|
}
|
|
40
|
+
if (!Cesium$2.defaultValue) {
|
|
41
|
+
Cesium$2.defaultValue = function (a, b) {
|
|
42
|
+
return a ?? b;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
40
45
|
(function (e) {
|
|
41
46
|
var t = {};
|
|
42
47
|
function i(r) {
|
|
@@ -4893,8 +4898,8 @@
|
|
|
4893
4898
|
if (
|
|
4894
4899
|
//GeoTerrainProvider 地形服务
|
|
4895
4900
|
function (Cesium) {
|
|
4896
|
-
var t = Cesium.GeoTerrainProvider = function (i) {
|
|
4897
|
-
if (
|
|
4901
|
+
var t = Cesium.GeoTerrainProvider = function (i = {}) {
|
|
4902
|
+
if (!Cesium["defined"](i.urls)) throw new Cesium[P("0x15")](P("0xa75"));
|
|
4898
4903
|
this[P("0xa76")] = Cesium.defaultValue(i[P("0xa77")], Cesium[P("0xa78")][P("0xa79")]), this[P("0xa7a")] = Cesium.defaultValue(i[P("0xa7b")], t[P("0xa7c")]), this[P("0xa7d")] = i[P("0xa7e")], this[P("0xa7f")] = this[P("0xa7d")].length, this[P("0xa80")] = 0, this[P("0xa81")] = 0, this[P("0xa0b")] = Cesium.defaultValue(i[P("0xa77")], Cesium[P("0xa78")][P("0xa79")]), this[P("0x9fc")] = new Cesium[P("0x766")](), this[P("0x48b")] = !1, this[P("0xa82")] = Cesium.when.defer(), this._proxy = i.proxy, this._terrainDataStructure = {
|
|
4899
4904
|
heightScale: 0.001,
|
|
4900
4905
|
heightOffset: -1e3,
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mars3d-tdt",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.4",
|
|
4
4
|
"description": "Mars3D平台插件,支持对天地图三维地名服务和地形服务加载使用",
|
|
5
5
|
"main": "./mars3d-tdt.js",
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"bytebuffer": "^5.0.1"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"mars3d": "~3.9.
|
|
10
|
+
"mars3d": "~3.9.4"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
13
|
"lint": "eslint ./src/**/*.{js,ts} --fix"
|