mars3d-tdt 3.5.9 → 3.5.11

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.
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Mars3D平台插件,支持对天地图三维地名服务和地形服务加载使用 mars3d-tdt
3
3
  *
4
- * 版本信息:v3.5.9
5
- * 编译日期:2023-05-29 18:00:39
4
+ * 版本信息:v3.5.11
5
+ * 编译日期:2023-06-12 21:55:04
6
6
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
7
7
  * 使用单位:免费公开版 ,2023-03-17
8
8
  */
@@ -383,7 +383,7 @@
383
383
  class TdtTerrainProvider extends Cesium.GeoTerrainProvider {
384
384
  constructor(options = {}) {
385
385
  if (!options.urls) {
386
- const baseurl = options.url || "https://t{s}.tianditu.gov.cn/DataServer";
386
+ const baseurl = options.url || "https://t{s}.tianditu.gov.cn/mapservice/swdx";
387
387
  const token = options.key || mars3d__namespace.Token.tianditu;
388
388
  let subdomains;
389
389
 
@@ -406,6 +406,7 @@
406
406
  }
407
407
 
408
408
  super(options);
409
+ this._layers = []; // 兼容 Boolean(scene.terrainProvider._layers)
409
410
  }
410
411
 
411
412
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mars3d-tdt",
3
- "version": "3.5.9",
3
+ "version": "3.5.11",
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.5.9"
13
+ "mars3d": "~3.5.11"
14
14
  },
15
15
  "scripts": {
16
16
  "lint": "eslint ./src/**/*.{js,ts} --fix"