mars3d-supermap 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 +1 -0
- package/dist/mars3d-supermap-src.js +105 -132
- package/dist/mars3d-supermap-src.js.map +1 -1
- package/dist/mars3d-supermap.js +5 -17
- package/package.json +29 -9
package/README.md
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Mars3D平台插件,结合supermap超图库使用的功能插件
|
|
3
|
-
* 版本信息:v3.
|
|
4
|
-
* 编译日期:2022-
|
|
3
|
+
* 版本信息:v3.2.2, hash值: 11f4ab32ebb9d97ec6fd
|
|
4
|
+
* 编译日期:2022-02-19 13:43:46
|
|
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")
|
|
10
|
+
module.exports = factory(require("mars3d"));
|
|
11
11
|
else if(typeof define === 'function' && define.amd)
|
|
12
|
-
define("mars3dSupermap", ["mars3d"
|
|
12
|
+
define("mars3dSupermap", ["mars3d"], factory);
|
|
13
13
|
else if(typeof exports === 'object')
|
|
14
|
-
exports["mars3dSupermap"] = factory(require("mars3d")
|
|
14
|
+
exports["mars3dSupermap"] = factory(require("mars3d"));
|
|
15
15
|
else
|
|
16
|
-
root["mars3dSupermap"] = factory(root["mars3d"]
|
|
17
|
-
})(window, function(__WEBPACK_EXTERNAL_MODULE__0__
|
|
16
|
+
root["mars3dSupermap"] = factory(root["mars3d"]);
|
|
17
|
+
})(window, function(__WEBPACK_EXTERNAL_MODULE__0__) {
|
|
18
18
|
return /******/ (function(modules) { // webpackBootstrap
|
|
19
19
|
/******/ // The module cache
|
|
20
20
|
/******/ var installedModules = {};
|
|
@@ -98,7 +98,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
98
98
|
/******/
|
|
99
99
|
/******/
|
|
100
100
|
/******/ // Load entry module and return exports
|
|
101
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
101
|
+
/******/ return __webpack_require__(__webpack_require__.s = 12);
|
|
102
102
|
/******/ })
|
|
103
103
|
/************************************************************************/
|
|
104
104
|
/******/ ([
|
|
@@ -111,25 +111,17 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__0__;
|
|
|
111
111
|
/* 1 */
|
|
112
112
|
/***/ (function(module, exports) {
|
|
113
113
|
|
|
114
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__1__;
|
|
115
|
-
|
|
116
|
-
/***/ }),
|
|
117
|
-
/* 2 */
|
|
118
|
-
/***/ (function(module, exports) {
|
|
119
|
-
|
|
120
114
|
function _getPrototypeOf(o) {
|
|
121
115
|
module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
122
116
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
123
|
-
};
|
|
124
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
117
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
125
118
|
return _getPrototypeOf(o);
|
|
126
119
|
}
|
|
127
120
|
|
|
128
|
-
module.exports = _getPrototypeOf;
|
|
129
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
121
|
+
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
130
122
|
|
|
131
123
|
/***/ }),
|
|
132
|
-
/*
|
|
124
|
+
/* 2 */
|
|
133
125
|
/***/ (function(module, exports) {
|
|
134
126
|
|
|
135
127
|
function _classCallCheck(instance, Constructor) {
|
|
@@ -138,11 +130,10 @@ function _classCallCheck(instance, Constructor) {
|
|
|
138
130
|
}
|
|
139
131
|
}
|
|
140
132
|
|
|
141
|
-
module.exports = _classCallCheck;
|
|
142
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
133
|
+
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
143
134
|
|
|
144
135
|
/***/ }),
|
|
145
|
-
/*
|
|
136
|
+
/* 3 */
|
|
146
137
|
/***/ (function(module, exports) {
|
|
147
138
|
|
|
148
139
|
function _defineProperties(target, props) {
|
|
@@ -158,43 +149,47 @@ function _defineProperties(target, props) {
|
|
|
158
149
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
159
150
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
160
151
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
152
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
153
|
+
writable: false
|
|
154
|
+
});
|
|
161
155
|
return Constructor;
|
|
162
156
|
}
|
|
163
157
|
|
|
164
|
-
module.exports = _createClass;
|
|
165
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
158
|
+
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
166
159
|
|
|
167
160
|
/***/ }),
|
|
168
|
-
/*
|
|
161
|
+
/* 4 */
|
|
169
162
|
/***/ (function(module, exports, __webpack_require__) {
|
|
170
163
|
|
|
171
|
-
var setPrototypeOf = __webpack_require__(
|
|
164
|
+
var setPrototypeOf = __webpack_require__(8);
|
|
172
165
|
|
|
173
166
|
function _inherits(subClass, superClass) {
|
|
174
167
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
175
168
|
throw new TypeError("Super expression must either be null or a function");
|
|
176
169
|
}
|
|
177
170
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
171
|
+
Object.defineProperty(subClass, "prototype", {
|
|
172
|
+
value: Object.create(superClass && superClass.prototype, {
|
|
173
|
+
constructor: {
|
|
174
|
+
value: subClass,
|
|
175
|
+
writable: true,
|
|
176
|
+
configurable: true
|
|
177
|
+
}
|
|
178
|
+
}),
|
|
179
|
+
writable: false
|
|
184
180
|
});
|
|
185
181
|
if (superClass) setPrototypeOf(subClass, superClass);
|
|
186
182
|
}
|
|
187
183
|
|
|
188
|
-
module.exports = _inherits;
|
|
189
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
184
|
+
module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
190
185
|
|
|
191
186
|
/***/ }),
|
|
192
|
-
/*
|
|
187
|
+
/* 5 */
|
|
193
188
|
/***/ (function(module, exports, __webpack_require__) {
|
|
194
189
|
|
|
195
|
-
var _typeof = __webpack_require__(
|
|
190
|
+
var _typeof = __webpack_require__(9)["default"];
|
|
196
191
|
|
|
197
|
-
var assertThisInitialized = __webpack_require__(
|
|
192
|
+
var assertThisInitialized = __webpack_require__(10);
|
|
198
193
|
|
|
199
194
|
function _possibleConstructorReturn(self, call) {
|
|
200
195
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
@@ -206,19 +201,17 @@ function _possibleConstructorReturn(self, call) {
|
|
|
206
201
|
return assertThisInitialized(self);
|
|
207
202
|
}
|
|
208
203
|
|
|
209
|
-
module.exports = _possibleConstructorReturn;
|
|
210
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
204
|
+
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
211
205
|
|
|
212
206
|
/***/ }),
|
|
213
|
-
/*
|
|
207
|
+
/* 6 */
|
|
214
208
|
/***/ (function(module, exports, __webpack_require__) {
|
|
215
209
|
|
|
216
|
-
var superPropBase = __webpack_require__(
|
|
210
|
+
var superPropBase = __webpack_require__(11);
|
|
217
211
|
|
|
218
|
-
function _get(
|
|
212
|
+
function _get() {
|
|
219
213
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
220
|
-
module.exports = _get = Reflect.get;
|
|
221
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
214
|
+
module.exports = _get = Reflect.get, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
222
215
|
} else {
|
|
223
216
|
module.exports = _get = function _get(target, property, receiver) {
|
|
224
217
|
var base = superPropBase(target, property);
|
|
@@ -226,23 +219,20 @@ function _get(target, property, receiver) {
|
|
|
226
219
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
227
220
|
|
|
228
221
|
if (desc.get) {
|
|
229
|
-
return desc.get.call(receiver);
|
|
222
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
|
230
223
|
}
|
|
231
224
|
|
|
232
225
|
return desc.value;
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
226
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
236
227
|
}
|
|
237
228
|
|
|
238
|
-
return _get(
|
|
229
|
+
return _get.apply(this, arguments);
|
|
239
230
|
}
|
|
240
231
|
|
|
241
|
-
module.exports = _get;
|
|
242
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
232
|
+
module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
243
233
|
|
|
244
234
|
/***/ }),
|
|
245
|
-
/*
|
|
235
|
+
/* 7 */
|
|
246
236
|
/***/ (function(module, exports) {
|
|
247
237
|
|
|
248
238
|
function _defineProperty(obj, key, value) {
|
|
@@ -260,55 +250,40 @@ function _defineProperty(obj, key, value) {
|
|
|
260
250
|
return obj;
|
|
261
251
|
}
|
|
262
252
|
|
|
263
|
-
module.exports = _defineProperty;
|
|
264
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
253
|
+
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
265
254
|
|
|
266
255
|
/***/ }),
|
|
267
|
-
/*
|
|
256
|
+
/* 8 */
|
|
268
257
|
/***/ (function(module, exports) {
|
|
269
258
|
|
|
270
259
|
function _setPrototypeOf(o, p) {
|
|
271
260
|
module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
272
261
|
o.__proto__ = p;
|
|
273
262
|
return o;
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
263
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
277
264
|
return _setPrototypeOf(o, p);
|
|
278
265
|
}
|
|
279
266
|
|
|
280
|
-
module.exports = _setPrototypeOf;
|
|
281
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
267
|
+
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
282
268
|
|
|
283
269
|
/***/ }),
|
|
284
|
-
/*
|
|
270
|
+
/* 9 */
|
|
285
271
|
/***/ (function(module, exports) {
|
|
286
272
|
|
|
287
273
|
function _typeof(obj) {
|
|
288
274
|
"@babel/helpers - typeof";
|
|
289
275
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
296
|
-
} else {
|
|
297
|
-
module.exports = _typeof = function _typeof(obj) {
|
|
298
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
299
|
-
};
|
|
300
|
-
|
|
301
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
return _typeof(obj);
|
|
276
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
277
|
+
return typeof obj;
|
|
278
|
+
} : function (obj) {
|
|
279
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
280
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
305
281
|
}
|
|
306
282
|
|
|
307
|
-
module.exports = _typeof;
|
|
308
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
283
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
309
284
|
|
|
310
285
|
/***/ }),
|
|
311
|
-
/*
|
|
286
|
+
/* 10 */
|
|
312
287
|
/***/ (function(module, exports) {
|
|
313
288
|
|
|
314
289
|
function _assertThisInitialized(self) {
|
|
@@ -319,14 +294,13 @@ function _assertThisInitialized(self) {
|
|
|
319
294
|
return self;
|
|
320
295
|
}
|
|
321
296
|
|
|
322
|
-
module.exports = _assertThisInitialized;
|
|
323
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
297
|
+
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
324
298
|
|
|
325
299
|
/***/ }),
|
|
326
|
-
/*
|
|
300
|
+
/* 11 */
|
|
327
301
|
/***/ (function(module, exports, __webpack_require__) {
|
|
328
302
|
|
|
329
|
-
var getPrototypeOf = __webpack_require__(
|
|
303
|
+
var getPrototypeOf = __webpack_require__(1);
|
|
330
304
|
|
|
331
305
|
function _superPropBase(object, property) {
|
|
332
306
|
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
|
@@ -337,11 +311,10 @@ function _superPropBase(object, property) {
|
|
|
337
311
|
return object;
|
|
338
312
|
}
|
|
339
313
|
|
|
340
|
-
module.exports = _superPropBase;
|
|
341
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
314
|
+
module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
342
315
|
|
|
343
316
|
/***/ }),
|
|
344
|
-
/*
|
|
317
|
+
/* 12 */
|
|
345
318
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
346
319
|
|
|
347
320
|
"use strict";
|
|
@@ -353,29 +326,26 @@ __webpack_require__.d(__webpack_exports__, "S3MLayer", function() { return /* re
|
|
|
353
326
|
__webpack_require__.d(__webpack_exports__, "SmImgLayer", function() { return /* reexport */ SmImgLayer_SmImgLayer; });
|
|
354
327
|
__webpack_require__.d(__webpack_exports__, "SmMvtLayer", function() { return /* reexport */ SmMvtLayer_SmMvtLayer; });
|
|
355
328
|
|
|
356
|
-
// EXTERNAL MODULE: ./node_modules
|
|
357
|
-
var classCallCheck = __webpack_require__(
|
|
329
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/classCallCheck.js
|
|
330
|
+
var classCallCheck = __webpack_require__(2);
|
|
358
331
|
var classCallCheck_default = /*#__PURE__*/__webpack_require__.n(classCallCheck);
|
|
359
332
|
|
|
360
|
-
// EXTERNAL MODULE: ./node_modules
|
|
361
|
-
var createClass = __webpack_require__(
|
|
333
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/createClass.js
|
|
334
|
+
var createClass = __webpack_require__(3);
|
|
362
335
|
var createClass_default = /*#__PURE__*/__webpack_require__.n(createClass);
|
|
363
336
|
|
|
364
|
-
// EXTERNAL MODULE: ./node_modules
|
|
365
|
-
var inherits = __webpack_require__(
|
|
337
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/inherits.js
|
|
338
|
+
var inherits = __webpack_require__(4);
|
|
366
339
|
var inherits_default = /*#__PURE__*/__webpack_require__.n(inherits);
|
|
367
340
|
|
|
368
|
-
// EXTERNAL MODULE: ./node_modules
|
|
369
|
-
var possibleConstructorReturn = __webpack_require__(
|
|
341
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
|
|
342
|
+
var possibleConstructorReturn = __webpack_require__(5);
|
|
370
343
|
var possibleConstructorReturn_default = /*#__PURE__*/__webpack_require__.n(possibleConstructorReturn);
|
|
371
344
|
|
|
372
|
-
// EXTERNAL MODULE: ./node_modules
|
|
373
|
-
var getPrototypeOf = __webpack_require__(
|
|
345
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/getPrototypeOf.js
|
|
346
|
+
var getPrototypeOf = __webpack_require__(1);
|
|
374
347
|
var getPrototypeOf_default = /*#__PURE__*/__webpack_require__.n(getPrototypeOf);
|
|
375
348
|
|
|
376
|
-
// EXTERNAL MODULE: external {"commonjs2":"mars3d-cesium","amd":"mars3d-cesium","commonjs":"mars3d-cesium","root":"Cesium"}
|
|
377
|
-
var external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_ = __webpack_require__(1);
|
|
378
|
-
|
|
379
349
|
// EXTERNAL MODULE: external "mars3d"
|
|
380
350
|
var external_mars3d_ = __webpack_require__(0);
|
|
381
351
|
|
|
@@ -391,7 +361,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
391
361
|
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; } }
|
|
392
362
|
|
|
393
363
|
|
|
394
|
-
|
|
364
|
+
var Cesium = external_mars3d_["Cesium"];
|
|
395
365
|
var BaseLayer = external_mars3d_["layer"].BaseLayer;
|
|
396
366
|
/**
|
|
397
367
|
* 超图S3M三维模型图层,
|
|
@@ -413,10 +383,10 @@ var BaseLayer = external_mars3d_["layer"].BaseLayer;
|
|
|
413
383
|
* @param {Object} [options.center] 图层自定义定位视角 {@link Map#setCameraView}
|
|
414
384
|
* @param {Number} options.center.lng 经度值, 180 - 180
|
|
415
385
|
* @param {Number} options.center.lat 纬度值, -90 - 90
|
|
416
|
-
* @param {Number} options.center.alt 高度值
|
|
417
|
-
* @param {Number} options.center.heading 方向角度值,绕垂直于地心的轴旋转角度, 0-360
|
|
418
|
-
* @param {Number} options.center.pitch 俯仰角度值,绕纬度线旋转角度, 0-360
|
|
419
|
-
* @param {Number} options.center.roll 翻滚角度值,绕经度线旋转角度, 0-360
|
|
386
|
+
* @param {Number} [options.center.alt] 高度值
|
|
387
|
+
* @param {Number} [options.center.heading] 方向角度值,绕垂直于地心的轴旋转角度, 0-360
|
|
388
|
+
* @param {Number} [options.center.pitch] 俯仰角度值,绕纬度线旋转角度, 0-360
|
|
389
|
+
* @param {Number} [options.center.roll] 翻滚角度值,绕经度线旋转角度, 0-360
|
|
420
390
|
* @param {Boolean} [options.flyTo] 加载完成数据后是否自动飞行定位到数据所在的区域。
|
|
421
391
|
* @export
|
|
422
392
|
* @class S3MLayer
|
|
@@ -464,7 +434,7 @@ var S3MLayer_S3MLayer = /*#__PURE__*/function (_BaseLayer) {
|
|
|
464
434
|
|
|
465
435
|
if (key == "transparentBackColor") {
|
|
466
436
|
//去黑边,与offset互斥,注意别配置offset
|
|
467
|
-
val =
|
|
437
|
+
val = Cesium.Color.fromCssColorString(val);
|
|
468
438
|
} else if (key == "transparentBackColorTolerance") {
|
|
469
439
|
val = Number(val);
|
|
470
440
|
}
|
|
@@ -507,7 +477,7 @@ var S3MLayer_S3MLayer = /*#__PURE__*/function (_BaseLayer) {
|
|
|
507
477
|
});
|
|
508
478
|
}
|
|
509
479
|
|
|
510
|
-
|
|
480
|
+
Cesium.when(promise, function (smLayer) {
|
|
511
481
|
if (Array.isArray(smLayer)) {
|
|
512
482
|
_this._layerArr = smLayer;
|
|
513
483
|
} else {
|
|
@@ -533,7 +503,7 @@ var S3MLayer_S3MLayer = /*#__PURE__*/function (_BaseLayer) {
|
|
|
533
503
|
|
|
534
504
|
if (key == "transparentBackColor") {
|
|
535
505
|
//去黑边,与offset互斥,注意别配置offset
|
|
536
|
-
layer[key] =
|
|
506
|
+
layer[key] = Cesium.Color.fromCssColorString(val);
|
|
537
507
|
} else if (key == "transparentBackColorTolerance") {
|
|
538
508
|
layer[key] = Number(val);
|
|
539
509
|
} else {
|
|
@@ -650,8 +620,8 @@ var S3MLayer_S3MLayer = /*#__PURE__*/function (_BaseLayer) {
|
|
|
650
620
|
external_mars3d_["layer"].S3MLayer = S3MLayer_S3MLayer; //注册下
|
|
651
621
|
|
|
652
622
|
external_mars3d_["LayerUtil"].register("supermap_s3m", S3MLayer_S3MLayer);
|
|
653
|
-
// EXTERNAL MODULE: ./node_modules
|
|
654
|
-
var get = __webpack_require__(
|
|
623
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/get.js
|
|
624
|
+
var get = __webpack_require__(6);
|
|
655
625
|
var get_default = /*#__PURE__*/__webpack_require__.n(get);
|
|
656
626
|
|
|
657
627
|
// CONCATENATED MODULE: ./src/supermap/SmImgLayer.js
|
|
@@ -667,7 +637,7 @@ function SmImgLayer_createSuper(Derived) { var hasNativeReflectConstruct = SmImg
|
|
|
667
637
|
function SmImgLayer_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; } }
|
|
668
638
|
|
|
669
639
|
|
|
670
|
-
|
|
640
|
+
var SmImgLayer_Cesium = external_mars3d_["Cesium"];
|
|
671
641
|
var BaseTileLayer = external_mars3d_["layer"].BaseTileLayer;
|
|
672
642
|
/**
|
|
673
643
|
* 超图影像瓦片服务图层,
|
|
@@ -691,7 +661,7 @@ var BaseTileLayer = external_mars3d_["layer"].BaseTileLayer;
|
|
|
691
661
|
* @param {Number} options.rectangle.xmax 最大纬度值, -180 至 180
|
|
692
662
|
* @param {Number} options.rectangle.ymin 最小纬度值, -90 至 90
|
|
693
663
|
* @param {Number} options.rectangle.ymax 最大纬度值, -90 至 90
|
|
694
|
-
* @param {Number[]} options.bbox bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
664
|
+
* @param {Number[]} [options.bbox] bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
695
665
|
* @param {Number} [options.zIndex] 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。
|
|
696
666
|
* @param {CRS} [options.crs=CRS.EPSG:3857] 瓦片数据的坐标系信息,默认为墨卡托投影
|
|
697
667
|
* @param {ChinaCRS} [options.chinaCRS] 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
@@ -730,10 +700,10 @@ var BaseTileLayer = external_mars3d_["layer"].BaseTileLayer;
|
|
|
730
700
|
* @param {Object} [options.center] 图层自定义定位视角 {@link Map#setCameraView}
|
|
731
701
|
* @param {Number} options.center.lng 经度值, 180 - 180
|
|
732
702
|
* @param {Number} options.center.lat 纬度值, -90 - 90
|
|
733
|
-
* @param {Number} options.center.alt 高度值
|
|
734
|
-
* @param {Number} options.center.heading 方向角度值,绕垂直于地心的轴旋转角度, 0-360
|
|
735
|
-
* @param {Number} options.center.pitch 俯仰角度值,绕纬度线旋转角度, 0-360
|
|
736
|
-
* @param {Number} options.center.roll 翻滚角度值,绕经度线旋转角度, 0-360
|
|
703
|
+
* @param {Number} [options.center.alt] 高度值
|
|
704
|
+
* @param {Number} [options.center.heading] 方向角度值,绕垂直于地心的轴旋转角度, 0-360
|
|
705
|
+
* @param {Number} [options.center.pitch] 俯仰角度值,绕纬度线旋转角度, 0-360
|
|
706
|
+
* @param {Number} [options.center.roll] 翻滚角度值,绕经度线旋转角度, 0-360
|
|
737
707
|
* @param {Boolean} [options.flyTo] 加载完成数据后是否自动飞行定位到数据所在的区域。
|
|
738
708
|
* @export
|
|
739
709
|
* @class SmImgLayer
|
|
@@ -765,7 +735,7 @@ var SmImgLayer_SmImgLayer = /*#__PURE__*/function (_BaseTileLayer) {
|
|
|
765
735
|
value: function _addedHook() {
|
|
766
736
|
get_default()(getPrototypeOf_default()(SmImgLayer.prototype), "_addedHook", this).call(this);
|
|
767
737
|
|
|
768
|
-
if (
|
|
738
|
+
if (SmImgLayer_Cesium.defined(this.options.transparentBackColor)) {
|
|
769
739
|
this._imageryLayer.transparentBackColor = external_mars3d_["Util"].getCesiumColor(this.options.transparentBackColor);
|
|
770
740
|
this._imageryLayer.transparentBackColorTolerance = this.options.transparentBackColorTolerance; //去黑边
|
|
771
741
|
}
|
|
@@ -777,14 +747,17 @@ var SmImgLayer_SmImgLayer = /*#__PURE__*/function (_BaseTileLayer) {
|
|
|
777
747
|
|
|
778
748
|
function createImageryProvider(options) {
|
|
779
749
|
options = external_mars3d_["LayerUtil"].converOptions(options);
|
|
780
|
-
if (options.url instanceof external_commonjs2_mars3d_cesium_amd_mars3d_cesium_commonjs_mars3d_cesium_root_Cesium_["Resource"]) options.url = options.url.url;
|
|
781
750
|
|
|
782
|
-
if (
|
|
751
|
+
if (options.url instanceof SmImgLayer_Cesium.Resource) {
|
|
752
|
+
options.url = options.url.url;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
if (SmImgLayer_Cesium.defined(options.transparentBackColor)) {
|
|
783
756
|
delete options.transparentBackColor;
|
|
784
757
|
delete options.transparentBackColorTolerance;
|
|
785
758
|
}
|
|
786
759
|
|
|
787
|
-
return new
|
|
760
|
+
return new SmImgLayer_Cesium.SuperMapImageryProvider(options);
|
|
788
761
|
}
|
|
789
762
|
/**
|
|
790
763
|
* 创建用于图层的 ImageryProvider对象
|
|
@@ -801,8 +774,8 @@ external_mars3d_["layer"].SmImgLayer = SmImgLayer_SmImgLayer; //注册下
|
|
|
801
774
|
var layerType = "supermap_img";
|
|
802
775
|
external_mars3d_["LayerUtil"].register(layerType, SmImgLayer_SmImgLayer);
|
|
803
776
|
external_mars3d_["LayerUtil"].registerImageryProvider(layerType, createImageryProvider);
|
|
804
|
-
// EXTERNAL MODULE: ./node_modules
|
|
805
|
-
var defineProperty = __webpack_require__(
|
|
777
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js
|
|
778
|
+
var defineProperty = __webpack_require__(7);
|
|
806
779
|
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
|
807
780
|
|
|
808
781
|
// CONCATENATED MODULE: ./src/supermap/SmMvtLayer.js
|
|
@@ -813,16 +786,16 @@ var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
|
|
813
786
|
|
|
814
787
|
|
|
815
788
|
|
|
816
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
789
|
+
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; }
|
|
817
790
|
|
|
818
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
791
|
+
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; }
|
|
819
792
|
|
|
820
793
|
function SmMvtLayer_createSuper(Derived) { var hasNativeReflectConstruct = SmMvtLayer_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); }; }
|
|
821
794
|
|
|
822
795
|
function SmMvtLayer_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; } }
|
|
823
796
|
|
|
824
797
|
|
|
825
|
-
|
|
798
|
+
var SmMvtLayer_Cesium = external_mars3d_["Cesium"];
|
|
826
799
|
var SmMvtLayer_BaseLayer = external_mars3d_["layer"].BaseLayer;
|
|
827
800
|
/**
|
|
828
801
|
* 超图MVT矢量瓦片图层,
|
|
@@ -834,7 +807,7 @@ var SmMvtLayer_BaseLayer = external_mars3d_["layer"].BaseLayer;
|
|
|
834
807
|
* @param {Number} [options.canvasWidth] 用来绘制矢量的纹理边长。默认是512,越大越精细,越小性能越高。
|
|
835
808
|
* @param {String} [options.format='mvt'] 适用于第三方发布的WMTS服务。
|
|
836
809
|
* @param {Object} [options.mapboxStyle] 使用的mapBox风格。
|
|
837
|
-
* @param {Object} [options
|
|
810
|
+
* @param {Object} [options.多个参数] 参考[supermap官方API]{@link http://support.supermap.com.cn:8090/webgl/docs/Documentation/Scene.html#addVectorTilesLayer}
|
|
838
811
|
*
|
|
839
812
|
*
|
|
840
813
|
* @param {String|Number} [options.id = uuid()] 图层id标识
|
|
@@ -845,10 +818,10 @@ var SmMvtLayer_BaseLayer = external_mars3d_["layer"].BaseLayer;
|
|
|
845
818
|
* @param {Object} [options.center] 图层自定义定位视角 {@link Map#setCameraView}
|
|
846
819
|
* @param {Number} options.center.lng 经度值, 180 - 180
|
|
847
820
|
* @param {Number} options.center.lat 纬度值, -90 - 90
|
|
848
|
-
* @param {Number} options.center.alt 高度值
|
|
849
|
-
* @param {Number} options.center.heading 方向角度值,绕垂直于地心的轴旋转角度, 0-360
|
|
850
|
-
* @param {Number} options.center.pitch 俯仰角度值,绕纬度线旋转角度, 0-360
|
|
851
|
-
* @param {Number} options.center.roll 翻滚角度值,绕经度线旋转角度, 0-360
|
|
821
|
+
* @param {Number} [options.center.alt] 高度值
|
|
822
|
+
* @param {Number} [options.center.heading] 方向角度值,绕垂直于地心的轴旋转角度, 0-360
|
|
823
|
+
* @param {Number} [options.center.pitch] 俯仰角度值,绕纬度线旋转角度, 0-360
|
|
824
|
+
* @param {Number} [options.center.roll] 翻滚角度值,绕经度线旋转角度, 0-360
|
|
852
825
|
* @param {Boolean} [options.flyTo] 加载完成数据后是否自动飞行定位到数据所在的区域。
|
|
853
826
|
* @export
|
|
854
827
|
* @class SmMvtLayer
|
|
@@ -893,7 +866,7 @@ var SmMvtLayer_SmMvtLayer = /*#__PURE__*/function (_BaseLayer) {
|
|
|
893
866
|
//options参考API文档:http://support.supermap.com.cn:8090/webgl/docs/Documentation/Scene.html
|
|
894
867
|
this._mvtLayer = this._map.scene.addVectorTilesMap(this.options);
|
|
895
868
|
var layerReadyPromise = this._mvtLayer.readyPromise;
|
|
896
|
-
|
|
869
|
+
SmMvtLayer_Cesium.when(layerReadyPromise, function (data) {//setPaintProperty(layerId, name, value, options)
|
|
897
870
|
// for(var layerId in that.options.style){
|
|
898
871
|
// that._mvtLayer.setPaintProperty(layerId, "fill-color", "rgba(255,0,0,0.8)");
|
|
899
872
|
// }
|
|
@@ -901,7 +874,7 @@ var SmMvtLayer_SmMvtLayer = /*#__PURE__*/function (_BaseLayer) {
|
|
|
901
874
|
_this.showError("渲染时发生错误,已停止渲染。", error);
|
|
902
875
|
});
|
|
903
876
|
var scene = this._map.scene;
|
|
904
|
-
var handler = new
|
|
877
|
+
var handler = new SmMvtLayer_Cesium.ScreenSpaceEventHandler(scene.canvas);
|
|
905
878
|
handler.setInputAction(function (event) {
|
|
906
879
|
if (!_this.show) {
|
|
907
880
|
return;
|
|
@@ -927,7 +900,7 @@ var SmMvtLayer_SmMvtLayer = /*#__PURE__*/function (_BaseLayer) {
|
|
|
927
900
|
|
|
928
901
|
_this._map.openPopup(position, content, item);
|
|
929
902
|
}, ["in", "$id"]);
|
|
930
|
-
},
|
|
903
|
+
}, SmMvtLayer_Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
931
904
|
this.handler = handler;
|
|
932
905
|
}
|
|
933
906
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://mars3dSupermap/webpack/universalModuleDefinition","webpack://mars3dSupermap/webpack/bootstrap","webpack://mars3dSupermap/external \"mars3d\"","webpack://mars3dSupermap/external {\"commonjs2\":\"mars3d-cesium\",\"amd\":\"mars3d-cesium\",\"commonjs\":\"mars3d-cesium\",\"root\":\"Cesium\"}","webpack://mars3dSupermap/./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/getPrototypeOf.js","webpack://mars3dSupermap/./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/classCallCheck.js","webpack://mars3dSupermap/./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/createClass.js","webpack://mars3dSupermap/./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/inherits.js","webpack://mars3dSupermap/./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/possibleConstructorReturn.js","webpack://mars3dSupermap/./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/get.js","webpack://mars3dSupermap/./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/defineProperty.js","webpack://mars3dSupermap/./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/setPrototypeOf.js","webpack://mars3dSupermap/./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/typeof.js","webpack://mars3dSupermap/./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/assertThisInitialized.js","webpack://mars3dSupermap/./node_modules/_@babel_runtime@7.15.3@@babel/runtime/helpers/superPropBase.js","webpack://mars3dSupermap/./src/supermap/S3MLayer.js","webpack://mars3dSupermap/./src/supermap/SmImgLayer.js","webpack://mars3dSupermap/./src/supermap/SmMvtLayer.js","webpack://mars3dSupermap/./src/index.js"],"names":["BaseLayer","mars3d","S3MLayer","_layerArr","options","s3mOptions","value","key","val","Cesium","fromCssColorString","Number","i","length","layer","promise","layername","_map","scene","addS3MTilesLayerByScp","url","name","autoSetVie","flyTo","cullEnabled","open","sceneName","smLayer","Array","isArray","isS3M","position","alt","style3D","bottomAltitude","refresh","flyToByAnimationEnd","dataUrl","ql","setQueryParameter","dataSourceName","split","dataSetName","isMerge","selectEnabled","error","showError","visible","show","item","fillForeColor","alpha","center","setCameraView","extent","flyToExtent","register","BaseTileLayer","SmImgLayer","createImageryProvider","transparentBackColor","_imageryLayer","getCesiumColor","transparentBackColorTolerance","converOptions","layerType","registerImageryProvider","SmMvtLayer","_mvtLayer","addVectorTilesMap","layerReadyPromise","readyPromise","data","handler","canvas","setInputAction","event","getCurrentMousePosition","features","queryRenderedFeatures","filter","reduce","memo","result","attr","feature","properties","content","getPopupForConfig","openPopup","LEFT_CLICK","parseFloat","camera","destination","rectangle"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;AClFA,gD;;;;;;ACAA,gD;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,6E;;;;;;ACTA;AACA;AACA;AACA;AACA;;AAEA;AACA,6E;;;;;;ACPA;AACA,iBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,6E;;;;;;ACjBA,qBAAqB,mBAAO,CAAC,CAAqB;;AAElD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA,6E;;;;;;AClBA,cAAc,mBAAO,CAAC,EAA+B;;AAErD,4BAA4B,mBAAO,CAAC,EAA4B;;AAEhE;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;;AAEA;AACA,6E;;;;;;ACfA,oBAAoB,mBAAO,CAAC,EAAoB;;AAEhD;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,6E;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;;AAEA;AACA;;AAEA;AACA,6E;;;;;;AChBA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,6E;;;;;;ACXA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,6E;;;;;;ACrBA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,6E;;;;;;ACTA,qBAAqB,mBAAO,CAAC,CAAqB;;AAElD;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,6E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACZA;AACA;AAEA,IAAIA,SAAS,GAAGC,yBAAA,CAAaD,SAA7B;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACO,IAAME,iBAAb;AAAA;;AAAA;;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;AACE;AACF;AACA;AACA;AACA;AACA;AACE,mBAAY;AACV,aAAO,KAAKC,SAAZ;AACD;AAED;AACF;AACA;AACA;AACA;;AAfA;AAAA;AAAA,SAgBE,eAAiB;AACf,aAAO,KAAKC,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ACA;AACA;;AA3EA;AAAA;AAAA,WA4EE,sBAAa;AACX,WAAKL,SAAL,CAAepB,IAAf,GAAsB,IAAtB,CADW,CAEX;AACD;AAED;AACF;AACA;AACA;AACA;AACA;;AAtFA;AAAA;AAAA,WAuFE,wBAAe;AACb,UAAI,KAAKoB,SAAT,EAAoB;AAClB,aAAKA,SAAL,CAAepB,IAAf,GAAsB,KAAtB;AACD;AACF;AAED;AACF;AACA;AACA;AACA;;AAjGA;AAAA;AAAA,WAkGE,oBAAW1C,KAAX,EAAkB;AAChB,UAAI,KAAK8D,SAAT,EAAoB;AAClB,aAAKA,SAAL,CAAejB,KAAf,GAAuBwC,UAAU,CAACrF,KAAD,CAAjC;AACD;AACF,KAtGH,CAwGE;;AAxGF;AAAA;AAAA,WAyGE,iBAAoB;AAAA,UAAdF,OAAc,uEAAJ,EAAI;;AAClB,UAAI,KAAKA,OAAL,CAAagD,MAAjB,EAAyB;AACvB,aAAKnC,IAAL,CAAUoC,aAAV,CAAwB,KAAKjD,OAAL,CAAagD,MAArC,EAA6ChD,OAA7C;AACD,OAFD,MAEO,IAAI,KAAKA,OAAL,CAAakD,MAAjB,EAAyB;AAC9B,aAAKrC,IAAL,CAAUsC,WAAV,CAAsB,KAAKnD,OAAL,CAAakD,MAAnC,EAA2ClD,OAA3C;AACD,OAFM,MAEA,IAAI,KAAKgE,SAAT,EAAoB;AACzB,aAAKnD,IAAL,CAAU2E,MAAV,CAAiBrE,KAAjB,iCACKnB,OADL;AAEEyF,qBAAW,EAAE,KAAKzB,SAAL,CAAe0B;AAF9B;AAID;AACF;AApHH;;AAAA;AAAA,EAAgC9F,oBAAhC;AAsHAC,yBAAA,CAAakE,UAAb,GAA0BA,qBAA1B,C,CAEA;;AACAlE,6BAAA,CAAiBuD,QAAjB,CAA0B,cAA1B,EAA0CW,qBAA1C,E;;AC5JA;AACA","file":"mars3d-supermap-src.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"mars3d\"), require(\"mars3d-cesium\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"mars3dSupermap\", [\"mars3d\", \"mars3d-cesium\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"mars3dSupermap\"] = factory(require(\"mars3d\"), require(\"mars3d-cesium\"));\n\telse\n\t\troot[\"mars3dSupermap\"] = factory(root[\"mars3d\"], root[\"Cesium\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__0__, __WEBPACK_EXTERNAL_MODULE__1__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 13);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","module.exports = __WEBPACK_EXTERNAL_MODULE__1__;","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","var setPrototypeOf = require(\"./setPrototypeOf.js\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","var _typeof = require(\"@babel/runtime/helpers/typeof\")[\"default\"];\n\nvar assertThisInitialized = require(\"./assertThisInitialized.js\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","var superPropBase = require(\"./superPropBase.js\");\n\nfunction _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n module.exports = _get = Reflect.get;\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n } else {\n module.exports = _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n }\n\n return _get(target, property, receiver || target);\n}\n\nmodule.exports = _get;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","var getPrototypeOf = require(\"./getPrototypeOf.js\");\n\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}\n\nmodule.exports = _superPropBase;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;","import * as Cesium from \"cesium\";\nimport * as mars3d from \"mars3d\";\n\nlet BaseLayer = mars3d.layer.BaseLayer;\n\n/**\n * 超图S3M三维模型图层,\n * 【需要引入 mars3d-supermap 插件库】\n *\n * @param {Object} [options] 参数对象,包括以下:\n * @param {String} options.url supermap的S3M服务地址,示例:\"url\": \"http://www.supermapol.com/realspace/services/3D-Olympic/rest/realspace\"\n * @param {String} [options.layername] 指定图层名称,未指定时,打开iserver场景服务下所有图层\n * @param {String} [options.sceneName] 工作空间中有多个场景,需要指定场景名称;设置为undefined,默认打开第一个\n * @param {Object} [options.s3mOptions] [S3M支持的参数]{@link http://support.supermap.com.cn:8090/webgl/docs/Documentation/S3MTilesLayer.html?classFilter=S3MTilesLayer} ,示例: {\"selectEnabled\":false},\n * @param {Object} [options.position] 模型新的中心点位置(移动模型)\n * @param {Number} options.position.alt 获取或设置底部高程。(单位:米)\n *\n * @param {String|Number} [options.id = uuid()] 图层id标识\n * @param {String|Number} [options.pid = -1] 图层父级的id,一般图层管理中使用\n * @param {String} [options.name = ''] 图层名称\n * @param {Boolean} [options.show = true] 图层是否显示\n * @param {BaseClass|Boolean} [options.eventParent] 指定的事件冒泡对象,默认为map对象,false时不冒泡\n * @param {Object} [options.center] 图层自定义定位视角 {@link Map#setCameraView}\n * @param {Number} options.center.lng 经度值, 180 - 180\n * @param {Number} options.center.lat 纬度值, -90 - 90\n * @param {Number} options.center.alt 高度值\n * @param {Number} options.center.heading 方向角度值,绕垂直于地心的轴旋转角度, 0-360\n * @param {Number} options.center.pitch 俯仰角度值,绕纬度线旋转角度, 0-360\n * @param {Number} options.center.roll 翻滚角度值,绕经度线旋转角度, 0-360\n * @param {Boolean} [options.flyTo] 加载完成数据后是否自动飞行定位到数据所在的区域。\n * @export\n * @class S3MLayer\n * @extends {BaseLayer}\n */\nexport class S3MLayer extends BaseLayer {\n /**\n * 模型对应的Cesium.S3MTilesLayer图层组\n * @type {Object[]}\n * @readonly\n * @see http://support.supermap.com.cn:8090/webgl/docs/Documentation/S3MTilesLayer.html\n */\n get layer() {\n return this._layerArr;\n }\n\n /**\n * 设置S3M图层本身支持的参数\n * @type {Object}\n * @see [S3M支持的参数]{@link http://support.supermap.com.cn:8090/webgl/docs/Documentation/S3MTilesLayer.html?classFilter=S3MTilesLayer}\n */\n get s3mOptions() {\n return this.options.s3mOptions;\n }\n set s3mOptions(value) {\n for (let key in value) {\n let val = value[key];\n this.options.s3mOptions[key] = val;\n\n if (key == \"transparentBackColor\") {\n //去黑边,与offset互斥,注意别配置offset\n val = Cesium.Color.fromCssColorString(val);\n } else if (key == \"transparentBackColorTolerance\") {\n val = Number(val);\n }\n\n for (let i = 0; i < this._layerArr.length; i++) {\n let layer = this._layerArr[i];\n if (layer == null) {\n continue;\n }\n layer[key] = val;\n }\n }\n }\n\n /**\n * 对象添加到地图前创建一些对象的钩子方法,\n * 只会调用一次\n * @return {void} 无\n * @private\n */\n _mountedHook() {\n //场景添加S3M图层服务\n let promise;\n if (this.options.layername) {\n promise = this._map.scene.addS3MTilesLayerByScp(this.options.url, {\n name: this.options.layername,\n autoSetVie: this.options.flyTo,\n cullEnabled: this.options.cullEnabled,\n });\n } else {\n promise = this._map.scene.open(this.options.url, this.options.sceneName, {\n autoSetVie: this.options.flyTo,\n });\n }\n\n Cesium.when(\n promise,\n (smLayer) => {\n if (Array.isArray(smLayer)) {\n this._layerArr = smLayer;\n } else {\n this._layerArr = [smLayer];\n }\n\n //设置图层属性\n for (let i = 0; i < this._layerArr.length; i++) {\n let layer = this._layerArr[i];\n if (layer == null) {\n continue;\n }\n\n layer.isS3M = true; //标识下\n\n //s3mOptions\n if (this.options.s3mOptions) {\n for (let key in this.options.s3mOptions) {\n let val = this.options.s3mOptions[key];\n if (key == \"transparentBackColor\") {\n //去黑边,与offset互斥,注意别配置offset\n layer[key] = Cesium.Color.fromCssColorString(val);\n } else if (key == \"transparentBackColorTolerance\") {\n layer[key] = Number(val);\n } else {\n layer[key] = this.options.s3mOptions[key];\n }\n }\n }\n\n //高度调整 offset.z\n if (this.options?.position?.alt) {\n layer.style3D.bottomAltitude = this.options.position.alt;\n layer.refresh();\n }\n }\n\n if (this.options.flyTo) {\n this.flyToByAnimationEnd();\n }\n\n if (this.options.dataUrl) {\n for (let i = 0; i < this._layerArr.length; i++) {\n let ql = this._layerArr[i];\n\n //读取子图层信息,通过数组的方式返回子图层的名称以及子图层所包含的对象的IDs\n ql.setQueryParameter({\n url: this.options.dataUrl,\n dataSourceName: ql.name.split(\"@\")[1],\n dataSetName: ql.name.split(\"@\")[0],\n isMerge: true,\n });\n\n //获取图层风格\n //Note_GJ: rgba, 1为不透明,0为全透明。已经在模型中导入材质,所以这里的颜色不特别设置\n //var style3D = new Cesium.Style3D();\n // var color = Cesium.Color.fromCssColorString(\"#919191\");//混泥土颜色 RGB(145, 145,145)\n // style3D.fillForeColor = color;\n // ql.style3D = style3D;\n //设置后需刷新图层\n // ql.refresh();\n ql.selectEnabled = true;\n }\n }\n },\n (error) => {\n this.showError(\"渲染时发生错误,已停止渲染。\", error);\n }\n );\n }\n\n /**\n * 对象添加到地图上的创建钩子方法,\n * 每次add时都会调用\n * @return {void} 无\n * @private\n */\n _addedHook() {\n for (let i in this._layerArr) {\n this._layerArr[i].visible = true;\n this._layerArr[i].show = true;\n }\n }\n\n /**\n * 对象从地图上移除的创建钩子方法,\n * 每次remove时都会调用\n * @return {void} 无\n * @private\n */\n _removedHook() {\n if (this._layerArr) {\n for (let i in this._layerArr) {\n this._layerArr[i].visible = false;\n this._layerArr[i].show = false;\n }\n }\n }\n\n /**\n * 设置透明度\n * @param {Number} value 透明度\n * @return {void} 无\n */\n setOpacity(value) {\n if (this._layerArr) {\n for (let i = 0; i < this._layerArr.length; i++) {\n let item = this._layerArr[i];\n if (item == null) {\n continue;\n }\n\n item.style3D.fillForeColor.alpha = value;\n }\n }\n }\n\n //定位至数据区域\n flyTo(options = {}) {\n if (this.options.center) {\n this._map.setCameraView(this.options.center, options);\n } else if (this.options.extent) {\n this._map.flyToExtent(this.options.extent, options);\n }\n }\n}\nmars3d.layer.S3MLayer = S3MLayer;\n\n//注册下\nmars3d.LayerUtil.register(\"supermap_s3m\", S3MLayer);\n","import * as Cesium from \"cesium\";\nimport * as mars3d from \"mars3d\";\n\nlet BaseTileLayer = mars3d.layer.BaseTileLayer;\n\n/**\n * 超图影像瓦片服务图层,\n * 【需要引入 mars3d-supermap 插件库】\n *\n * @param {Object} [options] 参数对象,包括以下:\n * @param {String} options.url supermap的影像服务地址\n * @param {String|String[]} [options.subdomains] URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。\n * @param {String} [options.tileFormat] 影像图片格式,默认为png。\n * @param {Boolean} [options.transparent=true] 设置请求的地图服务的参数是否为transparent。\n * @param {String|Cesium.Color} [options.transparentBackColor] 设置影像透明色。\n * @param {Number} [options.transparentBackColorTolerance] 去黑边,设置影像透明色容限,取值范围为0.0~1.0。0.0表示完全透明,1.0表示完全不透明。\n * @param {String} [options.cacheKey] 影像的三维缓存密钥。\n *\n * @param {Number} [options.minimumLevel=0] 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。\n * @param {Number} [options.maximumLevel] 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。\n * @param {Number} [options.minimumTerrainLevel] 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。\n * @param {Number} [options.maximumTerrainLevel] 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。\n * @param {Object} [options.rectangle] 瓦片数据的矩形区域范围\n * @param {Number} options.rectangle.xmin 最小经度值, -180 至 180\n * @param {Number} options.rectangle.xmax 最大纬度值, -180 至 180\n * @param {Number} options.rectangle.ymin 最小纬度值, -90 至 90\n * @param {Number} options.rectangle.ymax 最大纬度值, -90 至 90\n * @param {Number[]} options.bbox bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。\n * @param {Number} [options.zIndex] 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。\n * @param {CRS} [options.crs=CRS.EPSG:3857] 瓦片数据的坐标系信息,默认为墨卡托投影\n * @param {ChinaCRS} [options.chinaCRS] 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。\n *\n * @param {String} [options.proxy] 加载资源时要使用的代理服务url。\n * @param {Object} [options.templateValues] 一个对象,用于替换Url中的模板值的键/值对\n * @param {Object} [options.queryParameters] 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'},\n * @param {Object} [options.headers] 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' },\n * @param {Boolean} [options.enablePickFeatures=true] 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。\n * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。\n * @param {Cesium.GetFeatureInfoFormat[]} [options.getFeatureInfoFormats] 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。\n *\n * @param {Number} [options.opacity = 1.0] 透明度,取值范围:0.0-1.0。\n * @param {Number|Function} [options.alpha=1.0] 同opacity。\n * @param {Number|Function} [options.nightAlpha=1.0] 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。\n * @param {Number|Function} [options.dayAlpha=1.0] 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。\n * @param {Number|Function} [options.brightness=1.0] 亮度\n * @param {Number|Function} [options.contrast=1.0] 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。\n * @param {Number|Function} [options.hue=0.0] 色调。 0.0 时未修改的图像颜色。\n * @param {Number|Function} [options.saturation=1.0] 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。\n * @param {Number|Function} [options.gamma=1.0] 伽马校正值。 1.0使用未修改的图像颜色。\n * @param {Number} [options.maximumAnisotropy=maximum supported] 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。\n * @param {Cesium.Rectangle} [options.cutoutRectangle] 制图矩形,用于裁剪此ImageryLayer的一部分。\n * @param {Cesium.Color} [options.colorToAlpha] 用作Alpha的颜色。\n * @param {Number} [options.colorToAlphaThreshold=0.004] 颜色到Alpha的阈值。\n * @param {Boolean} [options.hasAlphaChannel=true] 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。\n * @param {Number} [options.tileWidth=256] 图像图块的像素宽度。\n * @param {Number} [options.tileHeight=256] 图像图块的像素高度。\n * @param {Object} [options.customTags] 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。\n *\n * @param {String|Number} [options.id = uuid()] 图层id标识\n * @param {String|Number} [options.pid = -1] 图层父级的id,一般图层管理中使用\n * @param {String} [options.name = ''] 图层名称\n * @param {Boolean} [options.show = true] 图层是否显示\n * @param {BaseClass|Boolean} [options.eventParent] 指定的事件冒泡对象,默认为map对象,false时不冒泡\n * @param {Object} [options.center] 图层自定义定位视角 {@link Map#setCameraView}\n * @param {Number} options.center.lng 经度值, 180 - 180\n * @param {Number} options.center.lat 纬度值, -90 - 90\n * @param {Number} options.center.alt 高度值\n * @param {Number} options.center.heading 方向角度值,绕垂直于地心的轴旋转角度, 0-360\n * @param {Number} options.center.pitch 俯仰角度值,绕纬度线旋转角度, 0-360\n * @param {Number} options.center.roll 翻滚角度值,绕经度线旋转角度, 0-360\n * @param {Boolean} [options.flyTo] 加载完成数据后是否自动飞行定位到数据所在的区域。\n * @export\n * @class SmImgLayer\n * @extends {BaseTileLayer}\n *\n * @see http://support.supermap.com.cn:8090/webgl/docs/Documentation/SuperMapImageryProvider.html?classFilter=SuperMapImageryProvider\n */\nexport class SmImgLayer extends BaseTileLayer {\n //构建ImageryProvider\n _createImageryProvider(options) {\n return createImageryProvider(options);\n }\n //添加时\n _addedHook() {\n super._addedHook();\n\n if (Cesium.defined(this.options.transparentBackColor)) {\n this._imageryLayer.transparentBackColor = mars3d.Util.getCesiumColor(this.options.transparentBackColor);\n this._imageryLayer.transparentBackColorTolerance = this.options.transparentBackColorTolerance; //去黑边\n }\n }\n}\nfunction createImageryProvider(options) {\n options = mars3d.LayerUtil.converOptions(options);\n\n if (options.url instanceof Cesium.Resource) options.url = options.url.url;\n\n if (Cesium.defined(options.transparentBackColor)) {\n delete options.transparentBackColor;\n delete options.transparentBackColorTolerance;\n }\n return new Cesium.SuperMapImageryProvider(options);\n}\n\n/**\n * 创建用于图层的 ImageryProvider对象\n *\n * @param {Object} options Provider参数,同图层构造参数。\n * @return {Cesium.ImageryProvider} ImageryProvider类\n * @function\n */\nSmImgLayer.createImageryProvider = createImageryProvider;\n\nmars3d.layer.SmImgLayer = SmImgLayer;\n\n//注册下\nconst layerType = \"supermap_img\";\nmars3d.LayerUtil.register(layerType, SmImgLayer);\nmars3d.LayerUtil.registerImageryProvider(layerType, createImageryProvider);\n","import * as Cesium from \"cesium\";\nimport * as mars3d from \"mars3d\";\n\nlet BaseLayer = mars3d.layer.BaseLayer;\n\n/**\n * 超图MVT矢量瓦片图层,\n * 【需要引入 mars3d-supermap 插件库】\n *\n * @param {Object} [options] 参数对象,包括以下:\n * @param {String} options.url 适用于通过SuperMap桌面软件生成mvt数据,经iServer发布为rest风格的地图服务,只需提供服务地址。\n * @param {String} options.layer 图层名称,适用于第三方发布的WMTS服务。\n * @param {Number} [options.canvasWidth] 用来绘制矢量的纹理边长。默认是512,越大越精细,越小性能越高。\n * @param {String} [options.format='mvt'] 适用于第三方发布的WMTS服务。\n * @param {Object} [options.mapboxStyle] 使用的mapBox风格。\n * @param {Object} [options.其他] 参考[supermap官方API]{@link http://support.supermap.com.cn:8090/webgl/docs/Documentation/Scene.html#addVectorTilesLayer}\n *\n *\n * @param {String|Number} [options.id = uuid()] 图层id标识\n * @param {String|Number} [options.pid = -1] 图层父级的id,一般图层管理中使用\n * @param {String} [options.name = ''] 图层名称\n * @param {Boolean} [options.show = true] 图层是否显示\n * @param {BaseClass|Boolean} [options.eventParent] 指定的事件冒泡对象,默认为map对象,false时不冒泡\n * @param {Object} [options.center] 图层自定义定位视角 {@link Map#setCameraView}\n * @param {Number} options.center.lng 经度值, 180 - 180\n * @param {Number} options.center.lat 纬度值, -90 - 90\n * @param {Number} options.center.alt 高度值\n * @param {Number} options.center.heading 方向角度值,绕垂直于地心的轴旋转角度, 0-360\n * @param {Number} options.center.pitch 俯仰角度值,绕纬度线旋转角度, 0-360\n * @param {Number} options.center.roll 翻滚角度值,绕经度线旋转角度, 0-360\n * @param {Boolean} [options.flyTo] 加载完成数据后是否自动飞行定位到数据所在的区域。\n * @export\n * @class SmMvtLayer\n * @extends {BaseLayer}\n */\nexport class SmMvtLayer extends BaseLayer {\n /**\n * 对应的supermap图层 Cesium.VectorTilesLayer\n * @type {*}\n * @readonly\n * @see http://support.supermap.com.cn:8090/webgl/docs/Documentation/VectorTilesLayer.html\n */\n get layer() {\n return this._mvtLayer;\n }\n\n /**\n * 对象添加到地图前创建一些对象的钩子方法,\n * 只会调用一次\n * @return {void} 无\n * @private\n */\n _mountedHook() {\n //options参考API文档:http://support.supermap.com.cn:8090/webgl/docs/Documentation/Scene.html\n this._mvtLayer = this._map.scene.addVectorTilesMap(this.options);\n let layerReadyPromise = this._mvtLayer.readyPromise;\n\n Cesium.when(\n layerReadyPromise,\n (data) => {\n //setPaintProperty(layerId, name, value, options)\n // for(var layerId in that.options.style){\n // that._mvtLayer.setPaintProperty(layerId, \"fill-color\", \"rgba(255,0,0,0.8)\");\n // }\n },\n (error) => {\n this.showError(\"渲染时发生错误,已停止渲染。\", error);\n }\n );\n\n let scene = this._map.scene;\n let handler = new Cesium.ScreenSpaceEventHandler(scene.canvas);\n handler.setInputAction((event) => {\n if (!this.show) {\n return;\n }\n\n let position = mars3d.PointUtil.getCurrentMousePosition(scene, event.position);\n\n //查询出相交图层的feature\n let features = this._mvtLayer.queryRenderedFeatures([position], {\n // layers: [selectLayer.id]\n });\n\n let filter = features.reduce(\n (memo, result) => {\n let attr = result.feature.properties;\n if (!attr) {\n return;\n }\n\n let content = mars3d.Util.getPopupForConfig(this.options, attr);\n let item = {\n data: attr,\n event: event,\n };\n this._map.openPopup(position, content, item);\n },\n [\"in\", \"$id\"]\n );\n }, Cesium.ScreenSpaceEventType.LEFT_CLICK);\n\n this.handler = handler;\n }\n\n /**\n * 对象添加到地图上的创建钩子方法,\n * 每次add时都会调用\n * @return {void} 无\n * @private\n */\n _addedHook() {\n this._mvtLayer.show = true;\n // this._mvtLayer.refresh();\n }\n\n /**\n * 对象从地图上移除的创建钩子方法,\n * 每次remove时都会调用\n * @return {void} 无\n * @private\n */\n _removedHook() {\n if (this._mvtLayer) {\n this._mvtLayer.show = false;\n }\n }\n\n /**\n * 设置透明度\n * @param {Number} value 透明度\n * @return {void} 无\n */\n setOpacity(value) {\n if (this._mvtLayer) {\n this._mvtLayer.alpha = parseFloat(value);\n }\n }\n\n //定位至数据区域\n flyTo(options = {}) {\n if (this.options.center) {\n this._map.setCameraView(this.options.center, options);\n } else if (this.options.extent) {\n this._map.flyToExtent(this.options.extent, options);\n } else if (this._mvtLayer) {\n this._map.camera.flyTo({\n ...options,\n destination: this._mvtLayer.rectangle,\n });\n }\n }\n}\nmars3d.layer.SmMvtLayer = SmMvtLayer;\n\n//注册下\nmars3d.LayerUtil.register(\"supermap_mvt\", SmMvtLayer);\n","export { S3MLayer } from \"./supermap/S3MLayer\";\nexport { SmImgLayer } from \"./supermap/SmImgLayer\";\nexport { SmMvtLayer } from \"./supermap/SmMvtLayer\";\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack://mars3dSupermap/webpack/universalModuleDefinition","webpack://mars3dSupermap/webpack/bootstrap","webpack://mars3dSupermap/external \"mars3d\"","webpack://mars3dSupermap/./node_modules/@babel/runtime/helpers/getPrototypeOf.js","webpack://mars3dSupermap/./node_modules/@babel/runtime/helpers/classCallCheck.js","webpack://mars3dSupermap/./node_modules/@babel/runtime/helpers/createClass.js","webpack://mars3dSupermap/./node_modules/@babel/runtime/helpers/inherits.js","webpack://mars3dSupermap/./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","webpack://mars3dSupermap/./node_modules/@babel/runtime/helpers/get.js","webpack://mars3dSupermap/./node_modules/@babel/runtime/helpers/defineProperty.js","webpack://mars3dSupermap/./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack://mars3dSupermap/./node_modules/@babel/runtime/helpers/typeof.js","webpack://mars3dSupermap/./node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack://mars3dSupermap/./node_modules/@babel/runtime/helpers/superPropBase.js","webpack://mars3dSupermap/./src/supermap/S3MLayer.js","webpack://mars3dSupermap/./src/supermap/SmImgLayer.js","webpack://mars3dSupermap/./src/supermap/SmMvtLayer.js","webpack://mars3dSupermap/./src/index.js"],"names":["Cesium","mars3d","BaseLayer","S3MLayer","_layerArr","options","s3mOptions","value","key","val","Color","fromCssColorString","Number","i","length","layer","promise","layername","_map","scene","addS3MTilesLayerByScp","url","name","autoSetVie","flyTo","cullEnabled","open","sceneName","when","smLayer","Array","isArray","isS3M","position","alt","style3D","bottomAltitude","refresh","flyToByAnimationEnd","dataUrl","ql","setQueryParameter","dataSourceName","split","dataSetName","isMerge","selectEnabled","error","showError","visible","show","item","fillForeColor","alpha","center","setCameraView","extent","flyToExtent","register","BaseTileLayer","SmImgLayer","createImageryProvider","defined","transparentBackColor","_imageryLayer","getCesiumColor","transparentBackColorTolerance","converOptions","Resource","SuperMapImageryProvider","layerType","registerImageryProvider","SmMvtLayer","_mvtLayer","addVectorTilesMap","layerReadyPromise","readyPromise","data","handler","ScreenSpaceEventHandler","canvas","setInputAction","event","getCurrentMousePosition","features","queryRenderedFeatures","filter","reduce","memo","result","attr","feature","properties","content","getPopupForConfig","openPopup","ScreenSpaceEventType","LEFT_CLICK","parseFloat","camera","destination","rectangle"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;AClFA,gD;;;;;;ACAA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA,+G;;;;;;ACPA;AACA;AACA;AACA;AACA;;AAEA,+G;;;;;;ACNA;AACA,iBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA,4G;;;;;;ACnBA,qBAAqB,mBAAO,CAAC,CAAqB;;AAElD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,GAAG;AACH;AACA;;AAEA,yG;;;;;;ACpBA,cAAc,mBAAO,CAAC,CAA+B;;AAErD,4BAA4B,mBAAO,CAAC,EAA4B;;AAEhE;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;;AAEA,0H;;;;;;ACdA,oBAAoB,mBAAO,CAAC,EAAoB;;AAEhD;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,KAAK;AACL;;AAEA;AACA;;AAEA,oG;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,GAAG;AACH;AACA;;AAEA;AACA;;AAEA,+G;;;;;;ACfA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA,+G;;;;;;ACRA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;;AAEA,uG;;;;;;ACVA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,sH;;;;;;ACRA,qBAAqB,mBAAO,CAAC,CAAqB;;AAElD;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,8G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACXA;AACA,IAAMA,MAAM,GAAGC,0BAAf;AAEA,IAAIC,SAAS,GAAGD,yBAAA,CAAaC,SAA7B;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACO,IAAMC,iBAAb;AAAA;;AAAA;;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;AACE;AACF;AACA;AACA;AACA;AACA;AACE,mBAAY;AACV,aAAO,KAAKC,SAAZ;AACD;AAED;AACF;AACA;AACA;AACA;;AAfA;AAAA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;AApHH;;AAAA;AAAA,EAAgCnG,oBAAhC;AAsHAD,yBAAA,CAAauE,UAAb,GAA0BA,qBAA1B,C,CAEA;;AACAvE,6BAAA,CAAiByD,QAAjB,CAA0B,cAA1B,EAA0Cc,qBAA1C,E;;AC5JA;AACA","file":"mars3d-supermap-src.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"mars3d\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"mars3dSupermap\", [\"mars3d\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"mars3dSupermap\"] = factory(require(\"mars3d\"));\n\telse\n\t\troot[\"mars3dSupermap\"] = factory(root[\"mars3d\"]);\n})(window, function(__WEBPACK_EXTERNAL_MODULE__0__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 12);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nmodule.exports = _createClass, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var setPrototypeOf = require(\"./setPrototypeOf.js\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n Object.defineProperty(subClass, \"prototype\", {\n value: Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n }),\n writable: false\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"@babel/runtime/helpers/typeof\")[\"default\"];\n\nvar assertThisInitialized = require(\"./assertThisInitialized.js\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var superPropBase = require(\"./superPropBase.js\");\n\nfunction _get() {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n module.exports = _get = Reflect.get, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n } else {\n module.exports = _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(arguments.length < 3 ? target : receiver);\n }\n\n return desc.value;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n }\n\n return _get.apply(this, arguments);\n}\n\nmodule.exports = _get, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(obj);\n}\n\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var getPrototypeOf = require(\"./getPrototypeOf.js\");\n\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}\n\nmodule.exports = _superPropBase, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","import * as mars3d from \"mars3d\";\nconst Cesium = mars3d.Cesium;\n\nlet BaseLayer = mars3d.layer.BaseLayer;\n\n/**\n * 超图S3M三维模型图层,\n * 【需要引入 mars3d-supermap 插件库】\n *\n * @param {Object} [options] 参数对象,包括以下:\n * @param {String} options.url supermap的S3M服务地址,示例:\"url\": \"http://www.supermapol.com/realspace/services/3D-Olympic/rest/realspace\"\n * @param {String} [options.layername] 指定图层名称,未指定时,打开iserver场景服务下所有图层\n * @param {String} [options.sceneName] 工作空间中有多个场景,需要指定场景名称;设置为undefined,默认打开第一个\n * @param {Object} [options.s3mOptions] [S3M支持的参数]{@link http://support.supermap.com.cn:8090/webgl/docs/Documentation/S3MTilesLayer.html?classFilter=S3MTilesLayer} ,示例: {\"selectEnabled\":false},\n * @param {Object} [options.position] 模型新的中心点位置(移动模型)\n * @param {Number} options.position.alt 获取或设置底部高程。(单位:米)\n *\n * @param {String|Number} [options.id = uuid()] 图层id标识\n * @param {String|Number} [options.pid = -1] 图层父级的id,一般图层管理中使用\n * @param {String} [options.name = ''] 图层名称\n * @param {Boolean} [options.show = true] 图层是否显示\n * @param {BaseClass|Boolean} [options.eventParent] 指定的事件冒泡对象,默认为map对象,false时不冒泡\n * @param {Object} [options.center] 图层自定义定位视角 {@link Map#setCameraView}\n * @param {Number} options.center.lng 经度值, 180 - 180\n * @param {Number} options.center.lat 纬度值, -90 - 90\n * @param {Number} [options.center.alt] 高度值\n * @param {Number} [options.center.heading] 方向角度值,绕垂直于地心的轴旋转角度, 0-360\n * @param {Number} [options.center.pitch] 俯仰角度值,绕纬度线旋转角度, 0-360\n * @param {Number} [options.center.roll] 翻滚角度值,绕经度线旋转角度, 0-360\n * @param {Boolean} [options.flyTo] 加载完成数据后是否自动飞行定位到数据所在的区域。\n * @export\n * @class S3MLayer\n * @extends {BaseLayer}\n */\nexport class S3MLayer extends BaseLayer {\n /**\n * 模型对应的Cesium.S3MTilesLayer图层组\n * @type {Object[]}\n * @readonly\n * @see http://support.supermap.com.cn:8090/webgl/docs/Documentation/S3MTilesLayer.html\n */\n get layer() {\n return this._layerArr;\n }\n\n /**\n * 设置S3M图层本身支持的参数\n * @type {Object}\n * @see [S3M支持的参数]{@link http://support.supermap.com.cn:8090/webgl/docs/Documentation/S3MTilesLayer.html?classFilter=S3MTilesLayer}\n */\n get s3mOptions() {\n return this.options.s3mOptions;\n }\n set s3mOptions(value) {\n for (let key in value) {\n let val = value[key];\n this.options.s3mOptions[key] = val;\n\n if (key == \"transparentBackColor\") {\n //去黑边,与offset互斥,注意别配置offset\n val = Cesium.Color.fromCssColorString(val);\n } else if (key == \"transparentBackColorTolerance\") {\n val = Number(val);\n }\n\n for (let i = 0; i < this._layerArr.length; i++) {\n let layer = this._layerArr[i];\n if (layer == null) {\n continue;\n }\n layer[key] = val;\n }\n }\n }\n\n /**\n * 对象添加到地图前创建一些对象的钩子方法,\n * 只会调用一次\n * @return {void} 无\n * @private\n */\n _mountedHook() {\n //场景添加S3M图层服务\n let promise;\n if (this.options.layername) {\n promise = this._map.scene.addS3MTilesLayerByScp(this.options.url, {\n name: this.options.layername,\n autoSetVie: this.options.flyTo,\n cullEnabled: this.options.cullEnabled,\n });\n } else {\n promise = this._map.scene.open(this.options.url, this.options.sceneName, {\n autoSetVie: this.options.flyTo,\n });\n }\n\n Cesium.when(\n promise,\n (smLayer) => {\n if (Array.isArray(smLayer)) {\n this._layerArr = smLayer;\n } else {\n this._layerArr = [smLayer];\n }\n\n //设置图层属性\n for (let i = 0; i < this._layerArr.length; i++) {\n let layer = this._layerArr[i];\n if (layer == null) {\n continue;\n }\n\n layer.isS3M = true; //标识下\n\n //s3mOptions\n if (this.options.s3mOptions) {\n for (let key in this.options.s3mOptions) {\n let val = this.options.s3mOptions[key];\n if (key == \"transparentBackColor\") {\n //去黑边,与offset互斥,注意别配置offset\n layer[key] = Cesium.Color.fromCssColorString(val);\n } else if (key == \"transparentBackColorTolerance\") {\n layer[key] = Number(val);\n } else {\n layer[key] = this.options.s3mOptions[key];\n }\n }\n }\n\n //高度调整 offset.z\n if (this.options?.position?.alt) {\n layer.style3D.bottomAltitude = this.options.position.alt;\n layer.refresh();\n }\n }\n\n if (this.options.flyTo) {\n this.flyToByAnimationEnd();\n }\n\n if (this.options.dataUrl) {\n for (let i = 0; i < this._layerArr.length; i++) {\n let ql = this._layerArr[i];\n\n //读取子图层信息,通过数组的方式返回子图层的名称以及子图层所包含的对象的IDs\n ql.setQueryParameter({\n url: this.options.dataUrl,\n dataSourceName: ql.name.split(\"@\")[1],\n dataSetName: ql.name.split(\"@\")[0],\n isMerge: true,\n });\n\n //获取图层风格\n //Note_GJ: rgba, 1为不透明,0为全透明。已经在模型中导入材质,所以这里的颜色不特别设置\n //var style3D = new Cesium.Style3D();\n // var color = Cesium.Color.fromCssColorString(\"#919191\");//混泥土颜色 RGB(145, 145,145)\n // style3D.fillForeColor = color;\n // ql.style3D = style3D;\n //设置后需刷新图层\n // ql.refresh();\n ql.selectEnabled = true;\n }\n }\n },\n (error) => {\n this.showError(\"渲染时发生错误,已停止渲染。\", error);\n }\n );\n }\n\n /**\n * 对象添加到地图上的创建钩子方法,\n * 每次add时都会调用\n * @return {void} 无\n * @private\n */\n _addedHook() {\n for (let i in this._layerArr) {\n this._layerArr[i].visible = true;\n this._layerArr[i].show = true;\n }\n }\n\n /**\n * 对象从地图上移除的创建钩子方法,\n * 每次remove时都会调用\n * @return {void} 无\n * @private\n */\n _removedHook() {\n if (this._layerArr) {\n for (let i in this._layerArr) {\n this._layerArr[i].visible = false;\n this._layerArr[i].show = false;\n }\n }\n }\n\n /**\n * 设置透明度\n * @param {Number} value 透明度\n * @return {void} 无\n */\n setOpacity(value) {\n if (this._layerArr) {\n for (let i = 0; i < this._layerArr.length; i++) {\n let item = this._layerArr[i];\n if (item == null) {\n continue;\n }\n\n item.style3D.fillForeColor.alpha = value;\n }\n }\n }\n\n //定位至数据区域\n flyTo(options = {}) {\n if (this.options.center) {\n this._map.setCameraView(this.options.center, options);\n } else if (this.options.extent) {\n this._map.flyToExtent(this.options.extent, options);\n }\n }\n}\nmars3d.layer.S3MLayer = S3MLayer;\n\n//注册下\nmars3d.LayerUtil.register(\"supermap_s3m\", S3MLayer);\n","import * as mars3d from \"mars3d\";\nconst Cesium = mars3d.Cesium;\n\nlet BaseTileLayer = mars3d.layer.BaseTileLayer;\n\n/**\n * 超图影像瓦片服务图层,\n * 【需要引入 mars3d-supermap 插件库】\n *\n * @param {Object} [options] 参数对象,包括以下:\n * @param {String} options.url supermap的影像服务地址\n * @param {String|String[]} [options.subdomains] URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。\n * @param {String} [options.tileFormat] 影像图片格式,默认为png。\n * @param {Boolean} [options.transparent=true] 设置请求的地图服务的参数是否为transparent。\n * @param {String|Cesium.Color} [options.transparentBackColor] 设置影像透明色。\n * @param {Number} [options.transparentBackColorTolerance] 去黑边,设置影像透明色容限,取值范围为0.0~1.0。0.0表示完全透明,1.0表示完全不透明。\n * @param {String} [options.cacheKey] 影像的三维缓存密钥。\n *\n * @param {Number} [options.minimumLevel=0] 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。\n * @param {Number} [options.maximumLevel] 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。\n * @param {Number} [options.minimumTerrainLevel] 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。\n * @param {Number} [options.maximumTerrainLevel] 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。\n * @param {Object} [options.rectangle] 瓦片数据的矩形区域范围\n * @param {Number} options.rectangle.xmin 最小经度值, -180 至 180\n * @param {Number} options.rectangle.xmax 最大纬度值, -180 至 180\n * @param {Number} options.rectangle.ymin 最小纬度值, -90 至 90\n * @param {Number} options.rectangle.ymax 最大纬度值, -90 至 90\n * @param {Number[]} [options.bbox] bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。\n * @param {Number} [options.zIndex] 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面。\n * @param {CRS} [options.crs=CRS.EPSG:3857] 瓦片数据的坐标系信息,默认为墨卡托投影\n * @param {ChinaCRS} [options.chinaCRS] 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。\n *\n * @param {String} [options.proxy] 加载资源时要使用的代理服务url。\n * @param {Object} [options.templateValues] 一个对象,用于替换Url中的模板值的键/值对\n * @param {Object} [options.queryParameters] 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'},\n * @param {Object} [options.headers] 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' },\n * @param {Boolean} [options.enablePickFeatures=true] 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。\n * 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。\n * @param {Cesium.GetFeatureInfoFormat[]} [options.getFeatureInfoFormats] 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。\n *\n * @param {Number} [options.opacity = 1.0] 透明度,取值范围:0.0-1.0。\n * @param {Number|Function} [options.alpha=1.0] 同opacity。\n * @param {Number|Function} [options.nightAlpha=1.0] 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。\n * @param {Number|Function} [options.dayAlpha=1.0] 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。\n * @param {Number|Function} [options.brightness=1.0] 亮度\n * @param {Number|Function} [options.contrast=1.0] 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。\n * @param {Number|Function} [options.hue=0.0] 色调。 0.0 时未修改的图像颜色。\n * @param {Number|Function} [options.saturation=1.0] 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。\n * @param {Number|Function} [options.gamma=1.0] 伽马校正值。 1.0使用未修改的图像颜色。\n * @param {Number} [options.maximumAnisotropy=maximum supported] 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。\n * @param {Cesium.Rectangle} [options.cutoutRectangle] 制图矩形,用于裁剪此ImageryLayer的一部分。\n * @param {Cesium.Color} [options.colorToAlpha] 用作Alpha的颜色。\n * @param {Number} [options.colorToAlphaThreshold=0.004] 颜色到Alpha的阈值。\n * @param {Boolean} [options.hasAlphaChannel=true] 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。\n * @param {Number} [options.tileWidth=256] 图像图块的像素宽度。\n * @param {Number} [options.tileHeight=256] 图像图块的像素高度。\n * @param {Object} [options.customTags] 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。\n *\n * @param {String|Number} [options.id = uuid()] 图层id标识\n * @param {String|Number} [options.pid = -1] 图层父级的id,一般图层管理中使用\n * @param {String} [options.name = ''] 图层名称\n * @param {Boolean} [options.show = true] 图层是否显示\n * @param {BaseClass|Boolean} [options.eventParent] 指定的事件冒泡对象,默认为map对象,false时不冒泡\n * @param {Object} [options.center] 图层自定义定位视角 {@link Map#setCameraView}\n * @param {Number} options.center.lng 经度值, 180 - 180\n * @param {Number} options.center.lat 纬度值, -90 - 90\n * @param {Number} [options.center.alt] 高度值\n * @param {Number} [options.center.heading] 方向角度值,绕垂直于地心的轴旋转角度, 0-360\n * @param {Number} [options.center.pitch] 俯仰角度值,绕纬度线旋转角度, 0-360\n * @param {Number} [options.center.roll] 翻滚角度值,绕经度线旋转角度, 0-360\n * @param {Boolean} [options.flyTo] 加载完成数据后是否自动飞行定位到数据所在的区域。\n * @export\n * @class SmImgLayer\n * @extends {BaseTileLayer}\n *\n * @see http://support.supermap.com.cn:8090/webgl/docs/Documentation/SuperMapImageryProvider.html?classFilter=SuperMapImageryProvider\n */\nexport class SmImgLayer extends BaseTileLayer {\n //构建ImageryProvider\n _createImageryProvider(options) {\n return createImageryProvider(options);\n }\n //添加时\n _addedHook() {\n super._addedHook();\n\n if (Cesium.defined(this.options.transparentBackColor)) {\n this._imageryLayer.transparentBackColor = mars3d.Util.getCesiumColor(this.options.transparentBackColor);\n this._imageryLayer.transparentBackColorTolerance = this.options.transparentBackColorTolerance; //去黑边\n }\n }\n}\nfunction createImageryProvider(options) {\n options = mars3d.LayerUtil.converOptions(options);\n\n if (options.url instanceof Cesium.Resource) {\n options.url = options.url.url;\n }\n\n if (Cesium.defined(options.transparentBackColor)) {\n delete options.transparentBackColor;\n delete options.transparentBackColorTolerance;\n }\n return new Cesium.SuperMapImageryProvider(options);\n}\n\n/**\n * 创建用于图层的 ImageryProvider对象\n *\n * @param {Object} options Provider参数,同图层构造参数。\n * @return {Cesium.ImageryProvider} ImageryProvider类\n * @function\n */\nSmImgLayer.createImageryProvider = createImageryProvider;\n\nmars3d.layer.SmImgLayer = SmImgLayer;\n\n//注册下\nconst layerType = \"supermap_img\";\nmars3d.LayerUtil.register(layerType, SmImgLayer);\nmars3d.LayerUtil.registerImageryProvider(layerType, createImageryProvider);\n","import * as mars3d from \"mars3d\";\nconst Cesium = mars3d.Cesium;\n\nlet BaseLayer = mars3d.layer.BaseLayer;\n\n/**\n * 超图MVT矢量瓦片图层,\n * 【需要引入 mars3d-supermap 插件库】\n *\n * @param {Object} [options] 参数对象,包括以下:\n * @param {String} options.url 适用于通过SuperMap桌面软件生成mvt数据,经iServer发布为rest风格的地图服务,只需提供服务地址。\n * @param {String} options.layer 图层名称,适用于第三方发布的WMTS服务。\n * @param {Number} [options.canvasWidth] 用来绘制矢量的纹理边长。默认是512,越大越精细,越小性能越高。\n * @param {String} [options.format='mvt'] 适用于第三方发布的WMTS服务。\n * @param {Object} [options.mapboxStyle] 使用的mapBox风格。\n * @param {Object} [options.多个参数] 参考[supermap官方API]{@link http://support.supermap.com.cn:8090/webgl/docs/Documentation/Scene.html#addVectorTilesLayer}\n *\n *\n * @param {String|Number} [options.id = uuid()] 图层id标识\n * @param {String|Number} [options.pid = -1] 图层父级的id,一般图层管理中使用\n * @param {String} [options.name = ''] 图层名称\n * @param {Boolean} [options.show = true] 图层是否显示\n * @param {BaseClass|Boolean} [options.eventParent] 指定的事件冒泡对象,默认为map对象,false时不冒泡\n * @param {Object} [options.center] 图层自定义定位视角 {@link Map#setCameraView}\n * @param {Number} options.center.lng 经度值, 180 - 180\n * @param {Number} options.center.lat 纬度值, -90 - 90\n * @param {Number} [options.center.alt] 高度值\n * @param {Number} [options.center.heading] 方向角度值,绕垂直于地心的轴旋转角度, 0-360\n * @param {Number} [options.center.pitch] 俯仰角度值,绕纬度线旋转角度, 0-360\n * @param {Number} [options.center.roll] 翻滚角度值,绕经度线旋转角度, 0-360\n * @param {Boolean} [options.flyTo] 加载完成数据后是否自动飞行定位到数据所在的区域。\n * @export\n * @class SmMvtLayer\n * @extends {BaseLayer}\n */\nexport class SmMvtLayer extends BaseLayer {\n /**\n * 对应的supermap图层 Cesium.VectorTilesLayer\n * @type {*}\n * @readonly\n * @see http://support.supermap.com.cn:8090/webgl/docs/Documentation/VectorTilesLayer.html\n */\n get layer() {\n return this._mvtLayer;\n }\n\n /**\n * 对象添加到地图前创建一些对象的钩子方法,\n * 只会调用一次\n * @return {void} 无\n * @private\n */\n _mountedHook() {\n //options参考API文档:http://support.supermap.com.cn:8090/webgl/docs/Documentation/Scene.html\n this._mvtLayer = this._map.scene.addVectorTilesMap(this.options);\n let layerReadyPromise = this._mvtLayer.readyPromise;\n\n Cesium.when(\n layerReadyPromise,\n (data) => {\n //setPaintProperty(layerId, name, value, options)\n // for(var layerId in that.options.style){\n // that._mvtLayer.setPaintProperty(layerId, \"fill-color\", \"rgba(255,0,0,0.8)\");\n // }\n },\n (error) => {\n this.showError(\"渲染时发生错误,已停止渲染。\", error);\n }\n );\n\n let scene = this._map.scene;\n let handler = new Cesium.ScreenSpaceEventHandler(scene.canvas);\n handler.setInputAction((event) => {\n if (!this.show) {\n return;\n }\n\n let position = mars3d.PointUtil.getCurrentMousePosition(scene, event.position);\n\n //查询出相交图层的feature\n let features = this._mvtLayer.queryRenderedFeatures([position], {\n // layers: [selectLayer.id]\n });\n\n let filter = features.reduce(\n (memo, result) => {\n let attr = result.feature.properties;\n if (!attr) {\n return;\n }\n\n let content = mars3d.Util.getPopupForConfig(this.options, attr);\n let item = {\n data: attr,\n event: event,\n };\n this._map.openPopup(position, content, item);\n },\n [\"in\", \"$id\"]\n );\n }, Cesium.ScreenSpaceEventType.LEFT_CLICK);\n\n this.handler = handler;\n }\n\n /**\n * 对象添加到地图上的创建钩子方法,\n * 每次add时都会调用\n * @return {void} 无\n * @private\n */\n _addedHook() {\n this._mvtLayer.show = true;\n // this._mvtLayer.refresh();\n }\n\n /**\n * 对象从地图上移除的创建钩子方法,\n * 每次remove时都会调用\n * @return {void} 无\n * @private\n */\n _removedHook() {\n if (this._mvtLayer) {\n this._mvtLayer.show = false;\n }\n }\n\n /**\n * 设置透明度\n * @param {Number} value 透明度\n * @return {void} 无\n */\n setOpacity(value) {\n if (this._mvtLayer) {\n this._mvtLayer.alpha = parseFloat(value);\n }\n }\n\n //定位至数据区域\n flyTo(options = {}) {\n if (this.options.center) {\n this._map.setCameraView(this.options.center, options);\n } else if (this.options.extent) {\n this._map.flyToExtent(this.options.extent, options);\n } else if (this._mvtLayer) {\n this._map.camera.flyTo({\n ...options,\n destination: this._mvtLayer.rectangle,\n });\n }\n }\n}\nmars3d.layer.SmMvtLayer = SmMvtLayer;\n\n//注册下\nmars3d.LayerUtil.register(\"supermap_mvt\", SmMvtLayer);\n","export { S3MLayer } from \"./supermap/S3MLayer\";\nexport { SmImgLayer } from \"./supermap/SmImgLayer\";\nexport { SmMvtLayer } from \"./supermap/SmMvtLayer\";\n"],"sourceRoot":""}
|
package/dist/mars3d-supermap.js
CHANGED
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Mars3D平台插件,结合supermap超图库使用的功能插件
|
|
3
|
-
* 版本信息:v3.
|
|
4
|
-
* 编译日期:2022-
|
|
3
|
+
* 版本信息:v3.2.2
|
|
4
|
+
* 编译日期:2022-02-19 13:43:49
|
|
5
5
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
6
6
|
*/
|
|
7
7
|
(function webpackUniversalModuleDefinition(window) {
|
|
8
|
-
|
|
9
|
-
let Cesium = window.Cesium //通过index.html的head引入
|
|
10
|
-
// if (!Cesium && typeof exports === 'object') {
|
|
11
|
-
// Cesium = require('mars3d-cesium') //使用npm安装内置的Cesium
|
|
12
|
-
// require('mars3d-cesium/Build/Cesium/Widgets/widgets.css')
|
|
13
|
-
// window['Cesium'] = Cesium
|
|
14
|
-
// }
|
|
15
|
-
if (!Cesium) {
|
|
16
|
-
console.error('请引入超图版本Cesium库,可参考教程:http://mars3d.cn/dev/guide/basics/import.html')
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
8
|
let mars3d = window.mars3d //通过index.html的head引入
|
|
21
9
|
if (!mars3d && typeof exports === 'object') {
|
|
22
10
|
mars3d = require("mars3d")
|
|
@@ -28,12 +16,12 @@
|
|
|
28
16
|
|
|
29
17
|
/*!
|
|
30
18
|
* Mars3D平台插件,结合supermap超图库使用的功能插件
|
|
31
|
-
* 版本信息:v3.
|
|
32
|
-
* 编译日期:2022-
|
|
19
|
+
* 版本信息:v3.2.2, hash值: 1b336e78b164fe75a4c3
|
|
20
|
+
* 编译日期:2022-02-19 13:43:49
|
|
33
21
|
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
34
22
|
*
|
|
35
23
|
*/
|
|
36
|
-
window.mars3dSupermap=function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=13)}([function(e,t){e.exports=window.mars3d},function(e,t){e.exports=window.Cesium},function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,r(t)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(e,t,o){return t&&r(e.prototype,t),o&&r(e,o),e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){var o=r(9);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){var o=r(10).default,n=r(11);e.exports=function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return n(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){var o=r(12);function n(t,r,i){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=n=Reflect.get,e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e,t,r){var n=o(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(r):i.value}},e.exports.default=e.exports,e.exports.__esModule=!0),n(t,r,i||t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function r(t,o){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,r(t,o)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function r(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=r=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),r(t)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){var o=r(2);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){"use strict";r.r(t),r.d(t,"S3MLayer",(function(){return v})),r.d(t,"SmImgLayer",(function(){return b})),r.d(t,"SmMvtLayer",(function(){return M}));var o=r(3),n=r.n(o),i=r(4),s=r.n(i),a=r(5),u=r.n(a),l=r(6),c=r.n(l),p=r(2),f=r.n(p),y=r(1),d=r(0);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=f()(e);if(t){var n=f()(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return c()(this,r)}}var v=function(e){u()(r,e);var t=h(r);function r(){return n()(this,r),t.apply(this,arguments)}return s()(r,[{key:"layer",get:function(){return this._layerArr}},{key:"s3mOptions",get:function(){return this.options.s3mOptions},set:function(e){for(var t in e){var r=e[t];this.options.s3mOptions[t]=r,"transparentBackColor"==t?r=y.Color.fromCssColorString(r):"transparentBackColorTolerance"==t&&(r=Number(r));for(var o=0;o<this._layerArr.length;o++){var n=this._layerArr[o];null!=n&&(n[t]=r)}}}},{key:"_mountedHook",value:function(){var e,t=this;e=this.options.layername?this._map.scene.addS3MTilesLayerByScp(this.options.url,{name:this.options.layername,autoSetVie:this.options.flyTo,cullEnabled:this.options.cullEnabled}):this._map.scene.open(this.options.url,this.options.sceneName,{autoSetVie:this.options.flyTo}),y.when(e,(function(e){Array.isArray(e)?t._layerArr=e:t._layerArr=[e];for(var r=0;r<t._layerArr.length;r++){var o,n,i=t._layerArr[r];if(null!=i){if(i.isS3M=!0,t.options.s3mOptions)for(var s in t.options.s3mOptions){var a=t.options.s3mOptions[s];i[s]="transparentBackColor"==s?y.Color.fromCssColorString(a):"transparentBackColorTolerance"==s?Number(a):t.options.s3mOptions[s]}null!==(o=t.options)&&void 0!==o&&null!==(n=o.position)&&void 0!==n&&n.alt&&(i.style3D.bottomAltitude=t.options.position.alt,i.refresh())}}if(t.options.flyTo&&t.flyToByAnimationEnd(),t.options.dataUrl)for(var u=0;u<t._layerArr.length;u++){var l=t._layerArr[u];l.setQueryParameter({url:t.options.dataUrl,dataSourceName:l.name.split("@")[1],dataSetName:l.name.split("@")[0],isMerge:!0}),l.selectEnabled=!0}}),(function(e){t.showError("渲染时发生错误,已停止渲染。",e)}))}},{key:"_addedHook",value:function(){for(var e in this._layerArr)this._layerArr[e].visible=!0,this._layerArr[e].show=!0}},{key:"_removedHook",value:function(){if(this._layerArr)for(var e in this._layerArr)this._layerArr[e].visible=!1,this._layerArr[e].show=!1}},{key:"setOpacity",value:function(e){if(this._layerArr)for(var t=0;t<this._layerArr.length;t++){var r=this._layerArr[t];null!=r&&(r.style3D.fillForeColor.alpha=e)}}},{key:"flyTo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options.center?this._map.setCameraView(this.options.center,e):this.options.extent&&this._map.flyToExtent(this.options.extent,e)}}]),r}(d.layer.BaseLayer);d.layer.S3MLayer=v,d.LayerUtil.register("supermap_s3m",v);var _=r(7),m=r.n(_);function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=f()(e);if(t){var n=f()(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return c()(this,r)}}var b=function(e){u()(r,e);var t=x(r);function r(){return n()(this,r),t.apply(this,arguments)}return s()(r,[{key:"_createImageryProvider",value:function(e){return g(e)}},{key:"_addedHook",value:function(){m()(f()(r.prototype),"_addedHook",this).call(this),y.defined(this.options.transparentBackColor)&&(this._imageryLayer.transparentBackColor=d.Util.getCesiumColor(this.options.transparentBackColor),this._imageryLayer.transparentBackColorTolerance=this.options.transparentBackColorTolerance)}}]),r}(d.layer.BaseTileLayer);function g(e){return(e=d.LayerUtil.converOptions(e)).url instanceof y.Resource&&(e.url=e.url.url),y.defined(e.transparentBackColor)&&(delete e.transparentBackColor,delete e.transparentBackColorTolerance),new y.SuperMapImageryProvider(e)}b.createImageryProvider=g,d.layer.SmImgLayer=b;d.LayerUtil.register("supermap_img",b),d.LayerUtil.registerImageryProvider("supermap_img",g);var O=r(8),w=r.n(O);function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){w()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=f()(e);if(t){var n=f()(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return c()(this,r)}}var M=function(e){u()(r,e);var t=S(r);function r(){return n()(this,r),t.apply(this,arguments)}return s()(r,[{key:"layer",get:function(){return this._mvtLayer}},{key:"_mountedHook",value:function(){var e=this;this._mvtLayer=this._map.scene.addVectorTilesMap(this.options);var t=this._mvtLayer.readyPromise;y.when(t,(function(e){}),(function(t){e.showError("渲染时发生错误,已停止渲染。",t)}));var r=this._map.scene,o=new y.ScreenSpaceEventHandler(r.canvas);o.setInputAction((function(t){if(e.show){var o=d.PointUtil.getCurrentMousePosition(r,t.position);e._mvtLayer.queryRenderedFeatures([o],{}).reduce((function(r,n){var i=n.feature.properties;if(i){var s=d.Util.getPopupForConfig(e.options,i),a={data:i,event:t};e._map.openPopup(o,s,a)}}),["in","$id"])}}),y.ScreenSpaceEventType.LEFT_CLICK),this.handler=o}},{key:"_addedHook",value:function(){this._mvtLayer.show=!0}},{key:"_removedHook",value:function(){this._mvtLayer&&(this._mvtLayer.show=!1)}},{key:"setOpacity",value:function(e){this._mvtLayer&&(this._mvtLayer.alpha=parseFloat(e))}},{key:"flyTo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options.center?this._map.setCameraView(this.options.center,e):this.options.extent?this._map.flyToExtent(this.options.extent,e):this._mvtLayer&&this._map.camera.flyTo(P(P({},e),{},{destination:this._mvtLayer.rectangle}))}}]),r}(d.layer.BaseLayer);d.layer.SmMvtLayer=M,d.LayerUtil.register("supermap_mvt",M)}]);
|
|
24
|
+
window.mars3dSupermap=function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=12)}([function(e,t){e.exports=window.mars3d},function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(e,t,o){return t&&r(e.prototype,t),o&&r(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var o=r(8);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&o(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var o=r(9).default,n=r(10);e.exports=function(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var o=r(11);function n(){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=n=Reflect.get,e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=n=function(e,t,r){var n=o(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},e.exports.__esModule=!0,e.exports.default=e.exports),n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function r(t,o){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var o=r(1);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";r.r(t),r.d(t,"S3MLayer",(function(){return v})),r.d(t,"SmImgLayer",(function(){return g})),r.d(t,"SmMvtLayer",(function(){return L}));var o=r(2),n=r.n(o),i=r(3),a=r.n(i),s=r(4),u=r.n(s),l=r(5),c=r.n(l),p=r(1),f=r.n(p),y=r(0);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=f()(e);if(t){var n=f()(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return c()(this,r)}}var h=y.Cesium,v=function(e){u()(r,e);var t=d(r);function r(){return n()(this,r),t.apply(this,arguments)}return a()(r,[{key:"layer",get:function(){return this._layerArr}},{key:"s3mOptions",get:function(){return this.options.s3mOptions},set:function(e){for(var t in e){var r=e[t];this.options.s3mOptions[t]=r,"transparentBackColor"==t?r=h.Color.fromCssColorString(r):"transparentBackColorTolerance"==t&&(r=Number(r));for(var o=0;o<this._layerArr.length;o++){var n=this._layerArr[o];null!=n&&(n[t]=r)}}}},{key:"_mountedHook",value:function(){var e,t=this;e=this.options.layername?this._map.scene.addS3MTilesLayerByScp(this.options.url,{name:this.options.layername,autoSetVie:this.options.flyTo,cullEnabled:this.options.cullEnabled}):this._map.scene.open(this.options.url,this.options.sceneName,{autoSetVie:this.options.flyTo}),h.when(e,(function(e){Array.isArray(e)?t._layerArr=e:t._layerArr=[e];for(var r=0;r<t._layerArr.length;r++){var o,n,i=t._layerArr[r];if(null!=i){if(i.isS3M=!0,t.options.s3mOptions)for(var a in t.options.s3mOptions){var s=t.options.s3mOptions[a];i[a]="transparentBackColor"==a?h.Color.fromCssColorString(s):"transparentBackColorTolerance"==a?Number(s):t.options.s3mOptions[a]}null!==(o=t.options)&&void 0!==o&&null!==(n=o.position)&&void 0!==n&&n.alt&&(i.style3D.bottomAltitude=t.options.position.alt,i.refresh())}}if(t.options.flyTo&&t.flyToByAnimationEnd(),t.options.dataUrl)for(var u=0;u<t._layerArr.length;u++){var l=t._layerArr[u];l.setQueryParameter({url:t.options.dataUrl,dataSourceName:l.name.split("@")[1],dataSetName:l.name.split("@")[0],isMerge:!0}),l.selectEnabled=!0}}),(function(e){t.showError("渲染时发生错误,已停止渲染。",e)}))}},{key:"_addedHook",value:function(){for(var e in this._layerArr)this._layerArr[e].visible=!0,this._layerArr[e].show=!0}},{key:"_removedHook",value:function(){if(this._layerArr)for(var e in this._layerArr)this._layerArr[e].visible=!1,this._layerArr[e].show=!1}},{key:"setOpacity",value:function(e){if(this._layerArr)for(var t=0;t<this._layerArr.length;t++){var r=this._layerArr[t];null!=r&&(r.style3D.fillForeColor.alpha=e)}}},{key:"flyTo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options.center?this._map.setCameraView(this.options.center,e):this.options.extent&&this._map.flyToExtent(this.options.extent,e)}}]),r}(y.layer.BaseLayer);y.layer.S3MLayer=v,y.LayerUtil.register("supermap_s3m",v);var m=r(6),_=r.n(m);function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=f()(e);if(t){var n=f()(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return c()(this,r)}}var b=y.Cesium,g=function(e){u()(r,e);var t=x(r);function r(){return n()(this,r),t.apply(this,arguments)}return a()(r,[{key:"_createImageryProvider",value:function(e){return O(e)}},{key:"_addedHook",value:function(){_()(f()(r.prototype),"_addedHook",this).call(this),b.defined(this.options.transparentBackColor)&&(this._imageryLayer.transparentBackColor=y.Util.getCesiumColor(this.options.transparentBackColor),this._imageryLayer.transparentBackColorTolerance=this.options.transparentBackColorTolerance)}}]),r}(y.layer.BaseTileLayer);function O(e){return(e=y.LayerUtil.converOptions(e)).url instanceof b.Resource&&(e.url=e.url.url),b.defined(e.transparentBackColor)&&(delete e.transparentBackColor,delete e.transparentBackColorTolerance),new b.SuperMapImageryProvider(e)}g.createImageryProvider=O,y.layer.SmImgLayer=g;y.LayerUtil.register("supermap_img",g),y.LayerUtil.registerImageryProvider("supermap_img",O);var w=r(7),k=r.n(w);function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){k()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=f()(e);if(t){var n=f()(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return c()(this,r)}}var C=y.Cesium,L=function(e){u()(r,e);var t=j(r);function r(){return n()(this,r),t.apply(this,arguments)}return a()(r,[{key:"layer",get:function(){return this._mvtLayer}},{key:"_mountedHook",value:function(){var e=this;this._mvtLayer=this._map.scene.addVectorTilesMap(this.options);var t=this._mvtLayer.readyPromise;C.when(t,(function(e){}),(function(t){e.showError("渲染时发生错误,已停止渲染。",t)}));var r=this._map.scene,o=new C.ScreenSpaceEventHandler(r.canvas);o.setInputAction((function(t){if(e.show){var o=y.PointUtil.getCurrentMousePosition(r,t.position);e._mvtLayer.queryRenderedFeatures([o],{}).reduce((function(r,n){var i=n.feature.properties;if(i){var a=y.Util.getPopupForConfig(e.options,i),s={data:i,event:t};e._map.openPopup(o,a,s)}}),["in","$id"])}}),C.ScreenSpaceEventType.LEFT_CLICK),this.handler=o}},{key:"_addedHook",value:function(){this._mvtLayer.show=!0}},{key:"_removedHook",value:function(){this._mvtLayer&&(this._mvtLayer.show=!1)}},{key:"setOpacity",value:function(e){this._mvtLayer&&(this._mvtLayer.alpha=parseFloat(e))}},{key:"flyTo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options.center?this._map.setCameraView(this.options.center,e):this.options.extent?this._map.flyToExtent(this.options.extent,e):this._mvtLayer&&this._map.camera.flyTo(S(S({},e),{},{destination:this._mvtLayer.rectangle}))}}]),r}(y.layer.BaseLayer);y.layer.SmMvtLayer=L,y.LayerUtil.register("supermap_mvt",L)}]);
|
|
37
25
|
|
|
38
26
|
})(window);
|
|
39
27
|
|
package/package.json
CHANGED
|
@@ -1,37 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mars3d-supermap",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"description": "Mars3D平台插件,结合supermap超图库使用的功能插件",
|
|
5
5
|
"main": "dist/mars3d-supermap.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
|
-
"dependencies": {
|
|
10
|
-
|
|
11
|
-
"mars3d
|
|
9
|
+
"dependencies": {},
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"mars3d": "^3.2.2",
|
|
12
|
+
"@babel/core": "^7.14.3",
|
|
13
|
+
"@babel/eslint-parser": "^7.14.3",
|
|
14
|
+
"@babel/plugin-proposal-class-properties": "^7.14.3",
|
|
15
|
+
"@babel/plugin-transform-runtime": "^7.14.3",
|
|
16
|
+
"@babel/preset-env": "^7.14.3",
|
|
17
|
+
"babel-eslint": "^10.1.0",
|
|
18
|
+
"babel-loader": "^8.2.2",
|
|
19
|
+
"eslint": "^7.26.0",
|
|
20
|
+
"eslint-config-prettier": "^7.2.0",
|
|
21
|
+
"eslint-plugin-import": "^2.22.1",
|
|
22
|
+
"eslint-plugin-node": "^11.1.0",
|
|
23
|
+
"eslint-plugin-prettier": "^3.3.1",
|
|
24
|
+
"eslint-plugin-promise": "^4.3.1",
|
|
25
|
+
"prettier": "^2.2.1",
|
|
26
|
+
"webpack": "^4.46.0",
|
|
27
|
+
"webpack-cli": "^3.3.12"
|
|
12
28
|
},
|
|
13
|
-
"devDependencies": {},
|
|
14
29
|
"scripts": {
|
|
15
|
-
"
|
|
30
|
+
"build": "webpack --env.prod --env.min --progress --profile --colors --config ./scripts/webpack.config.js && webpack --env.prod --progress --profile --colors --config ./scripts/webpack.config.js --devtool source-map",
|
|
31
|
+
"build-src": "webpack --env.prod --progress --profile --colors --config ./scripts/webpack.config.js --devtool source-map",
|
|
32
|
+
"build-min": "webpack --env.prod --env.min --progress --profile --colors --config ./scripts/webpack.config.js",
|
|
33
|
+
"build-npm": "webpack --env.prod --progress --profile --colors --config ./scripts/webpack.config.js --devtool source-map && webpack --env.prod --env.min --progress --profile --colors --config ./scripts/webpack.npm.js && node scripts/npm/buildNpm.js",
|
|
16
34
|
"push": "npm publish"
|
|
17
35
|
},
|
|
18
36
|
"repository": {
|
|
19
37
|
"type": "git",
|
|
20
|
-
"url": "https://github.com/marsgis/mars3d.git"
|
|
38
|
+
"url": "https://github.com/marsgis/mars3d-plugin.git"
|
|
21
39
|
},
|
|
22
40
|
"bugs": {
|
|
23
|
-
"url": "https://github.com/marsgis/mars3d/issues",
|
|
41
|
+
"url": "https://github.com/marsgis/mars3d-plugin/issues",
|
|
24
42
|
"email": "wh@marsgis.cn"
|
|
25
43
|
},
|
|
26
44
|
"keywords": [
|
|
27
45
|
"marsgis",
|
|
28
46
|
"mars3d",
|
|
29
47
|
"cesium",
|
|
48
|
+
"webgl",
|
|
49
|
+
"gis",
|
|
30
50
|
"3dgis",
|
|
31
51
|
"webgis",
|
|
32
52
|
"heatmap"
|
|
33
53
|
],
|
|
34
|
-
"license": "Apache-2.0",
|
|
35
54
|
"author": "火星科技",
|
|
55
|
+
"license": "Apache-2.0",
|
|
36
56
|
"homepage": "http://mars3d.cn"
|
|
37
57
|
}
|