mars3d-supermap 3.4.2 → 3.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mars3d-supermap.js +814 -1
- package/package.json +2 -2
package/dist/mars3d-supermap.js
CHANGED
|
@@ -1 +1,814 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Mars3D平台插件,结合supermap超图库使用的功能插件 mars3d-supermap
|
|
3
|
+
*
|
|
4
|
+
* 版本信息:v3.4.3
|
|
5
|
+
* 编译日期:2022-08-09 14:07:48
|
|
6
|
+
* 版权所有:Copyright by 火星科技 http://mars3d.cn
|
|
7
|
+
* 使用单位:免费公开版 ,2022-06-01
|
|
8
|
+
*/
|
|
9
|
+
(function (global, factory) {
|
|
10
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, (window.mars3d || require('mars3d'))) :
|
|
11
|
+
typeof define === 'function' && define.amd ? define(['exports', 'mars3d'], factory) :
|
|
12
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["mars3d-supermap"] = {}, global.mars3d));
|
|
13
|
+
})(this, (function (exports, mars3d) { 'use strict';
|
|
14
|
+
|
|
15
|
+
function _interopNamespace(e) {
|
|
16
|
+
if (e && e.__esModule) return e;
|
|
17
|
+
var n = Object.create(null);
|
|
18
|
+
if (e) {
|
|
19
|
+
Object.keys(e).forEach(function (k) {
|
|
20
|
+
if (k !== 'default') {
|
|
21
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
22
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return e[k]; }
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
n["default"] = e;
|
|
30
|
+
return n;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
var mars3d__namespace = /*#__PURE__*/_interopNamespace(mars3d);
|
|
34
|
+
|
|
35
|
+
function ownKeys(object, enumerableOnly) {
|
|
36
|
+
var keys = Object.keys(object);
|
|
37
|
+
|
|
38
|
+
if (Object.getOwnPropertySymbols) {
|
|
39
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
40
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
41
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
42
|
+
})), keys.push.apply(keys, symbols);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return keys;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function _objectSpread2(target) {
|
|
49
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
50
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
51
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
52
|
+
_defineProperty(target, key, source[key]);
|
|
53
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
54
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return target;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function _classCallCheck(instance, Constructor) {
|
|
62
|
+
if (!(instance instanceof Constructor)) {
|
|
63
|
+
throw new TypeError("Cannot call a class as a function");
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function _defineProperties(target, props) {
|
|
68
|
+
for (var i = 0; i < props.length; i++) {
|
|
69
|
+
var descriptor = props[i];
|
|
70
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
71
|
+
descriptor.configurable = true;
|
|
72
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
73
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
78
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
79
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
80
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
81
|
+
writable: false
|
|
82
|
+
});
|
|
83
|
+
return Constructor;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function _defineProperty(obj, key, value) {
|
|
87
|
+
if (key in obj) {
|
|
88
|
+
Object.defineProperty(obj, key, {
|
|
89
|
+
value: value,
|
|
90
|
+
enumerable: true,
|
|
91
|
+
configurable: true,
|
|
92
|
+
writable: true
|
|
93
|
+
});
|
|
94
|
+
} else {
|
|
95
|
+
obj[key] = value;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return obj;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function _inherits(subClass, superClass) {
|
|
102
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
103
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
107
|
+
constructor: {
|
|
108
|
+
value: subClass,
|
|
109
|
+
writable: true,
|
|
110
|
+
configurable: true
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
Object.defineProperty(subClass, "prototype", {
|
|
114
|
+
writable: false
|
|
115
|
+
});
|
|
116
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function _getPrototypeOf(o) {
|
|
120
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
121
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
122
|
+
};
|
|
123
|
+
return _getPrototypeOf(o);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function _setPrototypeOf(o, p) {
|
|
127
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
128
|
+
o.__proto__ = p;
|
|
129
|
+
return o;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
return _setPrototypeOf(o, p);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function _isNativeReflectConstruct() {
|
|
136
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
137
|
+
if (Reflect.construct.sham) return false;
|
|
138
|
+
if (typeof Proxy === "function") return true;
|
|
139
|
+
|
|
140
|
+
try {
|
|
141
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
142
|
+
return true;
|
|
143
|
+
} catch (e) {
|
|
144
|
+
return false;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
function _assertThisInitialized(self) {
|
|
149
|
+
if (self === void 0) {
|
|
150
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return self;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
function _possibleConstructorReturn(self, call) {
|
|
157
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
158
|
+
return call;
|
|
159
|
+
} else if (call !== void 0) {
|
|
160
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
return _assertThisInitialized(self);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
function _createSuper(Derived) {
|
|
167
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
168
|
+
|
|
169
|
+
return function _createSuperInternal() {
|
|
170
|
+
var Super = _getPrototypeOf(Derived),
|
|
171
|
+
result;
|
|
172
|
+
|
|
173
|
+
if (hasNativeReflectConstruct) {
|
|
174
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
175
|
+
|
|
176
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
177
|
+
} else {
|
|
178
|
+
result = Super.apply(this, arguments);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
return _possibleConstructorReturn(this, result);
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
function _superPropBase(object, property) {
|
|
186
|
+
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
|
187
|
+
object = _getPrototypeOf(object);
|
|
188
|
+
if (object === null) break;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
return object;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
function _get() {
|
|
195
|
+
if (typeof Reflect !== "undefined" && Reflect.get) {
|
|
196
|
+
_get = Reflect.get;
|
|
197
|
+
} else {
|
|
198
|
+
_get = function _get(target, property, receiver) {
|
|
199
|
+
var base = _superPropBase(target, property);
|
|
200
|
+
|
|
201
|
+
if (!base) return;
|
|
202
|
+
var desc = Object.getOwnPropertyDescriptor(base, property);
|
|
203
|
+
|
|
204
|
+
if (desc.get) {
|
|
205
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
return desc.value;
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
return _get.apply(this, arguments);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
var Cesium$2 = mars3d__namespace.Cesium;
|
|
216
|
+
var BaseLayer$1 = mars3d__namespace.layer.BaseLayer;
|
|
217
|
+
/**
|
|
218
|
+
* 超图S3M三维模型图层,
|
|
219
|
+
* 【需要引入 mars3d-supermap 插件库】
|
|
220
|
+
*
|
|
221
|
+
* @param {Object} [options] 参数对象,包括以下:
|
|
222
|
+
* @param {String} options.url supermap的S3M服务地址,示例:"url": "http://www.supermapol.com/realspace/services/3D-Olympic/rest/realspace"
|
|
223
|
+
* @param {String} [options.layername] 指定图层名称,未指定时,打开iserver场景服务下所有图层
|
|
224
|
+
* @param {String} [options.sceneName] 工作空间中有多个场景,需要指定场景名称;设置为undefined,默认打开第一个
|
|
225
|
+
* @param {Object} [options.s3mOptions] [S3M支持的参数]{@link http://support.supermap.com.cn:8090/webgl/docs/Documentation/S3MTilesLayer.html?classFilter=S3MTilesLayer} ,示例: {"selectEnabled":false},
|
|
226
|
+
* @param {Object} [options.position] 模型新的中心点位置(移动模型)
|
|
227
|
+
* @param {Number} options.position.alt 获取或设置底部高程。(单位:米)
|
|
228
|
+
*
|
|
229
|
+
* @param {String|Number} [options.id = createGuid()] 图层id标识
|
|
230
|
+
* @param {String|Number} [options.pid = -1] 图层父级的id,一般图层管理中使用
|
|
231
|
+
* @param {String} [options.name = ''] 图层名称
|
|
232
|
+
* @param {Boolean} [options.show = true] 图层是否显示
|
|
233
|
+
* @param {BaseClass|Boolean} [options.eventParent] 指定的事件冒泡对象,默认为map对象,false时不冒泡
|
|
234
|
+
* @param {Object} [options.center] 图层自定义定位视角 {@link Map#setCameraView}
|
|
235
|
+
* @param {Number} options.center.lng 经度值, 180 - 180
|
|
236
|
+
* @param {Number} options.center.lat 纬度值, -90 - 90
|
|
237
|
+
* @param {Number} [options.center.alt] 高度值
|
|
238
|
+
* @param {Number} [options.center.heading] 方向角度值,绕垂直于地心的轴旋转角度, 0-360
|
|
239
|
+
* @param {Number} [options.center.pitch] 俯仰角度值,绕纬度线旋转角度, 0-360
|
|
240
|
+
* @param {Number} [options.center.roll] 翻滚角度值,绕经度线旋转角度, 0-360
|
|
241
|
+
* @param {Boolean} [options.flyTo] 加载完成数据后是否自动飞行定位到数据所在的区域。
|
|
242
|
+
* @export
|
|
243
|
+
* @class S3MLayer
|
|
244
|
+
* @extends {BaseLayer}
|
|
245
|
+
*/
|
|
246
|
+
|
|
247
|
+
var S3MLayer = /*#__PURE__*/function (_BaseLayer) {
|
|
248
|
+
_inherits(S3MLayer, _BaseLayer);
|
|
249
|
+
|
|
250
|
+
var _super = _createSuper(S3MLayer);
|
|
251
|
+
|
|
252
|
+
function S3MLayer() {
|
|
253
|
+
_classCallCheck(this, S3MLayer);
|
|
254
|
+
|
|
255
|
+
return _super.apply(this, arguments);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
_createClass(S3MLayer, [{
|
|
259
|
+
key: "layer",
|
|
260
|
+
get:
|
|
261
|
+
/**
|
|
262
|
+
* 模型对应的Cesium.S3MTilesLayer图层组
|
|
263
|
+
* @type {Object[]}
|
|
264
|
+
* @readonly
|
|
265
|
+
* @see http://support.supermap.com.cn:8090/webgl/docs/Documentation/S3MTilesLayer.html
|
|
266
|
+
*/
|
|
267
|
+
function get() {
|
|
268
|
+
return this._layerArr;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* 设置S3M图层本身支持的参数
|
|
272
|
+
* @type {Object}
|
|
273
|
+
* @see [S3M支持的参数]{@link http://support.supermap.com.cn:8090/webgl/docs/Documentation/S3MTilesLayer.html?classFilter=S3MTilesLayer}
|
|
274
|
+
*/
|
|
275
|
+
|
|
276
|
+
}, {
|
|
277
|
+
key: "s3mOptions",
|
|
278
|
+
get: function get() {
|
|
279
|
+
return this.options.s3mOptions;
|
|
280
|
+
},
|
|
281
|
+
set: function set(value) {
|
|
282
|
+
for (var key in value) {
|
|
283
|
+
var val = value[key];
|
|
284
|
+
this.options.s3mOptions[key] = val;
|
|
285
|
+
|
|
286
|
+
if (key === "transparentBackColor") {
|
|
287
|
+
// 去黑边,与offset互斥,注意别配置offset
|
|
288
|
+
val = Cesium$2.Color.fromCssColorString(val);
|
|
289
|
+
} else if (key === "transparentBackColorTolerance") {
|
|
290
|
+
val = Number(val);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
for (var i = 0; i < this._layerArr.length; i++) {
|
|
294
|
+
var layer = this._layerArr[i];
|
|
295
|
+
|
|
296
|
+
if (layer == null) {
|
|
297
|
+
continue;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
layer[key] = val;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}, {
|
|
305
|
+
key: "_showHook",
|
|
306
|
+
value: function _showHook(show) {
|
|
307
|
+
this.eachLayer(function (layer) {
|
|
308
|
+
layer.visible = show; // 不同超图版本,有的是visible,有的是show
|
|
309
|
+
|
|
310
|
+
layer.show = show;
|
|
311
|
+
}, this);
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* 对象添加到地图前创建一些对象的钩子方法,
|
|
315
|
+
* 只会调用一次
|
|
316
|
+
* @return {void} 无
|
|
317
|
+
* @private
|
|
318
|
+
*/
|
|
319
|
+
|
|
320
|
+
}, {
|
|
321
|
+
key: "_mountedHook",
|
|
322
|
+
value: function _mountedHook() {
|
|
323
|
+
var _this = this;
|
|
324
|
+
|
|
325
|
+
if (!this._map.scene.open) {
|
|
326
|
+
throw new Error("请引入 超图版本Cesium库 或 超图S3M插件 ");
|
|
327
|
+
} // 场景添加S3M图层服务
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
var promise;
|
|
331
|
+
|
|
332
|
+
if (this.options.layername) {
|
|
333
|
+
promise = this._map.scene.addS3MTilesLayerByScp(this.options.url, {
|
|
334
|
+
name: this.options.layername,
|
|
335
|
+
autoSetVie: this.options.flyTo,
|
|
336
|
+
cullEnabled: this.options.cullEnabled
|
|
337
|
+
});
|
|
338
|
+
} else {
|
|
339
|
+
promise = this._map.scene.open(this.options.url, this.options.sceneName, {
|
|
340
|
+
autoSetVie: this.options.flyTo
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
promise.then(function (smLayer) {
|
|
345
|
+
if (Array.isArray(smLayer)) {
|
|
346
|
+
_this._layerArr = smLayer;
|
|
347
|
+
} else {
|
|
348
|
+
_this._layerArr = [smLayer];
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
for (var i = 0; i < _this._layerArr.length; i++) {
|
|
352
|
+
var layer = _this._layerArr[i];
|
|
353
|
+
|
|
354
|
+
if (!layer) {
|
|
355
|
+
continue;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
try {
|
|
359
|
+
_this._initModelItem(layer);
|
|
360
|
+
} catch (e) {
|
|
361
|
+
mars3d__namespace.Log.logError("s3m图层初始化出错", e);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
_this._showHook(_this.show);
|
|
366
|
+
|
|
367
|
+
if (_this.options.flyTo) {
|
|
368
|
+
_this.flyToByAnimationEnd();
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
_this._readyPromise.resolve(_this);
|
|
372
|
+
|
|
373
|
+
_this.fire(mars3d__namespace.EventType.load, {
|
|
374
|
+
layers: _this._layerArr
|
|
375
|
+
});
|
|
376
|
+
}, function (error) {
|
|
377
|
+
_this._readyPromise && _this._readyPromise.reject(error);
|
|
378
|
+
}); // this._map.viewer.pickEvent.addEventListener(function (feature) {
|
|
379
|
+
// debugger;
|
|
380
|
+
// });
|
|
381
|
+
} // 对单个s3m图层处理
|
|
382
|
+
|
|
383
|
+
}, {
|
|
384
|
+
key: "_initModelItem",
|
|
385
|
+
value: function _initModelItem(layer) {
|
|
386
|
+
var _this$options, _this$options$positio;
|
|
387
|
+
|
|
388
|
+
// 图层参数合并
|
|
389
|
+
if (this.options.s3mOptions) {
|
|
390
|
+
for (var key in this.options.s3mOptions) {
|
|
391
|
+
var val = this.options.s3mOptions[key];
|
|
392
|
+
|
|
393
|
+
if (key === "transparentBackColor") {
|
|
394
|
+
layer[key] = Cesium$2.Color.fromCssColorString(val); // 去黑边
|
|
395
|
+
} else if (key === "transparentBackColorTolerance") {
|
|
396
|
+
layer[key] = Number(val);
|
|
397
|
+
} else {
|
|
398
|
+
layer[key] = val;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
} // 选中颜色
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
if (this.options.highlight) {
|
|
405
|
+
layer.selectedColor = mars3d__namespace.Util.getColorByStyle(this.options.highlight);
|
|
406
|
+
} // 高度调整
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
if ((_this$options = this.options) !== null && _this$options !== void 0 && (_this$options$positio = _this$options.position) !== null && _this$options$positio !== void 0 && _this$options$positio.alt) {
|
|
410
|
+
layer.style3D.altitudeMode = Cesium$2.HeightReference.NONE;
|
|
411
|
+
layer.style3D.bottomAltitude = this.options.position.alt;
|
|
412
|
+
|
|
413
|
+
if (layer.refresh) {
|
|
414
|
+
layer.refresh(); // 设置风格后需刷新
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* 对象添加到地图上的创建钩子方法,
|
|
420
|
+
* 每次add时都会调用
|
|
421
|
+
* @return {void} 无
|
|
422
|
+
* @private
|
|
423
|
+
*/
|
|
424
|
+
|
|
425
|
+
}, {
|
|
426
|
+
key: "_addedHook",
|
|
427
|
+
value: function _addedHook() {
|
|
428
|
+
this._showHook(this.show);
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* 对象从地图上移除的创建钩子方法,
|
|
432
|
+
* 每次remove时都会调用
|
|
433
|
+
* @return {void} 无
|
|
434
|
+
* @private
|
|
435
|
+
*/
|
|
436
|
+
|
|
437
|
+
}, {
|
|
438
|
+
key: "_removedHook",
|
|
439
|
+
value: function _removedHook() {
|
|
440
|
+
this._showHook(false);
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* 遍历每一个子图层并将其作为参数传递给回调函数
|
|
444
|
+
*
|
|
445
|
+
* @param {Function} method 回调方法
|
|
446
|
+
* @param {Object} [context] 侦听器的上下文(this关键字将指向的对象)。
|
|
447
|
+
* @return {GroupLayer} 当前对象本身,可以链式调用
|
|
448
|
+
*/
|
|
449
|
+
|
|
450
|
+
}, {
|
|
451
|
+
key: "eachLayer",
|
|
452
|
+
value: function eachLayer(method, context) {
|
|
453
|
+
if (!this._layerArr) {
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
this._layerArr.forEach(function (layer) {
|
|
458
|
+
method.call(context, layer);
|
|
459
|
+
});
|
|
460
|
+
|
|
461
|
+
return this;
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* 设置透明度
|
|
465
|
+
* @param {Number} value 透明度
|
|
466
|
+
* @return {void} 无
|
|
467
|
+
*/
|
|
468
|
+
|
|
469
|
+
}, {
|
|
470
|
+
key: "setOpacity",
|
|
471
|
+
value: function setOpacity(value) {
|
|
472
|
+
this.eachLayer(function (layer) {
|
|
473
|
+
layer.style3D.fillForeColor.alpha = value;
|
|
474
|
+
}, this);
|
|
475
|
+
} // 定位至数据区域
|
|
476
|
+
|
|
477
|
+
}, {
|
|
478
|
+
key: "flyTo",
|
|
479
|
+
value: function flyTo() {
|
|
480
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
481
|
+
|
|
482
|
+
if (this.options.center) {
|
|
483
|
+
return this._map.setCameraView(this.options.center, options);
|
|
484
|
+
} else if (this.options.extent) {
|
|
485
|
+
return this._map.flyToExtent(this.options.extent, options);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}]);
|
|
489
|
+
|
|
490
|
+
return S3MLayer;
|
|
491
|
+
}(BaseLayer$1);
|
|
492
|
+
mars3d__namespace.layer.S3MLayer = S3MLayer; // 注册下
|
|
493
|
+
|
|
494
|
+
mars3d__namespace.LayerUtil.register("supermap_s3m", S3MLayer);
|
|
495
|
+
|
|
496
|
+
var Cesium$1 = mars3d__namespace.Cesium;
|
|
497
|
+
var BaseTileLayer = mars3d__namespace.layer.BaseTileLayer;
|
|
498
|
+
/**
|
|
499
|
+
* 超图影像瓦片服务图层,
|
|
500
|
+
* 【需要引入 mars3d-supermap 插件库】
|
|
501
|
+
*
|
|
502
|
+
* @param {Object} [options] 参数对象,包括以下:
|
|
503
|
+
* @param {String} options.url supermap的影像服务地址
|
|
504
|
+
* @param {String|String[]} [options.subdomains] URL模板中用于 {s} 占位符的子域。 如果此参数是单个字符串,则字符串中的每个字符都是一个子域。如果是 一个数组,数组中的每个元素都是一个子域。
|
|
505
|
+
* @param {String} [options.tileFormat] 影像图片格式,默认为png。
|
|
506
|
+
* @param {Boolean} [options.transparent=true] 设置请求的地图服务的参数是否为transparent。
|
|
507
|
+
* @param {String|Cesium.Color} [options.transparentBackColor] 设置影像透明色。
|
|
508
|
+
* @param {Number} [options.transparentBackColorTolerance] 去黑边,设置影像透明色容限,取值范围为0.0~1.0。0.0表示完全透明,1.0表示完全不透明。
|
|
509
|
+
* @param {String} [options.cacheKey] 影像的三维缓存密钥。
|
|
510
|
+
*
|
|
511
|
+
* @param {Number} [options.minimumLevel=0] 瓦片所支持的最低层级,如果数据没有第0层,该参数必须配置,当地图小于该级别时,平台不去请求服务数据。
|
|
512
|
+
* @param {Number} [options.maximumLevel] 瓦片所支持的最大层级,大于该层级时会显示上一层拉伸后的瓦片,当地图大于该级别时,平台不去请求服务数据。
|
|
513
|
+
* @param {Number} [options.minimumTerrainLevel] 展示影像图层的最小地形细节级别,小于该级别时,平台不显示影像数据。
|
|
514
|
+
* @param {Number} [options.maximumTerrainLevel] 展示影像图层的最大地形细节级别,大于该级别时,平台不显示影像数据。
|
|
515
|
+
* @param {Object} [options.rectangle] 瓦片数据的矩形区域范围
|
|
516
|
+
* @param {Number} options.rectangle.xmin 最小经度值, -180 至 180
|
|
517
|
+
* @param {Number} options.rectangle.xmax 最大纬度值, -180 至 180
|
|
518
|
+
* @param {Number} options.rectangle.ymin 最小纬度值, -90 至 90
|
|
519
|
+
* @param {Number} options.rectangle.ymax 最大纬度值, -90 至 90
|
|
520
|
+
* @param {Number[]} [options.bbox] bbox规范的瓦片数据的矩形区域范围,与rectangle二选一即可。
|
|
521
|
+
* @param {Number} [options.zIndex] 控制图层的叠加层次,默认按加载的顺序进行叠加,但也可以自定义叠加顺序,数字大的在上面(只对同类型图层间有效)。
|
|
522
|
+
* @param {CRS} [options.crs=CRS.EPSG:3857] 瓦片数据的坐标系信息,默认为墨卡托投影
|
|
523
|
+
* @param {ChinaCRS} [options.chinaCRS] 标识瓦片的国内坐标系(用于自动纠偏或加偏),自动将瓦片转为map对应的chinaCRS类型坐标系。
|
|
524
|
+
*
|
|
525
|
+
* @param {String} [options.proxy] 加载资源时要使用的代理服务url。
|
|
526
|
+
* @param {Object} [options.templateValues] 一个对象,用于替换Url中的模板值的键/值对
|
|
527
|
+
* @param {Object} [options.queryParameters] 一个对象,其中包含在检索资源时将发送的查询参数。比如:queryParameters: {'access_token': '123-435-456-000'},
|
|
528
|
+
* @param {Object} [options.headers] 一个对象,将发送的其他HTTP标头。比如:headers: { 'X-My-Header': 'valueOfHeader' },
|
|
529
|
+
* @param {Boolean} [options.enablePickFeatures=true] 如果为true,则 {@link UrlTemplateImageryProvider#pickFeatures} 请求 pickFeaturesUrl 并尝试解释响应中包含的功能。
|
|
530
|
+
* 如果为 false{@link UrlTemplateImageryProvider#pickFeatures} 会立即返回未定义(表示没有可拾取的内容) 功能)而无需与服务器通信。如果您知道数据,则将此属性设置为false 源不支持选择功能,或者您不希望该提供程序的功能可供选择。注意 可以通过修改 {@link UriTemplateImageryProvider#enablePickFeatures}来动态覆盖 属性。
|
|
531
|
+
* @param {Cesium.GetFeatureInfoFormat[]} [options.getFeatureInfoFormats] 在某处获取功能信息的格式 调用 {@link UrlTemplateImageryProvider#pickFeatures} 的特定位置。如果这 参数未指定,功能选择已禁用。
|
|
532
|
+
*
|
|
533
|
+
* @param {Number} [options.opacity = 1.0] 透明度,取值范围:0.0-1.0。
|
|
534
|
+
* @param {Number|Function} [options.alpha=1.0] 同opacity。
|
|
535
|
+
* @param {Number|Function} [options.nightAlpha=1.0] 当 enableLighting 为 true 时 ,在地球的夜晚区域的透明度,取值范围:0.0-1.0。
|
|
536
|
+
* @param {Number|Function} [options.dayAlpha=1.0] 当 enableLighting 为 true 时,在地球的白天区域的透明度,取值范围:0.0-1.0。
|
|
537
|
+
* @param {Number|Function} [options.brightness=1.0] 亮度
|
|
538
|
+
* @param {Number|Function} [options.contrast=1.0] 对比度。 1.0使用未修改的图像颜色,小于1.0会降低对比度,而大于1.0则会提高对比度。
|
|
539
|
+
* @param {Number|Function} [options.hue=0.0] 色调。 0.0 时未修改的图像颜色。
|
|
540
|
+
* @param {Number|Function} [options.saturation=1.0] 饱和度。 1.0使用未修改的图像颜色,小于1.0会降低饱和度,而大于1.0则会增加饱和度。
|
|
541
|
+
* @param {Number|Function} [options.gamma=1.0] 伽马校正值。 1.0使用未修改的图像颜色。
|
|
542
|
+
* @param {Number} [options.maximumAnisotropy=maximum supported] 使用的最大各向异性水平 用于纹理过滤。如果未指定此参数,则支持最大各向异性 将使用WebGL堆栈。较大的值可使影像在水平方向上看起来更好 视图。
|
|
543
|
+
* @param {Cesium.Rectangle} [options.cutoutRectangle] 制图矩形,用于裁剪此ImageryLayer的一部分。
|
|
544
|
+
* @param {Cesium.Color} [options.colorToAlpha] 用作Alpha的颜色。
|
|
545
|
+
* @param {Number} [options.colorToAlphaThreshold=0.004] 颜色到Alpha的阈值。
|
|
546
|
+
* @param {Boolean} [options.hasAlphaChannel=true] 如果此图像提供者提供的图像为真 包括一个Alpha通道;否则为假。如果此属性为false,则为Alpha通道,如果 目前,将被忽略。如果此属性为true,则任何没有Alpha通道的图像都将 它们的alpha随处可见。当此属性为false时,内存使用情况 和纹理上传时间可能会减少。
|
|
547
|
+
* @param {Number} [options.tileWidth=256] 图像图块的像素宽度。
|
|
548
|
+
* @param {Number} [options.tileHeight=256] 图像图块的像素高度。
|
|
549
|
+
* @param {Object} [options.customTags] 允许替换网址模板中的自定义关键字。该对象必须具有字符串作为键,并且必须具有值。
|
|
550
|
+
*
|
|
551
|
+
* @param {String|Number} [options.id = createGuid()] 图层id标识
|
|
552
|
+
* @param {String|Number} [options.pid = -1] 图层父级的id,一般图层管理中使用
|
|
553
|
+
* @param {String} [options.name = ''] 图层名称
|
|
554
|
+
* @param {Boolean} [options.show = true] 图层是否显示
|
|
555
|
+
* @param {BaseClass|Boolean} [options.eventParent] 指定的事件冒泡对象,默认为map对象,false时不冒泡
|
|
556
|
+
* @param {Object} [options.center] 图层自定义定位视角 {@link Map#setCameraView}
|
|
557
|
+
* @param {Number} options.center.lng 经度值, 180 - 180
|
|
558
|
+
* @param {Number} options.center.lat 纬度值, -90 - 90
|
|
559
|
+
* @param {Number} [options.center.alt] 高度值
|
|
560
|
+
* @param {Number} [options.center.heading] 方向角度值,绕垂直于地心的轴旋转角度, 0-360
|
|
561
|
+
* @param {Number} [options.center.pitch] 俯仰角度值,绕纬度线旋转角度, 0-360
|
|
562
|
+
* @param {Number} [options.center.roll] 翻滚角度值,绕经度线旋转角度, 0-360
|
|
563
|
+
* @param {Boolean} [options.flyTo] 加载完成数据后是否自动飞行定位到数据所在的区域。
|
|
564
|
+
* @export
|
|
565
|
+
* @class SmImgLayer
|
|
566
|
+
* @extends {BaseTileLayer}
|
|
567
|
+
*
|
|
568
|
+
* @see http://support.supermap.com.cn:8090/webgl/docs/Documentation/SuperMapImageryProvider.html?classFilter=SuperMapImageryProvider
|
|
569
|
+
*/
|
|
570
|
+
|
|
571
|
+
var SmImgLayer = /*#__PURE__*/function (_BaseTileLayer) {
|
|
572
|
+
_inherits(SmImgLayer, _BaseTileLayer);
|
|
573
|
+
|
|
574
|
+
var _super = _createSuper(SmImgLayer);
|
|
575
|
+
|
|
576
|
+
function SmImgLayer() {
|
|
577
|
+
_classCallCheck(this, SmImgLayer);
|
|
578
|
+
|
|
579
|
+
return _super.apply(this, arguments);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
_createClass(SmImgLayer, [{
|
|
583
|
+
key: "_createImageryProvider",
|
|
584
|
+
value: // 构建ImageryProvider
|
|
585
|
+
function _createImageryProvider(options) {
|
|
586
|
+
return createImageryProvider(options);
|
|
587
|
+
} // 添加时
|
|
588
|
+
|
|
589
|
+
}, {
|
|
590
|
+
key: "_addedHook",
|
|
591
|
+
value: function _addedHook() {
|
|
592
|
+
_get(_getPrototypeOf(SmImgLayer.prototype), "_addedHook", this).call(this);
|
|
593
|
+
|
|
594
|
+
if (Cesium$1.defined(this.options.transparentBackColor)) {
|
|
595
|
+
this._imageryLayer.transparentBackColor = mars3d__namespace.Util.getCesiumColor(this.options.transparentBackColor);
|
|
596
|
+
this._imageryLayer.transparentBackColorTolerance = this.options.transparentBackColorTolerance; // 去黑边
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
}]);
|
|
600
|
+
|
|
601
|
+
return SmImgLayer;
|
|
602
|
+
}(BaseTileLayer);
|
|
603
|
+
|
|
604
|
+
function createImageryProvider(options) {
|
|
605
|
+
options = mars3d__namespace.LayerUtil.converOptions(options);
|
|
606
|
+
|
|
607
|
+
if (options.url instanceof Cesium$1.Resource) {
|
|
608
|
+
options.url = options.url.url;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
if (Cesium$1.defined(options.transparentBackColor)) {
|
|
612
|
+
delete options.transparentBackColor;
|
|
613
|
+
delete options.transparentBackColorTolerance;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
return new Cesium$1.SuperMapImageryProvider(options);
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* 创建用于图层的 ImageryProvider对象
|
|
620
|
+
*
|
|
621
|
+
* @param {Object} options Provider参数,同图层构造参数。
|
|
622
|
+
* @return {Cesium.ImageryProvider} ImageryProvider类
|
|
623
|
+
* @function
|
|
624
|
+
*/
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
SmImgLayer.createImageryProvider = createImageryProvider;
|
|
628
|
+
mars3d__namespace.layer.SmImgLayer = SmImgLayer; // 注册下
|
|
629
|
+
|
|
630
|
+
var layerType = "supermap_img";
|
|
631
|
+
mars3d__namespace.LayerUtil.register(layerType, SmImgLayer);
|
|
632
|
+
mars3d__namespace.LayerUtil.registerImageryProvider(layerType, createImageryProvider);
|
|
633
|
+
|
|
634
|
+
var Cesium = mars3d__namespace.Cesium;
|
|
635
|
+
var BaseLayer = mars3d__namespace.layer.BaseLayer;
|
|
636
|
+
/**
|
|
637
|
+
* 超图MVT矢量瓦片图层,
|
|
638
|
+
* 【需要引入 mars3d-supermap 插件库】
|
|
639
|
+
*
|
|
640
|
+
* @param {Object} [options] 参数对象,包括以下:
|
|
641
|
+
* @param {String} options.url 适用于通过SuperMap桌面软件生成mvt数据,经iServer发布为rest风格的地图服务,只需提供服务地址。
|
|
642
|
+
* @param {String} options.layer 图层名称,适用于第三方发布的WMTS服务。
|
|
643
|
+
* @param {Number} [options.canvasWidth] 用来绘制矢量的纹理边长。默认是512,越大越精细,越小性能越高。
|
|
644
|
+
* @param {String} [options.format='mvt'] 适用于第三方发布的WMTS服务。
|
|
645
|
+
* @param {Object} [options.mapboxStyle] 使用的mapBox风格。
|
|
646
|
+
* @param {Object} [options.多个参数] 参考[supermap官方API]{@link http://support.supermap.com.cn:8090/webgl/docs/Documentation/Scene.html#addVectorTilesLayer}
|
|
647
|
+
*
|
|
648
|
+
*
|
|
649
|
+
* @param {String|Number} [options.id = createGuid()] 图层id标识
|
|
650
|
+
* @param {String|Number} [options.pid = -1] 图层父级的id,一般图层管理中使用
|
|
651
|
+
* @param {String} [options.name = ''] 图层名称
|
|
652
|
+
* @param {Boolean} [options.show = true] 图层是否显示
|
|
653
|
+
* @param {BaseClass|Boolean} [options.eventParent] 指定的事件冒泡对象,默认为map对象,false时不冒泡
|
|
654
|
+
* @param {Object} [options.center] 图层自定义定位视角 {@link Map#setCameraView}
|
|
655
|
+
* @param {Number} options.center.lng 经度值, 180 - 180
|
|
656
|
+
* @param {Number} options.center.lat 纬度值, -90 - 90
|
|
657
|
+
* @param {Number} [options.center.alt] 高度值
|
|
658
|
+
* @param {Number} [options.center.heading] 方向角度值,绕垂直于地心的轴旋转角度, 0-360
|
|
659
|
+
* @param {Number} [options.center.pitch] 俯仰角度值,绕纬度线旋转角度, 0-360
|
|
660
|
+
* @param {Number} [options.center.roll] 翻滚角度值,绕经度线旋转角度, 0-360
|
|
661
|
+
* @param {Boolean} [options.flyTo] 加载完成数据后是否自动飞行定位到数据所在的区域。
|
|
662
|
+
* @export
|
|
663
|
+
* @class SmMvtLayer
|
|
664
|
+
* @extends {BaseLayer}
|
|
665
|
+
*/
|
|
666
|
+
|
|
667
|
+
var SmMvtLayer = /*#__PURE__*/function (_BaseLayer) {
|
|
668
|
+
_inherits(SmMvtLayer, _BaseLayer);
|
|
669
|
+
|
|
670
|
+
var _super = _createSuper(SmMvtLayer);
|
|
671
|
+
|
|
672
|
+
function SmMvtLayer() {
|
|
673
|
+
_classCallCheck(this, SmMvtLayer);
|
|
674
|
+
|
|
675
|
+
return _super.apply(this, arguments);
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
_createClass(SmMvtLayer, [{
|
|
679
|
+
key: "layer",
|
|
680
|
+
get:
|
|
681
|
+
/**
|
|
682
|
+
* 对应的supermap图层 Cesium.VectorTilesLayer
|
|
683
|
+
* @type {*}
|
|
684
|
+
* @readonly
|
|
685
|
+
* @see http://support.supermap.com.cn:8090/webgl/docs/Documentation/VectorTilesLayer.html
|
|
686
|
+
*/
|
|
687
|
+
function get() {
|
|
688
|
+
return this._mvtLayer;
|
|
689
|
+
}
|
|
690
|
+
/**
|
|
691
|
+
* 对象添加到地图前创建一些对象的钩子方法,
|
|
692
|
+
* 只会调用一次
|
|
693
|
+
* @return {void} 无
|
|
694
|
+
* @private
|
|
695
|
+
*/
|
|
696
|
+
|
|
697
|
+
}, {
|
|
698
|
+
key: "_mountedHook",
|
|
699
|
+
value: function _mountedHook() {
|
|
700
|
+
var _this = this;
|
|
701
|
+
|
|
702
|
+
// options参考API文档:http://support.supermap.com.cn:8090/webgl/docs/Documentation/Scene.html
|
|
703
|
+
this._mvtLayer = this._map.scene.addVectorTilesMap(this.options);
|
|
704
|
+
|
|
705
|
+
this._mvtLayer.readyPromise.then(function (data) {// setPaintProperty(layerId, name, value, options)
|
|
706
|
+
// for(var layerId in that.options.style){
|
|
707
|
+
// that._mvtLayer.setPaintProperty(layerId, "fill-color", "rgba(255,0,0,0.8)");
|
|
708
|
+
// }
|
|
709
|
+
});
|
|
710
|
+
|
|
711
|
+
var scene = this._map.scene;
|
|
712
|
+
var handler = new Cesium.ScreenSpaceEventHandler(scene.canvas);
|
|
713
|
+
handler.setInputAction(function (event) {
|
|
714
|
+
if (!_this.show) {
|
|
715
|
+
return;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
var position = mars3d__namespace.PointUtil.getCurrentMousePosition(scene, event.position); // 查询出相交图层的feature
|
|
719
|
+
|
|
720
|
+
var features = _this._mvtLayer.queryRenderedFeatures([position], {// layers: [selectLayer.id]
|
|
721
|
+
}); // eslint-disable-next-line array-callback-return
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
features.reduce(function (memo, result) {
|
|
725
|
+
var attr = result.feature.properties;
|
|
726
|
+
|
|
727
|
+
if (!attr) {
|
|
728
|
+
// eslint-disable-next-line array-callback-return
|
|
729
|
+
return;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
var content = mars3d__namespace.Util.getPopupForConfig(_this.options, attr);
|
|
733
|
+
var item = {
|
|
734
|
+
data: attr,
|
|
735
|
+
event: event
|
|
736
|
+
};
|
|
737
|
+
|
|
738
|
+
_this._map.openPopup(position, content, item);
|
|
739
|
+
});
|
|
740
|
+
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
741
|
+
this.handler = handler;
|
|
742
|
+
}
|
|
743
|
+
/**
|
|
744
|
+
* 对象添加到地图上的创建钩子方法,
|
|
745
|
+
* 每次add时都会调用
|
|
746
|
+
* @return {void} 无
|
|
747
|
+
* @private
|
|
748
|
+
*/
|
|
749
|
+
|
|
750
|
+
}, {
|
|
751
|
+
key: "_addedHook",
|
|
752
|
+
value: function _addedHook() {
|
|
753
|
+
this._mvtLayer.show = true; // this._mvtLayer.refresh();
|
|
754
|
+
}
|
|
755
|
+
/**
|
|
756
|
+
* 对象从地图上移除的创建钩子方法,
|
|
757
|
+
* 每次remove时都会调用
|
|
758
|
+
* @return {void} 无
|
|
759
|
+
* @private
|
|
760
|
+
*/
|
|
761
|
+
|
|
762
|
+
}, {
|
|
763
|
+
key: "_removedHook",
|
|
764
|
+
value: function _removedHook() {
|
|
765
|
+
if (this._mvtLayer) {
|
|
766
|
+
this._mvtLayer.show = false;
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
/**
|
|
770
|
+
* 设置透明度
|
|
771
|
+
* @param {Number} value 透明度
|
|
772
|
+
* @return {void} 无
|
|
773
|
+
*/
|
|
774
|
+
|
|
775
|
+
}, {
|
|
776
|
+
key: "setOpacity",
|
|
777
|
+
value: function setOpacity(value) {
|
|
778
|
+
if (this._mvtLayer) {
|
|
779
|
+
this._mvtLayer.alpha = parseFloat(value);
|
|
780
|
+
}
|
|
781
|
+
} // 定位至数据区域
|
|
782
|
+
|
|
783
|
+
}, {
|
|
784
|
+
key: "flyTo",
|
|
785
|
+
value: function flyTo() {
|
|
786
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
787
|
+
|
|
788
|
+
if (this.options.center) {
|
|
789
|
+
return this._map.setCameraView(this.options.center, options);
|
|
790
|
+
} else if (this.options.extent) {
|
|
791
|
+
return this._map.flyToExtent(this.options.extent, options);
|
|
792
|
+
} else if (this._mvtLayer) {
|
|
793
|
+
return this._map.camera.flyTo(_objectSpread2(_objectSpread2({}, options), {}, {
|
|
794
|
+
destination: this._mvtLayer.rectangle
|
|
795
|
+
}));
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
return Promise.resolve(false);
|
|
799
|
+
}
|
|
800
|
+
}]);
|
|
801
|
+
|
|
802
|
+
return SmMvtLayer;
|
|
803
|
+
}(BaseLayer);
|
|
804
|
+
mars3d__namespace.layer.SmMvtLayer = SmMvtLayer; // 注册下
|
|
805
|
+
|
|
806
|
+
mars3d__namespace.LayerUtil.register("supermap_mvt", SmMvtLayer);
|
|
807
|
+
|
|
808
|
+
exports.S3MLayer = S3MLayer;
|
|
809
|
+
exports.SmImgLayer = SmImgLayer;
|
|
810
|
+
exports.SmMvtLayer = SmMvtLayer;
|
|
811
|
+
|
|
812
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
813
|
+
|
|
814
|
+
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mars3d-supermap",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.3",
|
|
4
4
|
"description": "Mars3D平台插件,结合supermap超图库使用的功能插件",
|
|
5
5
|
"main": "dist/mars3d-supermap.js",
|
|
6
6
|
"files": [
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
],
|
|
9
9
|
"dependencies": {},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"mars3d": "^3.4.
|
|
11
|
+
"mars3d": "^3.4.3"
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
14
|
"lint": "eslint ./src/**/*.{js,ts} --fix"
|