mars3d-tdt 3.2.0 → 3.2.1

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 CHANGED
@@ -16,6 +16,8 @@
16
16
  </p>
17
17
  Mars3D平台插件, 支持对 天地图三维地名服务和地形服务加载使用
18
18
 
19
+ ### 插件说明
20
+
19
21
  天地图三维地名服务和地形服务, 需要利用 cesium 与天地图扩展插件共同使用.
20
22
  天地图三维地名服务和三维地形服务对所有用户开放,使用本组服务之前,需要在天地图官网申请key
21
23
 
@@ -1,20 +1,20 @@
1
1
  /*!
2
- * Mars3D平台插件, 支持对 天地图三维地名服务和地形服务加载使用
3
- * 版本信息:v3.2.0, hash值: df23a3a3d8d64c80c541
4
- * 编译日期:2022-01-28 14:22:42
2
+ * Mars3D平台插件,支持对天地图三维地名服务和地形服务加载使用
3
+ * 版本信息:v3.2.1, hash值: 9bea514a0ddcf4855ebe
4
+ * 编译日期:2022-02-13 13:41:14
5
5
  * 版权所有:Copyright by 火星科技 http://mars3d.cn
6
6
  *
7
7
  */
8
8
  (function webpackUniversalModuleDefinition(root, factory) {
9
9
  if(typeof exports === 'object' && typeof module === 'object')
10
- module.exports = factory(require("mars3d-cesium"), require("mars3d"));
10
+ module.exports = factory(require("mars3d"));
11
11
  else if(typeof define === 'function' && define.amd)
12
- define("mars3dTdt", ["mars3d-cesium", "mars3d"], factory);
12
+ define("mars3dTdt", ["mars3d"], factory);
13
13
  else if(typeof exports === 'object')
14
- exports["mars3dTdt"] = factory(require("mars3d-cesium"), require("mars3d"));
14
+ exports["mars3dTdt"] = factory(require("mars3d"));
15
15
  else
16
- root["mars3dTdt"] = factory(root["Cesium"], root["mars3d"]);
17
- })(window, function(__WEBPACK_EXTERNAL_MODULE__0__, __WEBPACK_EXTERNAL_MODULE__2__) {
16
+ root["mars3dTdt"] = factory(root["mars3d"]);
17
+ })(window, function(__WEBPACK_EXTERNAL_MODULE__1__) {
18
18
  return /******/ (function(modules) { // webpackBootstrap
19
19
  /******/ // The module cache
20
20
  /******/ var installedModules = {};
@@ -98,19 +98,13 @@ return /******/ (function(modules) { // webpackBootstrap
98
98
  /******/
99
99
  /******/
100
100
  /******/ // Load entry module and return exports
101
- /******/ return __webpack_require__(__webpack_require__.s = 12);
101
+ /******/ return __webpack_require__(__webpack_require__.s = 11);
102
102
  /******/ })
103
103
  /************************************************************************/
104
104
  /******/ ([
105
105
  /* 0 */
106
106
  /***/ (function(module, exports) {
107
107
 
108
- module.exports = __WEBPACK_EXTERNAL_MODULE__0__;
109
-
110
- /***/ }),
111
- /* 1 */
112
- /***/ (function(module, exports) {
113
-
114
108
  function _typeof(obj) {
115
109
  "@babel/helpers - typeof";
116
110
 
@@ -124,13 +118,13 @@ function _typeof(obj) {
124
118
  module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
125
119
 
126
120
  /***/ }),
127
- /* 2 */
121
+ /* 1 */
128
122
  /***/ (function(module, exports) {
129
123
 
130
- module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
124
+ module.exports = __WEBPACK_EXTERNAL_MODULE__1__;
131
125
 
132
126
  /***/ }),
133
- /* 3 */
127
+ /* 2 */
134
128
  /***/ (function(module, exports) {
135
129
 
136
130
  function _getPrototypeOf(o) {
@@ -143,7 +137,7 @@ function _getPrototypeOf(o) {
143
137
  module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
144
138
 
145
139
  /***/ }),
146
- /* 4 */
140
+ /* 3 */
147
141
  /***/ (function(module, exports) {
148
142
 
149
143
  function _classCallCheck(instance, Constructor) {
@@ -155,7 +149,7 @@ function _classCallCheck(instance, Constructor) {
155
149
  module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
156
150
 
157
151
  /***/ }),
158
- /* 5 */
152
+ /* 4 */
159
153
  /***/ (function(module, exports) {
160
154
 
161
155
  function _defineProperties(target, props) {
@@ -180,10 +174,10 @@ function _createClass(Constructor, protoProps, staticProps) {
180
174
  module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
181
175
 
182
176
  /***/ }),
183
- /* 6 */
177
+ /* 5 */
184
178
  /***/ (function(module, exports, __webpack_require__) {
185
179
 
186
- var setPrototypeOf = __webpack_require__(10);
180
+ var setPrototypeOf = __webpack_require__(9);
187
181
 
188
182
  function _inherits(subClass, superClass) {
189
183
  if (typeof superClass !== "function" && superClass !== null) {
@@ -206,12 +200,12 @@ function _inherits(subClass, superClass) {
206
200
  module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
207
201
 
208
202
  /***/ }),
209
- /* 7 */
203
+ /* 6 */
210
204
  /***/ (function(module, exports, __webpack_require__) {
211
205
 
212
- var _typeof = __webpack_require__(1)["default"];
206
+ var _typeof = __webpack_require__(0)["default"];
213
207
 
214
- var assertThisInitialized = __webpack_require__(11);
208
+ var assertThisInitialized = __webpack_require__(10);
215
209
 
216
210
  function _possibleConstructorReturn(self, call) {
217
211
  if (call && (_typeof(call) === "object" || typeof call === "function")) {
@@ -226,7 +220,7 @@ function _possibleConstructorReturn(self, call) {
226
220
  module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
227
221
 
228
222
  /***/ }),
229
- /* 8 */
223
+ /* 7 */
230
224
  /***/ (function(module, exports) {
231
225
 
232
226
  function _defineProperty(obj, key, value) {
@@ -247,16 +241,17 @@ function _defineProperty(obj, key, value) {
247
241
  module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
248
242
 
249
243
  /***/ }),
250
- /* 9 */
244
+ /* 8 */
251
245
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
252
246
 
253
247
  "use strict";
254
- /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
248
+ /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
255
249
  /* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
256
- /* harmony import */ var cesium__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
257
- /* harmony import */ var cesium__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(cesium__WEBPACK_IMPORTED_MODULE_1__);
250
+ /* harmony import */ var mars3d__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
251
+ /* harmony import */ var mars3d__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(mars3d__WEBPACK_IMPORTED_MODULE_1__);
258
252
 
259
253
 
254
+ var Cesium = mars3d__WEBPACK_IMPORTED_MODULE_1__["Cesium"];
260
255
  !function (e, t) {
261
256
  t();
262
257
  }(window, function () {
@@ -20787,7 +20782,7 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
20787
20782
  return e;
20788
20783
  });
20789
20784
  var i = t,
20790
- r = cesium__WEBPACK_IMPORTED_MODULE_1__,
20785
+ r = Cesium,
20791
20786
  n = r[P("0x10")],
20792
20787
  o = r[P("0x11")],
20793
20788
  a = r[P("0x12")],
@@ -20813,7 +20808,7 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
20813
20808
  E = r[P("0x22")],
20814
20809
  S = r.SceneTransforms,
20815
20810
  T = r.TweenCollection,
20816
- L = cesium__WEBPACK_IMPORTED_MODULE_1__[P("0x23")];
20811
+ L = Cesium[P("0x23")];
20817
20812
 
20818
20813
  function R(e) {
20819
20814
  if (!l(e)) throw new u(P("0x24"));
@@ -20826,7 +20821,7 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
20826
20821
  }], this[P("0x39")] = {
20827
20822
  eventType: I[P("0x32")],
20828
20823
  modifier: g[P("0x3a")]
20829
- }, this[P("0x3b")] = 15e4, this[P("0x3c")] = this[P("0x3b")], this[P("0x3d")] = 15e3, this[P("0x3e")] = this[P("0x3d")], this[P("0x3f")] = -75e5, this[P("0x40")] = this[P("0x3f")], this[P("0x41")] = !0, this[P("0x42")] = e, this[P("0x43")] = void 0, this[P("0x44")] = void 0, cesium__WEBPACK_IMPORTED_MODULE_1__[P("0x45")] && cesium__WEBPACK_IMPORTED_MODULE_1__[P("0x45")].GeoCameraEventAggregator ? this[P("0x46")] = new cesium__WEBPACK_IMPORTED_MODULE_1__[P("0x47")](e.canvas) : this._aggregator = new A(e[P("0x48")]), this._lastInertiaSpinMovement = void 0, this._lastInertiaZoomMovement = void 0, this[P("0x49")] = void 0, this[P("0x4a")] = void 0, this._tweens = new T(), this[P("0x4b")] = void 0, this[P("0x4c")] = void 0, this[P("0x4d")] = new n(-1, -1), this._tiltCenter = new o(), this[P("0x4e")] = new n(-1, -1), this[P("0x4f")] = new o(), this[P("0x50")] = new o(), this[P("0x51")] = new n(-1, -1), this._zoomWorldPosition = new o(), this[P("0x52")] = !1, this[P("0x53")] = !1, this[P("0x54")] = !1, this[P("0x55")] = !1, this[P("0x56")] = !1, this[P("0x57")] = !1, this[P("0x58")] = !1, this._adjustedHeightForTerrain = !1;
20824
+ }, this[P("0x3b")] = 15e4, this[P("0x3c")] = this[P("0x3b")], this[P("0x3d")] = 15e3, this[P("0x3e")] = this[P("0x3d")], this[P("0x3f")] = -75e5, this[P("0x40")] = this[P("0x3f")], this[P("0x41")] = !0, this[P("0x42")] = e, this[P("0x43")] = void 0, this[P("0x44")] = void 0, Cesium[P("0x45")] && Cesium[P("0x45")].GeoCameraEventAggregator ? this[P("0x46")] = new Cesium[P("0x47")](e.canvas) : this._aggregator = new A(e[P("0x48")]), this._lastInertiaSpinMovement = void 0, this._lastInertiaZoomMovement = void 0, this[P("0x49")] = void 0, this[P("0x4a")] = void 0, this._tweens = new T(), this[P("0x4b")] = void 0, this[P("0x4c")] = void 0, this[P("0x4d")] = new n(-1, -1), this._tiltCenter = new o(), this[P("0x4e")] = new n(-1, -1), this[P("0x4f")] = new o(), this[P("0x50")] = new o(), this[P("0x51")] = new n(-1, -1), this._zoomWorldPosition = new o(), this[P("0x52")] = !1, this[P("0x53")] = !1, this[P("0x54")] = !1, this[P("0x55")] = !1, this[P("0x56")] = !1, this[P("0x57")] = !1, this[P("0x58")] = !1, this._adjustedHeightForTerrain = !1;
20830
20825
  var t = e.mapProjection;
20831
20826
  this[P("0x59")] = t[P("0x5a")](new s(Math.PI, L[P("0x5b")])), this[P("0x5c")] = 5, this[P("0x5d")] = void 0, this._rotateRateRangeAdjustment = void 0, this[P("0x5e")] = 1.77, this[P("0x5f")] = 2e-4, this._minimumZoomRate = 20, this[P("0x60")] = 5906376272e3;
20832
20827
  }
@@ -20925,17 +20920,17 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
20925
20920
  s = n[P("0x7e")],
20926
20921
  x = n.canvas;
20927
20922
  if (1.5 <= Math.abs(s[P("0x80")]) && (s[P("0x7f")] <= 0.25 || 6.03 <= s[P("0x7f")])) return !1;
20928
- var l = s.pickEllipsoid(new cesium__WEBPACK_IMPORTED_MODULE_1__[P("0x10")](0, x.clientHeight), o, i),
20929
- c = s[P("0xa2")](new cesium__WEBPACK_IMPORTED_MODULE_1__["Cartesian2"](x.clientWidth, x[P("0x7c")]), o, r);
20923
+ var l = s.pickEllipsoid(new Cesium[P("0x10")](0, x.clientHeight), o, i),
20924
+ c = s[P("0xa2")](new Cesium.Cartesian2(x.clientWidth, x[P("0x7c")]), o, r);
20930
20925
  if (l && c && Math[P("0x78")](l.x - c.x) < 8e4 && Math[P("0x78")](l.y - c.y) < 8e4) return !1;
20931
- var u = new cesium__WEBPACK_IMPORTED_MODULE_1__[P("0x1e")]();
20926
+ var u = new Cesium[P("0x1e")]();
20932
20927
  u = s[P("0x86")](t, u);
20933
20928
  var h = n[P("0xa3")][P("0xa4")](u, n);
20934
20929
  if (h || (u[P("0x87")] = s[P("0xa5")], u[P("0x93")] = s[P("0xa6")], h = n[P("0xa3")][P("0xa4")](u, n)), !h) return !0;
20935
- var f = o[P("0xa7")](s[P("0x91")], new cesium__WEBPACK_IMPORTED_MODULE_1__[P("0x11")]()),
20936
- d = (o.geodeticSurfaceNormal(h), new cesium__WEBPACK_IMPORTED_MODULE_1__["BoundingSphere"](h, 0));
20930
+ var f = o[P("0xa7")](s[P("0x91")], new Cesium[P("0x11")]()),
20931
+ d = (o.geodeticSurfaceNormal(h), new Cesium.BoundingSphere(h, 0));
20937
20932
  return s[P("0xa8")](d, {
20938
- offset: new cesium__WEBPACK_IMPORTED_MODULE_1__[P("0xa9")](0, cesium__WEBPACK_IMPORTED_MODULE_1__[P("0x23")].toRadians(-90), cesium__WEBPACK_IMPORTED_MODULE_1__["Cartesian3"].distance(f, h)),
20933
+ offset: new Cesium[P("0xa9")](0, Cesium[P("0x23")].toRadians(-90), Cesium.Cartesian3.distance(f, h)),
20939
20934
  duration: 0
20940
20935
  }), !0;
20941
20936
  }(e, t))) {
@@ -21757,7 +21752,7 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
21757
21752
  }(this, (Qt[P("0xc")] || Object[P("0xf9")](Qt))[P("0xfa")](this, e));
21758
21753
  }
21759
21754
 
21760
- window[P("0xfd")] && (cesium__WEBPACK_IMPORTED_MODULE_1__[P("0xf")] || (cesium__WEBPACK_IMPORTED_MODULE_1__[P("0xf")] = i), cesium__WEBPACK_IMPORTED_MODULE_1__["GeoScreenSpaceCameraController"] = R, cesium__WEBPACK_IMPORTED_MODULE_1__[P("0xfe")] = Kt);
21755
+ window[P("0xfd")] && (Cesium[P("0xf")] || (Cesium[P("0xf")] = i), Cesium.GeoScreenSpaceCameraController = R, Cesium[P("0xfe")] = Kt);
21761
21756
  }), (T = window.Cesium) && (T[P("0x45")] = {
21762
21757
  GeoCamera: !0,
21763
21758
  GeoCameraEventAggregator: !0,
@@ -22666,7 +22661,7 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
22666
22661
  h = W[P("0x1d2")].getBezierPoints(h);
22667
22662
  var m = f[P("0x1c6")](d, p, u, h),
22668
22663
  b = R[P("0x1cd")][P("0x1d7")](m);
22669
- t[P("0x1d8")] = [o, a, s, this.tempPoint4, this[P("0x1ce")]], t[P("0x1d9")] = cesium__WEBPACK_IMPORTED_MODULE_1__["Cartesian3"][P("0x1da")](b);
22664
+ t[P("0x1d8")] = [o, a, s, this.tempPoint4, this[P("0x1ce")]], t[P("0x1d9")] = Cesium.Cartesian3[P("0x1da")](b);
22670
22665
  }
22671
22666
 
22672
22667
  return t;
@@ -22765,7 +22760,7 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
22765
22760
  g[P("0x17c")](s);
22766
22761
  var p,
22767
22762
  m = [n][P("0x1c6")](f.slice(d / 2, d));
22768
- m[P("0x17c")](x), g = W[P("0x1d2")].getQBSplinePoints(g), m = W[P("0x1d2")][P("0x1f0")](m), p = R[P("0x1cd")][P("0x1d7")](g[P("0x1c6")](a, m[P("0x1e3")](), [this[P("0x1ed")], g[0]])), t.polygonalPoint = cesium__WEBPACK_IMPORTED_MODULE_1__["Cartesian3"][P("0x1da")](p);
22763
+ m[P("0x17c")](x), g = W[P("0x1d2")].getQBSplinePoints(g), m = W[P("0x1d2")][P("0x1f0")](m), p = R[P("0x1cd")][P("0x1d7")](g[P("0x1c6")](a, m[P("0x1e3")](), [this[P("0x1ed")], g[0]])), t.polygonalPoint = Cesium.Cartesian3[P("0x1da")](p);
22769
22764
  }
22770
22765
 
22771
22766
  return t;
@@ -39307,8 +39302,8 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
39307
39302
 
39308
39303
  return t[P("0x7ca")]("&");
39309
39304
  };
39310
- }(window[P("0xfd")]), 1.5 <= cesium__WEBPACK_IMPORTED_MODULE_1__[P("0x373")] || 1.5 <= cesium__WEBPACK_IMPORTED_MODULE_1__["VERSION"][P("0x987")](0, 4)) {
39311
- a()(cesium__WEBPACK_IMPORTED_MODULE_1__[P("0x841")][P("0x5")], {
39305
+ }(window[P("0xfd")]), 1.5 <= Cesium[P("0x373")] || 1.5 <= Cesium.VERSION[P("0x987")](0, 4)) {
39306
+ a()(Cesium[P("0x841")][P("0x5")], {
39312
39307
  _cachedGltf: {
39313
39308
  set: function set(e) {
39314
39309
  this[P("0xf4e")] = e, this[P("0xf4e")] && this._vtxf_cachedGltf[P("0x4df")] && function (e) {
@@ -40567,7 +40562,7 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
40567
40562
  });
40568
40563
 
40569
40564
  /***/ }),
40570
- /* 10 */
40565
+ /* 9 */
40571
40566
  /***/ (function(module, exports) {
40572
40567
 
40573
40568
  function _setPrototypeOf(o, p) {
@@ -40581,7 +40576,7 @@ function _setPrototypeOf(o, p) {
40581
40576
  module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
40582
40577
 
40583
40578
  /***/ }),
40584
- /* 11 */
40579
+ /* 10 */
40585
40580
  /***/ (function(module, exports) {
40586
40581
 
40587
40582
  function _assertThisInitialized(self) {
@@ -40595,7 +40590,7 @@ function _assertThisInitialized(self) {
40595
40590
  module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
40596
40591
 
40597
40592
  /***/ }),
40598
- /* 12 */
40593
+ /* 11 */
40599
40594
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
40600
40595
 
40601
40596
  "use strict";
@@ -40606,39 +40601,36 @@ __webpack_require__.r(__webpack_exports__);
40606
40601
  __webpack_require__.d(__webpack_exports__, "TdtDmLayer", function() { return /* reexport */ TdtDmLayer_TdtDmLayer; });
40607
40602
  __webpack_require__.d(__webpack_exports__, "TdtTerrainProvider", function() { return /* reexport */ TdtTerrainProvider_TdtTerrainProvider; });
40608
40603
 
40609
- // EXTERNAL MODULE: external {"commonjs2":"mars3d-cesium","amd":"mars3d-cesium","commonjs":"mars3d-cesium","root":"Cesium"}
40610
- var external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_ = __webpack_require__(0);
40604
+ // EXTERNAL MODULE: external "mars3d"
40605
+ var external_mars3d_ = __webpack_require__(1);
40611
40606
 
40612
40607
  // EXTERNAL MODULE: ./src/tdt/lib/cesiumTdt.js
40613
- var cesiumTdt = __webpack_require__(9);
40608
+ var cesiumTdt = __webpack_require__(8);
40614
40609
 
40615
40610
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js
40616
- var defineProperty = __webpack_require__(8);
40611
+ var defineProperty = __webpack_require__(7);
40617
40612
  var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
40618
40613
 
40619
40614
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/classCallCheck.js
40620
- var classCallCheck = __webpack_require__(4);
40615
+ var classCallCheck = __webpack_require__(3);
40621
40616
  var classCallCheck_default = /*#__PURE__*/__webpack_require__.n(classCallCheck);
40622
40617
 
40623
40618
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/createClass.js
40624
- var createClass = __webpack_require__(5);
40619
+ var createClass = __webpack_require__(4);
40625
40620
  var createClass_default = /*#__PURE__*/__webpack_require__.n(createClass);
40626
40621
 
40627
40622
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/inherits.js
40628
- var inherits = __webpack_require__(6);
40623
+ var inherits = __webpack_require__(5);
40629
40624
  var inherits_default = /*#__PURE__*/__webpack_require__.n(inherits);
40630
40625
 
40631
40626
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
40632
- var possibleConstructorReturn = __webpack_require__(7);
40627
+ var possibleConstructorReturn = __webpack_require__(6);
40633
40628
  var possibleConstructorReturn_default = /*#__PURE__*/__webpack_require__.n(possibleConstructorReturn);
40634
40629
 
40635
40630
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/getPrototypeOf.js
40636
- var getPrototypeOf = __webpack_require__(3);
40631
+ var getPrototypeOf = __webpack_require__(2);
40637
40632
  var getPrototypeOf_default = /*#__PURE__*/__webpack_require__.n(getPrototypeOf);
40638
40633
 
40639
- // EXTERNAL MODULE: external "mars3d"
40640
- var external_mars3d_ = __webpack_require__(2);
40641
-
40642
40634
  // CONCATENATED MODULE: ./src/tdt/layer/TdtDmLayer.js
40643
40635
 
40644
40636
 
@@ -40656,7 +40648,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
40656
40648
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
40657
40649
 
40658
40650
 
40659
-
40651
+ var Cesium = external_mars3d_["Cesium"];
40660
40652
  var BaseLayer = external_mars3d_["layer"].BaseLayer;
40661
40653
  /**
40662
40654
  * 天地图 三维地名服务图层
@@ -40712,19 +40704,19 @@ var TdtDmLayer_TdtDmLayer = /*#__PURE__*/function (_BaseLayer) {
40712
40704
 
40713
40705
  if (Array.isArray(this.options.subdomains)) {
40714
40706
  subdomains = this.options.subdomains.slice();
40715
- } else if (external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["defined"](this.options.subdomains) && this.options.subdomains.length > 0) {
40707
+ } else if (Cesium.defined(this.options.subdomains) && this.options.subdomains.length > 0) {
40716
40708
  subdomains = this.options.subdomains.split("");
40717
40709
  } else {
40718
40710
  subdomains = ["0", "1", "2", "3", "4", "5", "6", "7"];
40719
40711
  }
40720
40712
 
40721
- if (!external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["GeoWTFS"]) {
40713
+ if (!Cesium.GeoWTFS) {
40722
40714
  console.error("请确认正确引入天地图官方提供的cesiumTdt.js文件,并确认无冲突!");
40723
40715
  return;
40724
40716
  } // 叠加三维地名服务
40725
40717
 
40726
40718
 
40727
- var wtfs = new external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["GeoWTFS"](_objectSpread(_objectSpread({}, this.options), {}, {
40719
+ var wtfs = new Cesium.GeoWTFS(_objectSpread(_objectSpread({}, this.options), {}, {
40728
40720
  viewer: this._map.viewer,
40729
40721
  subdomains: subdomains,
40730
40722
  metadata: {
@@ -40746,26 +40738,26 @@ var TdtDmLayer_TdtDmLayer = /*#__PURE__*/function (_BaseLayer) {
40746
40738
  labelGraphics: {
40747
40739
  font: "28px sans-serif",
40748
40740
  fontSize: 28,
40749
- fillColor: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["Color"].WHITE,
40741
+ fillColor: Cesium.Color.WHITE,
40750
40742
  scale: 0.5,
40751
- outlineColor: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["Color"].BLACK,
40743
+ outlineColor: Cesium.Color.BLACK,
40752
40744
  outlineWidth: 5,
40753
- style: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["LabelStyle"].FILL_AND_OUTLINE,
40745
+ style: Cesium.LabelStyle.FILL_AND_OUTLINE,
40754
40746
  showBackground: false,
40755
- backgroundColor: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["Color"].RED,
40756
- backgroundPadding: new external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["Cartesian2"](10, 10),
40757
- horizontalOrigin: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["HorizontalOrigin"].MIDDLE,
40758
- verticalOrigin: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["VerticalOrigin"].TOP,
40759
- eyeOffset: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["Cartesian3"].ZERO,
40760
- pixelOffset: new external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["Cartesian2"](0, 8)
40747
+ backgroundColor: Cesium.Color.RED,
40748
+ backgroundPadding: new Cesium.Cartesian2(10, 10),
40749
+ horizontalOrigin: Cesium.HorizontalOrigin.MIDDLE,
40750
+ verticalOrigin: Cesium.VerticalOrigin.TOP,
40751
+ eyeOffset: Cesium.Cartesian3.ZERO,
40752
+ pixelOffset: new Cesium.Cartesian2(0, 8)
40761
40753
  },
40762
40754
  billboardGraphics: {
40763
- horizontalOrigin: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["HorizontalOrigin"].CENTER,
40764
- verticalOrigin: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["VerticalOrigin"].CENTER,
40765
- eyeOffset: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["Cartesian3"].ZERO,
40766
- pixelOffset: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["Cartesian2"].ZERO,
40767
- alignedAxis: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["Cartesian3"].ZERO,
40768
- color: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["Color"].WHITE,
40755
+ horizontalOrigin: Cesium.HorizontalOrigin.CENTER,
40756
+ verticalOrigin: Cesium.VerticalOrigin.CENTER,
40757
+ eyeOffset: Cesium.Cartesian3.ZERO,
40758
+ pixelOffset: Cesium.Cartesian2.ZERO,
40759
+ alignedAxis: Cesium.Cartesian3.ZERO,
40760
+ color: Cesium.Color.WHITE,
40769
40761
  rotation: 0,
40770
40762
  scale: 1,
40771
40763
  width: 18,
@@ -40998,7 +40990,7 @@ function TdtTerrainProvider_createSuper(Derived) { var hasNativeReflectConstruct
40998
40990
  function TdtTerrainProvider_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
40999
40991
 
41000
40992
 
41001
-
40993
+ var TdtTerrainProvider_Cesium = external_mars3d_["Cesium"];
41002
40994
  /**
41003
40995
  * 天地图 地形服务
41004
40996
  * 【需要引入 mars3d-tdt 插件库】
@@ -41030,7 +41022,7 @@ var TdtTerrainProvider_TdtTerrainProvider = /*#__PURE__*/function (_Cesium$GeoTe
41030
41022
 
41031
41023
  if (Array.isArray(options.subdomains)) {
41032
41024
  subdomains = options.subdomains.slice();
41033
- } else if (external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["defined"](options.subdomains) && options.subdomains.length > 0) {
41025
+ } else if (TdtTerrainProvider_Cesium.defined(options.subdomains) && options.subdomains.length > 0) {
41034
41026
  subdomains = options.subdomains.split("");
41035
41027
  } else {
41036
41028
  subdomains = ["0", "1", "2", "3", "4", "5", "6", "7"];
@@ -41050,11 +41042,12 @@ var TdtTerrainProvider_TdtTerrainProvider = /*#__PURE__*/function (_Cesium$GeoTe
41050
41042
  }
41051
41043
 
41052
41044
  return createClass_default()(TdtTerrainProvider);
41053
- }(external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["GeoTerrainProvider"]);
41045
+ }(TdtTerrainProvider_Cesium.GeoTerrainProvider);
41054
41046
  external_mars3d_["LayerUtil"].registerTerrainProvider("tdt", TdtTerrainProvider_TdtTerrainProvider);
41055
41047
  external_mars3d_["provider"].TdtTerrainProvider = TdtTerrainProvider_TdtTerrainProvider;
41056
41048
  // CONCATENATED MODULE: ./src/index.js
41057
41049
 
41050
+ var src_Cesium = external_mars3d_["Cesium"];
41058
41051
 
41059
41052
 
41060
41053