mars3d-tdt 3.1.22 → 3.2.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.
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.1.21, hash值: e3d2efe62f38b7b58de7
4
- * 编译日期:2022-01-08 18:22:07
2
+ * Mars3D平台插件,支持对天地图三维地名服务和地形服务加载使用
3
+ * 版本信息:v3.2.2, hash值: 9bea514a0ddcf4855ebe
4
+ * 编译日期:2022-02-19 13:43:55
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,65 +98,46 @@ 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
 
117
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
118
- module.exports = _typeof = function _typeof(obj) {
119
- return typeof obj;
120
- };
121
-
122
- module.exports["default"] = module.exports, module.exports.__esModule = true;
123
- } else {
124
- module.exports = _typeof = function _typeof(obj) {
125
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
126
- };
127
-
128
- module.exports["default"] = module.exports, module.exports.__esModule = true;
129
- }
130
-
131
- return _typeof(obj);
111
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
112
+ return typeof obj;
113
+ } : function (obj) {
114
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
115
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
132
116
  }
133
117
 
134
- module.exports = _typeof;
135
- module.exports["default"] = module.exports, module.exports.__esModule = true;
118
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
136
119
 
137
120
  /***/ }),
138
- /* 2 */
121
+ /* 1 */
139
122
  /***/ (function(module, exports) {
140
123
 
141
- module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
124
+ module.exports = __WEBPACK_EXTERNAL_MODULE__1__;
142
125
 
143
126
  /***/ }),
144
- /* 3 */
127
+ /* 2 */
145
128
  /***/ (function(module, exports) {
146
129
 
147
130
  function _getPrototypeOf(o) {
148
131
  module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
149
132
  return o.__proto__ || Object.getPrototypeOf(o);
150
- };
151
- module.exports["default"] = module.exports, module.exports.__esModule = true;
133
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
152
134
  return _getPrototypeOf(o);
153
135
  }
154
136
 
155
- module.exports = _getPrototypeOf;
156
- module.exports["default"] = module.exports, module.exports.__esModule = true;
137
+ module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
157
138
 
158
139
  /***/ }),
159
- /* 4 */
140
+ /* 3 */
160
141
  /***/ (function(module, exports) {
161
142
 
162
143
  function _classCallCheck(instance, Constructor) {
@@ -165,40 +146,66 @@ function _classCallCheck(instance, Constructor) {
165
146
  }
166
147
  }
167
148
 
168
- module.exports = _classCallCheck;
169
- module.exports["default"] = module.exports, module.exports.__esModule = true;
149
+ module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
150
+
151
+ /***/ }),
152
+ /* 4 */
153
+ /***/ (function(module, exports) {
154
+
155
+ function _defineProperties(target, props) {
156
+ for (var i = 0; i < props.length; i++) {
157
+ var descriptor = props[i];
158
+ descriptor.enumerable = descriptor.enumerable || false;
159
+ descriptor.configurable = true;
160
+ if ("value" in descriptor) descriptor.writable = true;
161
+ Object.defineProperty(target, descriptor.key, descriptor);
162
+ }
163
+ }
164
+
165
+ function _createClass(Constructor, protoProps, staticProps) {
166
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
167
+ if (staticProps) _defineProperties(Constructor, staticProps);
168
+ Object.defineProperty(Constructor, "prototype", {
169
+ writable: false
170
+ });
171
+ return Constructor;
172
+ }
173
+
174
+ module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
170
175
 
171
176
  /***/ }),
172
177
  /* 5 */
173
178
  /***/ (function(module, exports, __webpack_require__) {
174
179
 
175
- var setPrototypeOf = __webpack_require__(10);
180
+ var setPrototypeOf = __webpack_require__(9);
176
181
 
177
182
  function _inherits(subClass, superClass) {
178
183
  if (typeof superClass !== "function" && superClass !== null) {
179
184
  throw new TypeError("Super expression must either be null or a function");
180
185
  }
181
186
 
182
- subClass.prototype = Object.create(superClass && superClass.prototype, {
183
- constructor: {
184
- value: subClass,
185
- writable: true,
186
- configurable: true
187
- }
187
+ Object.defineProperty(subClass, "prototype", {
188
+ value: Object.create(superClass && superClass.prototype, {
189
+ constructor: {
190
+ value: subClass,
191
+ writable: true,
192
+ configurable: true
193
+ }
194
+ }),
195
+ writable: false
188
196
  });
189
197
  if (superClass) setPrototypeOf(subClass, superClass);
190
198
  }
191
199
 
192
- module.exports = _inherits;
193
- module.exports["default"] = module.exports, module.exports.__esModule = true;
200
+ module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
194
201
 
195
202
  /***/ }),
196
203
  /* 6 */
197
204
  /***/ (function(module, exports, __webpack_require__) {
198
205
 
199
- var _typeof = __webpack_require__(1)["default"];
206
+ var _typeof = __webpack_require__(0)["default"];
200
207
 
201
- var assertThisInitialized = __webpack_require__(11);
208
+ var assertThisInitialized = __webpack_require__(10);
202
209
 
203
210
  function _possibleConstructorReturn(self, call) {
204
211
  if (call && (_typeof(call) === "object" || typeof call === "function")) {
@@ -210,8 +217,7 @@ function _possibleConstructorReturn(self, call) {
210
217
  return assertThisInitialized(self);
211
218
  }
212
219
 
213
- module.exports = _possibleConstructorReturn;
214
- module.exports["default"] = module.exports, module.exports.__esModule = true;
220
+ module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
215
221
 
216
222
  /***/ }),
217
223
  /* 7 */
@@ -232,43 +238,20 @@ function _defineProperty(obj, key, value) {
232
238
  return obj;
233
239
  }
234
240
 
235
- module.exports = _defineProperty;
236
- module.exports["default"] = module.exports, module.exports.__esModule = true;
241
+ module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
237
242
 
238
243
  /***/ }),
239
244
  /* 8 */
240
- /***/ (function(module, exports) {
241
-
242
- function _defineProperties(target, props) {
243
- for (var i = 0; i < props.length; i++) {
244
- var descriptor = props[i];
245
- descriptor.enumerable = descriptor.enumerable || false;
246
- descriptor.configurable = true;
247
- if ("value" in descriptor) descriptor.writable = true;
248
- Object.defineProperty(target, descriptor.key, descriptor);
249
- }
250
- }
251
-
252
- function _createClass(Constructor, protoProps, staticProps) {
253
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
254
- if (staticProps) _defineProperties(Constructor, staticProps);
255
- return Constructor;
256
- }
257
-
258
- module.exports = _createClass;
259
- module.exports["default"] = module.exports, module.exports.__esModule = true;
260
-
261
- /***/ }),
262
- /* 9 */
263
245
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
264
246
 
265
247
  "use strict";
266
- /* 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);
267
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__);
268
- /* harmony import */ var cesium__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
269
- /* 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__);
270
252
 
271
253
 
254
+ var Cesium = mars3d__WEBPACK_IMPORTED_MODULE_1__["Cesium"];
272
255
  !function (e, t) {
273
256
  t();
274
257
  }(window, function () {
@@ -20799,7 +20782,7 @@ module.exports["default"] = module.exports, module.exports.__esModule = true;
20799
20782
  return e;
20800
20783
  });
20801
20784
  var i = t,
20802
- r = cesium__WEBPACK_IMPORTED_MODULE_1__,
20785
+ r = Cesium,
20803
20786
  n = r[P("0x10")],
20804
20787
  o = r[P("0x11")],
20805
20788
  a = r[P("0x12")],
@@ -20825,7 +20808,7 @@ module.exports["default"] = module.exports, module.exports.__esModule = true;
20825
20808
  E = r[P("0x22")],
20826
20809
  S = r.SceneTransforms,
20827
20810
  T = r.TweenCollection,
20828
- L = cesium__WEBPACK_IMPORTED_MODULE_1__[P("0x23")];
20811
+ L = Cesium[P("0x23")];
20829
20812
 
20830
20813
  function R(e) {
20831
20814
  if (!l(e)) throw new u(P("0x24"));
@@ -20838,7 +20821,7 @@ module.exports["default"] = module.exports, module.exports.__esModule = true;
20838
20821
  }], this[P("0x39")] = {
20839
20822
  eventType: I[P("0x32")],
20840
20823
  modifier: g[P("0x3a")]
20841
- }, 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;
20842
20825
  var t = e.mapProjection;
20843
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;
20844
20827
  }
@@ -20937,17 +20920,17 @@ module.exports["default"] = module.exports, module.exports.__esModule = true;
20937
20920
  s = n[P("0x7e")],
20938
20921
  x = n.canvas;
20939
20922
  if (1.5 <= Math.abs(s[P("0x80")]) && (s[P("0x7f")] <= 0.25 || 6.03 <= s[P("0x7f")])) return !1;
20940
- var l = s.pickEllipsoid(new cesium__WEBPACK_IMPORTED_MODULE_1__[P("0x10")](0, x.clientHeight), o, i),
20941
- 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);
20942
20925
  if (l && c && Math[P("0x78")](l.x - c.x) < 8e4 && Math[P("0x78")](l.y - c.y) < 8e4) return !1;
20943
- var u = new cesium__WEBPACK_IMPORTED_MODULE_1__[P("0x1e")]();
20926
+ var u = new Cesium[P("0x1e")]();
20944
20927
  u = s[P("0x86")](t, u);
20945
20928
  var h = n[P("0xa3")][P("0xa4")](u, n);
20946
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;
20947
- var f = o[P("0xa7")](s[P("0x91")], new cesium__WEBPACK_IMPORTED_MODULE_1__[P("0x11")]()),
20948
- 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));
20949
20932
  return s[P("0xa8")](d, {
20950
- 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)),
20951
20934
  duration: 0
20952
20935
  }), !0;
20953
20936
  }(e, t))) {
@@ -21769,7 +21752,7 @@ module.exports["default"] = module.exports, module.exports.__esModule = true;
21769
21752
  }(this, (Qt[P("0xc")] || Object[P("0xf9")](Qt))[P("0xfa")](this, e));
21770
21753
  }
21771
21754
 
21772
- 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);
21773
21756
  }), (T = window.Cesium) && (T[P("0x45")] = {
21774
21757
  GeoCamera: !0,
21775
21758
  GeoCameraEventAggregator: !0,
@@ -22678,7 +22661,7 @@ module.exports["default"] = module.exports, module.exports.__esModule = true;
22678
22661
  h = W[P("0x1d2")].getBezierPoints(h);
22679
22662
  var m = f[P("0x1c6")](d, p, u, h),
22680
22663
  b = R[P("0x1cd")][P("0x1d7")](m);
22681
- 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);
22682
22665
  }
22683
22666
 
22684
22667
  return t;
@@ -22777,7 +22760,7 @@ module.exports["default"] = module.exports, module.exports.__esModule = true;
22777
22760
  g[P("0x17c")](s);
22778
22761
  var p,
22779
22762
  m = [n][P("0x1c6")](f.slice(d / 2, d));
22780
- 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);
22781
22764
  }
22782
22765
 
22783
22766
  return t;
@@ -39319,8 +39302,8 @@ module.exports["default"] = module.exports, module.exports.__esModule = true;
39319
39302
 
39320
39303
  return t[P("0x7ca")]("&");
39321
39304
  };
39322
- }(window[P("0xfd")]), 1.5 <= cesium__WEBPACK_IMPORTED_MODULE_1__[P("0x373")] || 1.5 <= cesium__WEBPACK_IMPORTED_MODULE_1__["VERSION"][P("0x987")](0, 4)) {
39323
- 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")], {
39324
39307
  _cachedGltf: {
39325
39308
  set: function set(e) {
39326
39309
  this[P("0xf4e")] = e, this[P("0xf4e")] && this._vtxf_cachedGltf[P("0x4df")] && function (e) {
@@ -40579,24 +40562,21 @@ module.exports["default"] = module.exports, module.exports.__esModule = true;
40579
40562
  });
40580
40563
 
40581
40564
  /***/ }),
40582
- /* 10 */
40565
+ /* 9 */
40583
40566
  /***/ (function(module, exports) {
40584
40567
 
40585
40568
  function _setPrototypeOf(o, p) {
40586
40569
  module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
40587
40570
  o.__proto__ = p;
40588
40571
  return o;
40589
- };
40590
-
40591
- module.exports["default"] = module.exports, module.exports.__esModule = true;
40572
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
40592
40573
  return _setPrototypeOf(o, p);
40593
40574
  }
40594
40575
 
40595
- module.exports = _setPrototypeOf;
40596
- module.exports["default"] = module.exports, module.exports.__esModule = true;
40576
+ module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
40597
40577
 
40598
40578
  /***/ }),
40599
- /* 11 */
40579
+ /* 10 */
40600
40580
  /***/ (function(module, exports) {
40601
40581
 
40602
40582
  function _assertThisInitialized(self) {
@@ -40607,11 +40587,10 @@ function _assertThisInitialized(self) {
40607
40587
  return self;
40608
40588
  }
40609
40589
 
40610
- module.exports = _assertThisInitialized;
40611
- module.exports["default"] = module.exports, module.exports.__esModule = true;
40590
+ module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
40612
40591
 
40613
40592
  /***/ }),
40614
- /* 12 */
40593
+ /* 11 */
40615
40594
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
40616
40595
 
40617
40596
  "use strict";
@@ -40622,39 +40601,36 @@ __webpack_require__.r(__webpack_exports__);
40622
40601
  __webpack_require__.d(__webpack_exports__, "TdtDmLayer", function() { return /* reexport */ TdtDmLayer_TdtDmLayer; });
40623
40602
  __webpack_require__.d(__webpack_exports__, "TdtTerrainProvider", function() { return /* reexport */ TdtTerrainProvider_TdtTerrainProvider; });
40624
40603
 
40625
- // EXTERNAL MODULE: external {"commonjs2":"mars3d-cesium","amd":"mars3d-cesium","commonjs":"mars3d-cesium","root":"Cesium"}
40626
- 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);
40627
40606
 
40628
40607
  // EXTERNAL MODULE: ./src/tdt/lib/cesiumTdt.js
40629
- var cesiumTdt = __webpack_require__(9);
40608
+ var cesiumTdt = __webpack_require__(8);
40630
40609
 
40631
- // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/defineProperty.js
40610
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js
40632
40611
  var defineProperty = __webpack_require__(7);
40633
40612
  var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
40634
40613
 
40635
- // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/classCallCheck.js
40636
- var classCallCheck = __webpack_require__(4);
40614
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/classCallCheck.js
40615
+ var classCallCheck = __webpack_require__(3);
40637
40616
  var classCallCheck_default = /*#__PURE__*/__webpack_require__.n(classCallCheck);
40638
40617
 
40639
- // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/createClass.js
40640
- var createClass = __webpack_require__(8);
40618
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/createClass.js
40619
+ var createClass = __webpack_require__(4);
40641
40620
  var createClass_default = /*#__PURE__*/__webpack_require__.n(createClass);
40642
40621
 
40643
- // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/inherits.js
40622
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/inherits.js
40644
40623
  var inherits = __webpack_require__(5);
40645
40624
  var inherits_default = /*#__PURE__*/__webpack_require__.n(inherits);
40646
40625
 
40647
- // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/possibleConstructorReturn.js
40626
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
40648
40627
  var possibleConstructorReturn = __webpack_require__(6);
40649
40628
  var possibleConstructorReturn_default = /*#__PURE__*/__webpack_require__.n(possibleConstructorReturn);
40650
40629
 
40651
- // EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/getPrototypeOf.js
40652
- var getPrototypeOf = __webpack_require__(3);
40630
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/getPrototypeOf.js
40631
+ var getPrototypeOf = __webpack_require__(2);
40653
40632
  var getPrototypeOf_default = /*#__PURE__*/__webpack_require__.n(getPrototypeOf);
40654
40633
 
40655
- // EXTERNAL MODULE: external "mars3d"
40656
- var external_mars3d_ = __webpack_require__(2);
40657
-
40658
40634
  // CONCATENATED MODULE: ./src/tdt/layer/TdtDmLayer.js
40659
40635
 
40660
40636
 
@@ -40663,16 +40639,16 @@ var external_mars3d_ = __webpack_require__(2);
40663
40639
 
40664
40640
 
40665
40641
 
40666
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
40642
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
40667
40643
 
40668
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { defineProperty_default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
40644
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { defineProperty_default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
40669
40645
 
40670
40646
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf_default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf_default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn_default()(this, result); }; }
40671
40647
 
40672
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; } }
40673
40649
 
40674
40650
 
40675
-
40651
+ var Cesium = external_mars3d_["Cesium"];
40676
40652
  var BaseLayer = external_mars3d_["layer"].BaseLayer;
40677
40653
  /**
40678
40654
  * 天地图 三维地名服务图层
@@ -40690,10 +40666,10 @@ var BaseLayer = external_mars3d_["layer"].BaseLayer;
40690
40666
  * @param {Object} [options.center] 图层自定义定位视角 {@link Map#setCameraView}
40691
40667
  * @param {Number} options.center.lng 经度值, 180 - 180
40692
40668
  * @param {Number} options.center.lat 纬度值, -90 - 90
40693
- * @param {Number} options.center.alt 高度值
40694
- * @param {Number} options.center.heading 方向角度值,绕垂直于地心的轴旋转角度, 0-360
40695
- * @param {Number} options.center.pitch 俯仰角度值,绕纬度线旋转角度, 0-360
40696
- * @param {Number} options.center.roll 翻滚角度值,绕经度线旋转角度, 0-360
40669
+ * @param {Number} [options.center.alt] 高度值
40670
+ * @param {Number} [options.center.heading] 方向角度值,绕垂直于地心的轴旋转角度, 0-360
40671
+ * @param {Number} [options.center.pitch] 俯仰角度值,绕纬度线旋转角度, 0-360
40672
+ * @param {Number} [options.center.roll] 翻滚角度值,绕经度线旋转角度, 0-360
40697
40673
  * @param {Boolean} [options.flyTo] 加载完成数据后是否自动飞行定位到数据所在的区域。
40698
40674
  * @export
40699
40675
  * @class TdtDmLayer
@@ -40728,19 +40704,19 @@ var TdtDmLayer_TdtDmLayer = /*#__PURE__*/function (_BaseLayer) {
40728
40704
 
40729
40705
  if (Array.isArray(this.options.subdomains)) {
40730
40706
  subdomains = this.options.subdomains.slice();
40731
- } 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) {
40732
40708
  subdomains = this.options.subdomains.split("");
40733
40709
  } else {
40734
40710
  subdomains = ["0", "1", "2", "3", "4", "5", "6", "7"];
40735
40711
  }
40736
40712
 
40737
- if (!external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["GeoWTFS"]) {
40713
+ if (!Cesium.GeoWTFS) {
40738
40714
  console.error("请确认正确引入天地图官方提供的cesiumTdt.js文件,并确认无冲突!");
40739
40715
  return;
40740
40716
  } // 叠加三维地名服务
40741
40717
 
40742
40718
 
40743
- 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), {}, {
40744
40720
  viewer: this._map.viewer,
40745
40721
  subdomains: subdomains,
40746
40722
  metadata: {
@@ -40762,26 +40738,26 @@ var TdtDmLayer_TdtDmLayer = /*#__PURE__*/function (_BaseLayer) {
40762
40738
  labelGraphics: {
40763
40739
  font: "28px sans-serif",
40764
40740
  fontSize: 28,
40765
- fillColor: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["Color"].WHITE,
40741
+ fillColor: Cesium.Color.WHITE,
40766
40742
  scale: 0.5,
40767
- outlineColor: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["Color"].BLACK,
40743
+ outlineColor: Cesium.Color.BLACK,
40768
40744
  outlineWidth: 5,
40769
- style: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["LabelStyle"].FILL_AND_OUTLINE,
40745
+ style: Cesium.LabelStyle.FILL_AND_OUTLINE,
40770
40746
  showBackground: false,
40771
- backgroundColor: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["Color"].RED,
40772
- backgroundPadding: new external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["Cartesian2"](10, 10),
40773
- horizontalOrigin: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["HorizontalOrigin"].MIDDLE,
40774
- verticalOrigin: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["VerticalOrigin"].TOP,
40775
- eyeOffset: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["Cartesian3"].ZERO,
40776
- 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)
40777
40753
  },
40778
40754
  billboardGraphics: {
40779
- horizontalOrigin: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["HorizontalOrigin"].CENTER,
40780
- verticalOrigin: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["VerticalOrigin"].CENTER,
40781
- eyeOffset: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["Cartesian3"].ZERO,
40782
- pixelOffset: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["Cartesian2"].ZERO,
40783
- alignedAxis: external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["Cartesian3"].ZERO,
40784
- 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,
40785
40761
  rotation: 0,
40786
40762
  scale: 1,
40787
40763
  width: 18,
@@ -41008,12 +40984,13 @@ external_mars3d_["layer"].register("tdt_dm", TdtDmLayer_TdtDmLayer);
41008
40984
 
41009
40985
 
41010
40986
 
40987
+
41011
40988
  function TdtTerrainProvider_createSuper(Derived) { var hasNativeReflectConstruct = TdtTerrainProvider_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf_default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf_default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn_default()(this, result); }; }
41012
40989
 
41013
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; } }
41014
40991
 
41015
40992
 
41016
-
40993
+ var TdtTerrainProvider_Cesium = external_mars3d_["Cesium"];
41017
40994
  /**
41018
40995
  * 天地图 地形服务
41019
40996
  * 【需要引入 mars3d-tdt 插件库】
@@ -41045,7 +41022,7 @@ var TdtTerrainProvider_TdtTerrainProvider = /*#__PURE__*/function (_Cesium$GeoTe
41045
41022
 
41046
41023
  if (Array.isArray(options.subdomains)) {
41047
41024
  subdomains = options.subdomains.slice();
41048
- } 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) {
41049
41026
  subdomains = options.subdomains.split("");
41050
41027
  } else {
41051
41028
  subdomains = ["0", "1", "2", "3", "4", "5", "6", "7"];
@@ -41064,12 +41041,13 @@ var TdtTerrainProvider_TdtTerrainProvider = /*#__PURE__*/function (_Cesium$GeoTe
41064
41041
  return _super.call(this, options);
41065
41042
  }
41066
41043
 
41067
- return TdtTerrainProvider;
41068
- }(external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["GeoTerrainProvider"]);
41044
+ return createClass_default()(TdtTerrainProvider);
41045
+ }(TdtTerrainProvider_Cesium.GeoTerrainProvider);
41069
41046
  external_mars3d_["LayerUtil"].registerTerrainProvider("tdt", TdtTerrainProvider_TdtTerrainProvider);
41070
41047
  external_mars3d_["provider"].TdtTerrainProvider = TdtTerrainProvider_TdtTerrainProvider;
41071
41048
  // CONCATENATED MODULE: ./src/index.js
41072
41049
 
41050
+ var src_Cesium = external_mars3d_["Cesium"];
41073
41051
 
41074
41052
 
41075
41053