mars3d-tdt 3.1.18 → 3.1.23
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/dist/mars3d-tdt-src.js +88 -73
- package/dist/mars3d-tdt-src.js.map +1 -1
- package/dist/mars3d-tdt.js +6 -6
- package/package.json +3 -3
package/dist/mars3d-tdt-src.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Mars3D平台插件, 支持对 天地图三维地名服务和地形服务加载使用
|
|
3
|
-
* 版本信息:v3.1.
|
|
4
|
-
* 编译日期:
|
|
3
|
+
* 版本信息:v3.1.23, hash值: b9fcf0abc3d94bf2dce0
|
|
4
|
+
* 编译日期:2022-01-21 10:32:35
|
|
5
5
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
@@ -114,14 +114,25 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__0__;
|
|
|
114
114
|
function _typeof(obj) {
|
|
115
115
|
"@babel/helpers - typeof";
|
|
116
116
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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);
|
|
122
132
|
}
|
|
123
133
|
|
|
124
|
-
module.exports = _typeof
|
|
134
|
+
module.exports = _typeof;
|
|
135
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
125
136
|
|
|
126
137
|
/***/ }),
|
|
127
138
|
/* 2 */
|
|
@@ -136,11 +147,13 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
|
136
147
|
function _getPrototypeOf(o) {
|
|
137
148
|
module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
138
149
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
139
|
-
}
|
|
150
|
+
};
|
|
151
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
140
152
|
return _getPrototypeOf(o);
|
|
141
153
|
}
|
|
142
154
|
|
|
143
|
-
module.exports = _getPrototypeOf
|
|
155
|
+
module.exports = _getPrototypeOf;
|
|
156
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
144
157
|
|
|
145
158
|
/***/ }),
|
|
146
159
|
/* 4 */
|
|
@@ -152,35 +165,11 @@ function _classCallCheck(instance, Constructor) {
|
|
|
152
165
|
}
|
|
153
166
|
}
|
|
154
167
|
|
|
155
|
-
module.exports = _classCallCheck
|
|
168
|
+
module.exports = _classCallCheck;
|
|
169
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
156
170
|
|
|
157
171
|
/***/ }),
|
|
158
172
|
/* 5 */
|
|
159
|
-
/***/ (function(module, exports) {
|
|
160
|
-
|
|
161
|
-
function _defineProperties(target, props) {
|
|
162
|
-
for (var i = 0; i < props.length; i++) {
|
|
163
|
-
var descriptor = props[i];
|
|
164
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
165
|
-
descriptor.configurable = true;
|
|
166
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
167
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
172
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
173
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
174
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
175
|
-
writable: false
|
|
176
|
-
});
|
|
177
|
-
return Constructor;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
181
|
-
|
|
182
|
-
/***/ }),
|
|
183
|
-
/* 6 */
|
|
184
173
|
/***/ (function(module, exports, __webpack_require__) {
|
|
185
174
|
|
|
186
175
|
var setPrototypeOf = __webpack_require__(10);
|
|
@@ -190,23 +179,21 @@ function _inherits(subClass, superClass) {
|
|
|
190
179
|
throw new TypeError("Super expression must either be null or a function");
|
|
191
180
|
}
|
|
192
181
|
|
|
193
|
-
Object.
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
}),
|
|
201
|
-
writable: false
|
|
182
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
183
|
+
constructor: {
|
|
184
|
+
value: subClass,
|
|
185
|
+
writable: true,
|
|
186
|
+
configurable: true
|
|
187
|
+
}
|
|
202
188
|
});
|
|
203
189
|
if (superClass) setPrototypeOf(subClass, superClass);
|
|
204
190
|
}
|
|
205
191
|
|
|
206
|
-
module.exports = _inherits
|
|
192
|
+
module.exports = _inherits;
|
|
193
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
207
194
|
|
|
208
195
|
/***/ }),
|
|
209
|
-
/*
|
|
196
|
+
/* 6 */
|
|
210
197
|
/***/ (function(module, exports, __webpack_require__) {
|
|
211
198
|
|
|
212
199
|
var _typeof = __webpack_require__(1)["default"];
|
|
@@ -223,10 +210,11 @@ function _possibleConstructorReturn(self, call) {
|
|
|
223
210
|
return assertThisInitialized(self);
|
|
224
211
|
}
|
|
225
212
|
|
|
226
|
-
module.exports = _possibleConstructorReturn
|
|
213
|
+
module.exports = _possibleConstructorReturn;
|
|
214
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
227
215
|
|
|
228
216
|
/***/ }),
|
|
229
|
-
/*
|
|
217
|
+
/* 7 */
|
|
230
218
|
/***/ (function(module, exports) {
|
|
231
219
|
|
|
232
220
|
function _defineProperty(obj, key, value) {
|
|
@@ -244,7 +232,31 @@ function _defineProperty(obj, key, value) {
|
|
|
244
232
|
return obj;
|
|
245
233
|
}
|
|
246
234
|
|
|
247
|
-
module.exports = _defineProperty
|
|
235
|
+
module.exports = _defineProperty;
|
|
236
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
237
|
+
|
|
238
|
+
/***/ }),
|
|
239
|
+
/* 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;
|
|
248
260
|
|
|
249
261
|
/***/ }),
|
|
250
262
|
/* 9 */
|
|
@@ -40574,11 +40586,14 @@ function _setPrototypeOf(o, p) {
|
|
|
40574
40586
|
module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
40575
40587
|
o.__proto__ = p;
|
|
40576
40588
|
return o;
|
|
40577
|
-
}
|
|
40589
|
+
};
|
|
40590
|
+
|
|
40591
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
40578
40592
|
return _setPrototypeOf(o, p);
|
|
40579
40593
|
}
|
|
40580
40594
|
|
|
40581
|
-
module.exports = _setPrototypeOf
|
|
40595
|
+
module.exports = _setPrototypeOf;
|
|
40596
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
40582
40597
|
|
|
40583
40598
|
/***/ }),
|
|
40584
40599
|
/* 11 */
|
|
@@ -40592,7 +40607,8 @@ function _assertThisInitialized(self) {
|
|
|
40592
40607
|
return self;
|
|
40593
40608
|
}
|
|
40594
40609
|
|
|
40595
|
-
module.exports = _assertThisInitialized
|
|
40610
|
+
module.exports = _assertThisInitialized;
|
|
40611
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
40596
40612
|
|
|
40597
40613
|
/***/ }),
|
|
40598
40614
|
/* 12 */
|
|
@@ -40612,27 +40628,27 @@ var external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_ro
|
|
|
40612
40628
|
// EXTERNAL MODULE: ./src/tdt/lib/cesiumTdt.js
|
|
40613
40629
|
var cesiumTdt = __webpack_require__(9);
|
|
40614
40630
|
|
|
40615
|
-
// EXTERNAL MODULE: ./node_modules
|
|
40616
|
-
var defineProperty = __webpack_require__(
|
|
40631
|
+
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/defineProperty.js
|
|
40632
|
+
var defineProperty = __webpack_require__(7);
|
|
40617
40633
|
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
|
40618
40634
|
|
|
40619
|
-
// EXTERNAL MODULE: ./node_modules
|
|
40635
|
+
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/classCallCheck.js
|
|
40620
40636
|
var classCallCheck = __webpack_require__(4);
|
|
40621
40637
|
var classCallCheck_default = /*#__PURE__*/__webpack_require__.n(classCallCheck);
|
|
40622
40638
|
|
|
40623
|
-
// EXTERNAL MODULE: ./node_modules
|
|
40624
|
-
var createClass = __webpack_require__(
|
|
40639
|
+
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/createClass.js
|
|
40640
|
+
var createClass = __webpack_require__(8);
|
|
40625
40641
|
var createClass_default = /*#__PURE__*/__webpack_require__.n(createClass);
|
|
40626
40642
|
|
|
40627
|
-
// EXTERNAL MODULE: ./node_modules
|
|
40628
|
-
var inherits = __webpack_require__(
|
|
40643
|
+
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/inherits.js
|
|
40644
|
+
var inherits = __webpack_require__(5);
|
|
40629
40645
|
var inherits_default = /*#__PURE__*/__webpack_require__.n(inherits);
|
|
40630
40646
|
|
|
40631
|
-
// EXTERNAL MODULE: ./node_modules
|
|
40632
|
-
var possibleConstructorReturn = __webpack_require__(
|
|
40647
|
+
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/possibleConstructorReturn.js
|
|
40648
|
+
var possibleConstructorReturn = __webpack_require__(6);
|
|
40633
40649
|
var possibleConstructorReturn_default = /*#__PURE__*/__webpack_require__.n(possibleConstructorReturn);
|
|
40634
40650
|
|
|
40635
|
-
// EXTERNAL MODULE: ./node_modules
|
|
40651
|
+
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/getPrototypeOf.js
|
|
40636
40652
|
var getPrototypeOf = __webpack_require__(3);
|
|
40637
40653
|
var getPrototypeOf_default = /*#__PURE__*/__webpack_require__.n(getPrototypeOf);
|
|
40638
40654
|
|
|
@@ -40647,9 +40663,9 @@ var external_mars3d_ = __webpack_require__(2);
|
|
|
40647
40663
|
|
|
40648
40664
|
|
|
40649
40665
|
|
|
40650
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly
|
|
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; }
|
|
40651
40667
|
|
|
40652
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source =
|
|
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; }
|
|
40653
40669
|
|
|
40654
40670
|
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); }; }
|
|
40655
40671
|
|
|
@@ -40661,7 +40677,7 @@ var BaseLayer = external_mars3d_["layer"].BaseLayer;
|
|
|
40661
40677
|
/**
|
|
40662
40678
|
* 天地图 三维地名服务图层
|
|
40663
40679
|
* 【需要引入 mars3d-tdt 插件库】
|
|
40664
|
-
* @param {Object} options 参数对象,包括以下:
|
|
40680
|
+
* @param {Object} [options] 参数对象,包括以下:
|
|
40665
40681
|
* @param {String} [options.url='https://t{s}.tianditu.gov.cn/mapservice/GetTiles'] 天地图服务地址
|
|
40666
40682
|
* @param {String} [options.subdomains='01234567'] 服务负载子域
|
|
40667
40683
|
* @param {String} [options.key=mars3d.Token.tianditu] 天地图服务token令牌
|
|
@@ -40674,10 +40690,10 @@ var BaseLayer = external_mars3d_["layer"].BaseLayer;
|
|
|
40674
40690
|
* @param {Object} [options.center] 图层自定义定位视角 {@link Map#setCameraView}
|
|
40675
40691
|
* @param {Number} options.center.lng 经度值, 180 - 180
|
|
40676
40692
|
* @param {Number} options.center.lat 纬度值, -90 - 90
|
|
40677
|
-
* @param {Number} options.center.alt 高度值
|
|
40678
|
-
* @param {Number} options.center.heading 方向角度值,绕垂直于地心的轴旋转角度, 0-360
|
|
40679
|
-
* @param {Number} options.center.pitch 俯仰角度值,绕纬度线旋转角度, 0-360
|
|
40680
|
-
* @param {Number} options.center.roll 翻滚角度值,绕经度线旋转角度, 0-360
|
|
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
|
|
40681
40697
|
* @param {Boolean} [options.flyTo] 加载完成数据后是否自动飞行定位到数据所在的区域。
|
|
40682
40698
|
* @export
|
|
40683
40699
|
* @class TdtDmLayer
|
|
@@ -40992,7 +41008,6 @@ external_mars3d_["layer"].register("tdt_dm", TdtDmLayer_TdtDmLayer);
|
|
|
40992
41008
|
|
|
40993
41009
|
|
|
40994
41010
|
|
|
40995
|
-
|
|
40996
41011
|
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); }; }
|
|
40997
41012
|
|
|
40998
41013
|
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; } }
|
|
@@ -41003,7 +41018,7 @@ function TdtTerrainProvider_isNativeReflectConstruct() { if (typeof Reflect ===
|
|
|
41003
41018
|
* 天地图 地形服务
|
|
41004
41019
|
* 【需要引入 mars3d-tdt 插件库】
|
|
41005
41020
|
*
|
|
41006
|
-
* @param {Object} options 参数对象,包括以下:
|
|
41021
|
+
* @param {Object} [options] 参数对象,包括以下:
|
|
41007
41022
|
* @param {String} [options.url='https://t{s}.tianditu.gov.cn/DataServer'] 天地图服务地址
|
|
41008
41023
|
* @param {String} [options.subdomains='01234567'] 服务负载子域
|
|
41009
41024
|
* @param {String} [options.key=mars3d.Token.tianditu] 天地图服务token令牌
|
|
@@ -41049,7 +41064,7 @@ var TdtTerrainProvider_TdtTerrainProvider = /*#__PURE__*/function (_Cesium$GeoTe
|
|
|
41049
41064
|
return _super.call(this, options);
|
|
41050
41065
|
}
|
|
41051
41066
|
|
|
41052
|
-
return
|
|
41067
|
+
return TdtTerrainProvider;
|
|
41053
41068
|
}(external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["GeoTerrainProvider"]);
|
|
41054
41069
|
external_mars3d_["LayerUtil"].registerTerrainProvider("tdt", TdtTerrainProvider_TdtTerrainProvider);
|
|
41055
41070
|
external_mars3d_["provider"].TdtTerrainProvider = TdtTerrainProvider_TdtTerrainProvider;
|