deeptwins-engine-3d 0.1.76 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/Build/DeepTwins/Image/noise.png +0 -0
- package/dist/assets/Build/DeepTwins/Workers/CustomRasterClip.worker.js +1 -2
- package/dist/assets/Build/DeepTwins/Workers/MvtVector.worker.js +1 -1
- package/dist/assets/Build/Map3d/ThirdParty/Workers/zip-web-worker.js +640 -0
- package/dist/assets/Build/Map3d/ThirdParty/wasm_splats_bg.wasm +0 -0
- package/dist/assets/Build/Map3d/ThirdParty/zip-module.wasm +0 -0
- package/dist/assets/Build/Map3d/Workers/chunk-27NG6PQR.js +456 -0
- package/dist/assets/Build/Map3d/Workers/chunk-2JVMMMWT.js +353 -0
- package/dist/assets/Build/Map3d/Workers/chunk-2Y2XYQCS.js +1481 -0
- package/dist/assets/Build/Map3d/Workers/chunk-34RF3V5G.js +220 -0
- package/dist/assets/Build/Map3d/Workers/chunk-35H7BYLJ.js +1800 -0
- package/dist/assets/Build/Map3d/Workers/chunk-57OGEF5V.js +435 -0
- package/dist/assets/Build/Map3d/Workers/chunk-5PX3DYJA.js +196 -0
- package/dist/assets/Build/Map3d/Workers/chunk-7B5XGQRN.js +171 -0
- package/dist/assets/Build/Map3d/Workers/chunk-ATLWOZFF.js +39 -0
- package/dist/assets/Build/Map3d/Workers/chunk-BMSUECTA.js +1055 -0
- package/dist/assets/Build/Map3d/Workers/chunk-C6IA4TKW.js +476 -0
- package/dist/assets/Build/Map3d/Workers/chunk-CZ44I32U.js +157 -0
- package/dist/assets/Build/Map3d/Workers/chunk-DE6UV44R.js +122 -0
- package/dist/assets/Build/Map3d/Workers/chunk-DUCCKVOG.js +834 -0
- package/dist/assets/Build/Map3d/Workers/chunk-EBJBPIYX.js +239 -0
- package/dist/assets/Build/Map3d/Workers/chunk-EYSYQ2R6.js +138 -0
- package/dist/assets/Build/Map3d/Workers/chunk-FMCAAUQI.js +368 -0
- package/dist/assets/Build/Map3d/Workers/chunk-GMYZNRRQ.js +2717 -0
- package/dist/assets/Build/Map3d/Workers/chunk-GWPNZZV4.js +781 -0
- package/dist/assets/Build/Map3d/Workers/chunk-HLP2U4KW.js +758 -0
- package/dist/assets/Build/Map3d/Workers/chunk-HSJSUPQV.js +500 -0
- package/dist/assets/Build/Map3d/Workers/chunk-I73Q3AG7.js +58 -0
- package/dist/assets/Build/Map3d/Workers/chunk-IMZ4YIMV.js +511 -0
- package/dist/assets/Build/Map3d/Workers/chunk-IZSK4DVF.js +421 -0
- package/dist/assets/Build/Map3d/Workers/chunk-JKLMRPKK.js +75 -0
- package/dist/assets/Build/Map3d/Workers/chunk-KGM345JM.js +691 -0
- package/dist/assets/Build/Map3d/Workers/chunk-L4IR5U4G.js +102 -0
- package/dist/assets/Build/Map3d/Workers/chunk-MG4EVQH2.js +44 -0
- package/dist/assets/Build/Map3d/Workers/chunk-NXWEFAZJ.js +300 -0
- package/dist/assets/Build/Map3d/Workers/chunk-PDFAJISJ.js +59 -0
- package/dist/assets/Build/Map3d/Workers/chunk-PHWZFJR5.js +100 -0
- package/dist/assets/Build/Map3d/Workers/chunk-PLE7CHBE.js +101 -0
- package/dist/assets/Build/Map3d/Workers/chunk-PN3GIZ5Q.js +163 -0
- package/dist/assets/Build/Map3d/Workers/chunk-PXL5XLHV.js +1073 -0
- package/dist/assets/Build/Map3d/Workers/chunk-QYXOF5JC.js +959 -0
- package/dist/assets/Build/Map3d/Workers/chunk-R2LIFXV3.js +115 -0
- package/dist/assets/Build/Map3d/Workers/chunk-R4W6IRJZ.js +10357 -0
- package/dist/assets/Build/Map3d/Workers/chunk-R5PZXG56.js +1258 -0
- package/dist/assets/Build/Map3d/Workers/chunk-RZQLZIUI.js +629 -0
- package/dist/assets/Build/Map3d/Workers/chunk-SIBDD6Y4.js +390 -0
- package/dist/assets/Build/Map3d/Workers/chunk-U5NN6JTQ.js +398 -0
- package/dist/assets/Build/Map3d/Workers/chunk-UA5RPPP3.js +73 -0
- package/dist/assets/Build/Map3d/Workers/chunk-UXLKFS3C.js +305 -0
- package/dist/assets/Build/Map3d/Workers/chunk-VUX4BQIM.js +37 -0
- package/dist/assets/Build/Map3d/Workers/chunk-WJDUUUJS.js +684 -0
- package/dist/assets/Build/Map3d/Workers/chunk-XBJOJHWX.js +139 -0
- package/dist/assets/Build/Map3d/Workers/chunk-XJDMTNKD.js +634 -0
- package/dist/assets/Build/Map3d/Workers/chunk-XUCXZZE5.js +963 -0
- package/dist/assets/Build/Map3d/Workers/chunk-YIKGVMJ5.js +287 -0
- package/dist/assets/Build/Map3d/Workers/chunk-YTNCIBPQ.js +262 -0
- package/dist/assets/Build/Map3d/Workers/chunk-ZMDUYETO.js +55 -0
- package/dist/assets/Build/Map3d/Workers/chunk-ZW52HXFN.js +2857 -0
- package/dist/esm/analyze/LineOfSightAnalysis.js +1 -326
- package/dist/esm/analyze/SubmergenceAnalysis.js +1 -137
- package/dist/esm/analyze/SunLightAnalysis.js +1 -91
- package/dist/esm/analyze/TerrainExcavationAnalysis.js +1 -612
- package/dist/esm/analyze/ViewshedAnalysis.js +1 -292
- package/dist/esm/cameraControl/ModelRoamHistory.js +1 -639
- package/dist/esm/cameraControl/ModelRoamRealTime.js +1 -874
- package/dist/esm/cameraControl/Roam.js +1 -418
- package/dist/esm/cameraControl/Rotate.js +1 -134
- package/dist/esm/cameraControl/RotateInPlace.js +1 -99
- package/dist/esm/constant.d.ts +90 -0
- package/dist/esm/constant.js +1 -1287
- package/dist/esm/deepTwins/index.js +1 -121
- package/dist/esm/drawCommand/index.js +1 -3
- package/dist/esm/drawCommand/viewShed/Event.js +1 -142
- package/dist/esm/drawCommand/viewShed/RectangularSensorPrimitive.js +1 -1306
- package/dist/esm/drawCommand/viewShed/ViewShadowPrimitive.js +1 -66
- package/dist/esm/drawCommand/viewShed/ViewShedAnalyserLayer.js +1 -466
- package/dist/esm/drawCommand/viewShed/ViewShedMap.js +1 -1238
- package/dist/esm/drawCommand/viewShed/config.js +1 -21
- package/dist/esm/drawCommand/volumeCloud/GeometryPrimitive.js +1 -89
- package/dist/esm/drawCommand/volumeCloud/ImprovedNoise.js +1 -112
- package/dist/esm/drawCommand/volumeCloud/VolumeClouds.js +1 -91
- package/dist/esm/drawer/algorithm.js +1 -314
- package/dist/esm/drawer/common.js +1 -965
- package/dist/esm/drawer/coordinate.js +1 -184
- package/dist/esm/drawer/index.js +1 -688
- package/dist/esm/drawer/plotUtil.js +1 -266
- package/dist/esm/drawer/shape/Assemble.js +1 -415
- package/dist/esm/drawer/shape/AttackArrow.js +1 -442
- package/dist/esm/drawer/shape/BaseShape.js +1 -383
- package/dist/esm/drawer/shape/Bow.js +1 -375
- package/dist/esm/drawer/shape/Circle.js +1 -461
- package/dist/esm/drawer/shape/Curve.js +1 -386
- package/dist/esm/drawer/shape/DragPoint.js +1 -211
- package/dist/esm/drawer/shape/Elliptic.js +1 -491
- package/dist/esm/drawer/shape/Formation.js +1 -395
- package/dist/esm/drawer/shape/PincerArrow.js +1 -445
- package/dist/esm/drawer/shape/Point.js +1 -131
- package/dist/esm/drawer/shape/Polygon.js +1 -368
- package/dist/esm/drawer/shape/Polyline.js +1 -325
- package/dist/esm/drawer/shape/RegularPolygon.js +1 -468
- package/dist/esm/drawer/shape/RightAngleArrow.js +1 -423
- package/dist/esm/drawer/shape/Sector.js +1 -568
- package/dist/esm/drawer/shape/StraightArrow.js +1 -422
- package/dist/esm/drawer/shape/SwallowtailArrow.js +1 -438
- package/dist/esm/drawer/types.js +1 -11
- package/dist/esm/drawer/utils.js +1 -381
- package/dist/esm/global.css +22 -1
- package/dist/esm/graphicLayer/BaseEntity.js +1 -51
- package/dist/esm/graphicLayer/BaseLayer.js +1 -730
- package/dist/esm/graphicLayer/BasePointPrimitive.js +1 -45
- package/dist/esm/graphicLayer/BasePrimitive.js +1 -36
- package/dist/esm/graphicLayer/BasePrimitiveInstance.js +1 -37
- package/dist/esm/graphicLayer/BaseSource.d.ts +1 -1
- package/dist/esm/graphicLayer/BaseSource.js +1 -630
- package/dist/esm/graphicLayer/BillboardEntity.js +1 -106
- package/dist/esm/graphicLayer/BillboardPrimitive.js +1 -119
- package/dist/esm/graphicLayer/BoxEntity.js +1 -99
- package/dist/esm/graphicLayer/BoxPrimitive.js +1 -48
- package/dist/esm/graphicLayer/BoxPrimitiveInstance.js +1 -91
- package/dist/esm/graphicLayer/EllipseEntity.js +1 -110
- package/dist/esm/graphicLayer/EllipsePrimitive.js +1 -47
- package/dist/esm/graphicLayer/EllipsePrimitiveInstance.js +1 -98
- package/dist/esm/graphicLayer/EllipsoidEntity.js +1 -118
- package/dist/esm/graphicLayer/EllipsoidPrimitive.js +1 -48
- package/dist/esm/graphicLayer/EllipsoidPrimitiveInstance.js +1 -113
- package/dist/esm/graphicLayer/GraphicLayerCollection.js +1 -491
- package/dist/esm/graphicLayer/HtmlEntity.d.ts +4 -0
- package/dist/esm/graphicLayer/HtmlEntity.js +1 -189
- package/dist/esm/graphicLayer/LabelEntity.js +1 -110
- package/dist/esm/graphicLayer/LabelPrimitive.js +1 -127
- package/dist/esm/graphicLayer/ModelEntity.js +1 -122
- package/dist/esm/graphicLayer/ModelPrimitive.js +1 -59
- package/dist/esm/graphicLayer/ModelPrimitiveInstance.js +1 -86
- package/dist/esm/graphicLayer/PointEntity.js +1 -94
- package/dist/esm/graphicLayer/PointPrimitive.js +1 -107
- package/dist/esm/graphicLayer/PolygonEntity.js +1 -103
- package/dist/esm/graphicLayer/PolygonGroundPrimitive.js +1 -49
- package/dist/esm/graphicLayer/PolygonGroundPrimitiveImageMaterialInstance.js +1 -87
- package/dist/esm/graphicLayer/PolygonPrimitive.js +1 -60
- package/dist/esm/graphicLayer/PolygonPrimitiveImageMaterialInstance.js +1 -84
- package/dist/esm/graphicLayer/PolygonPrimitiveInstance.js +1 -101
- package/dist/esm/graphicLayer/PolylineEntity.js +1 -96
- package/dist/esm/graphicLayer/PolylineGroundPrimitive.js +1 -55
- package/dist/esm/graphicLayer/PolylineGroundPrimitiveInstance.js +1 -85
- package/dist/esm/graphicLayer/PolylinePrimitive.js +1 -53
- package/dist/esm/graphicLayer/PolylinePrimitiveInstance.js +1 -85
- package/dist/esm/graphicLayer/PolylineVolumeEntity.js +1 -105
- package/dist/esm/graphicLayer/PolylineVolumePrimitive.js +1 -47
- package/dist/esm/graphicLayer/PolylineVolumePrimitiveInstance.js +1 -94
- package/dist/esm/graphicLayer/WallEntity.js +1 -96
- package/dist/esm/graphicLayer/WallPrimitive.js +1 -47
- package/dist/esm/graphicLayer/WallPrimitiveInstance.js +1 -88
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +1 -175
- package/dist/esm/lowAltitude/BarrierLayer.js +1 -172
- package/dist/esm/lowAltitude/BaseGridMvtLayer.js +1 -122
- package/dist/esm/lowAltitude/FactorLayer.js +1 -199
- package/dist/esm/lowAltitude/FlightPlanning.js +1 -411
- package/dist/esm/lowAltitude/FlightRiskEvaluation.js +1 -543
- package/dist/esm/lowAltitude/GridDraw.js +1 -137
- package/dist/esm/lowAltitude/PoiLayer.js +1 -74
- package/dist/esm/lowAltitude/RoutePlanning.js +1 -318
- package/dist/esm/lowAltitude/VisitLayer.js +1 -180
- package/dist/esm/map/Event.js +1 -377
- package/dist/esm/map/GroundSkyBox.js +1 -166
- package/dist/esm/map/Map.js +1 -881
- package/dist/esm/map/Property.js +1 -35
- package/dist/esm/material/AtmosphericDispersion.js +1 -569
- package/dist/esm/material/GlobalVolumetricCloud.js +1 -377
- package/dist/esm/material/VolumeCloud.js +1 -115
- package/dist/esm/material/WeatherEffects.js +1 -351
- package/dist/esm/material/entity/BaseMaterialProperty.js +1 -51
- package/dist/esm/material/entity/CircleWaveMaterialProperty.js +1 -101
- package/dist/esm/material/entity/DynamicWallMaterialProperty.js +1 -101
- package/dist/esm/material/entity/ImageGlowingMaterialProperty.js +1 -89
- package/dist/esm/material/entity/ImageMaterialProperty.js +1 -34
- package/dist/esm/material/entity/PolylineTrailLinkMaterialProperty.js +1 -132
- package/dist/esm/material/primitive/BaseMaterialAppearance.js +1 -28
- package/dist/esm/material/primitive/ImageGlowingMaterialAppearance.js +1 -77
- package/dist/esm/material/primitive/ImageMaterialAppearance.js +1 -77
- package/dist/esm/measure/Area.js +1 -220
- package/dist/esm/measure/BaseDraw.js +1 -105
- package/dist/esm/measure/Distance.js +1 -223
- package/dist/esm/measure/index.js +1 -266
- package/dist/esm/measure/types.js +1 -17
- package/dist/esm/measure/utils.js +1 -319
- package/dist/esm/particle/BaseParticle.js +1 -196
- package/dist/esm/particle/FireParticle.js +1 -65
- package/dist/esm/particle/FountainParticle.js +1 -80
- package/dist/esm/particle/SmokeParticle.js +1 -65
- package/dist/esm/particle/common.js +1 -23
- package/dist/esm/particle/index.js +1 -5
- package/dist/esm/property/PositionProperty.js +1 -56
- package/dist/esm/tileLayer/ArcGisLayer.js +1 -41
- package/dist/esm/tileLayer/CustomRasterClipWorkerClient.js +1 -147
- package/dist/esm/tileLayer/CustomRasterLayer.js +1 -1136
- package/dist/esm/tileLayer/ImageryLayer.js +1 -44
- package/dist/esm/tileLayer/MvtVectorLoad.js +1 -1549
- package/dist/esm/tileLayer/MvtVectorWorkerClient.js +1 -126
- package/dist/esm/tileLayer/RasterLayer.js +1 -23
- package/dist/esm/tileLayer/WmsLayer.js +1 -26
- package/dist/esm/tileLayer/WmtsLayer.js +1 -23
- package/dist/esm/tool/BuildClampedPolygonGrid.js +1 -278
- package/dist/esm/tool/Compass.js +1 -282
- package/dist/esm/tool/PrimitiveCluster.js +1 -706
- package/dist/esm/tool/TimerInterval.js +1 -58
- package/dist/esm/tool/common.js +1 -405
- package/dist/esm/tool/fetch.js +1 -222
- package/dist/esm/tool/heatmap.js +1 -631
- package/dist/esm/tool/utils.d.ts +1 -0
- package/dist/esm/tool/utils.js +1 -501
- package/dist/esm/toolTip/index.js +1 -79
- package/dist/esm/videoFusion/BaseVideo.d.ts +7 -0
- package/dist/esm/videoFusion/BaseVideo.js +1 -330
- package/dist/esm/videoFusion/VideoProject.js +1 -230
- package/dist/esm/videoFusion/VideoTexture.js +1 -163
- package/dist/esm/visualization/BaseHeatmap.js +1 -271
- package/dist/esm/visualization/BoundaryHighlight.d.ts +135 -0
- package/dist/esm/visualization/BoundaryHighlight.js +1 -0
- package/dist/esm/visualization/DynamicWater.js +1 -289
- package/dist/esm/visualization/Frustum.js +1 -248
- package/dist/esm/visualization/Heatmap2d.js +1 -97
- package/dist/esm/visualization/Heatmap3d.js +1 -281
- package/dist/esm/visualization/MigrationEffect.js +1 -397
- package/dist/esm/visualization/PointCluster.js +1 -220
- package/dist/esm/visualization/RadarScan.js +1 -333
- package/dist/esm/visualization/SampledTerrainRiver.d.ts +180 -0
- package/dist/esm/visualization/SampledTerrainRiver.js +1 -0
- package/dist/esm/visualization/SampledTerrainWater.d.ts +170 -0
- package/dist/esm/visualization/SampledTerrainWater.js +1 -0
- package/dist/esm/visualization/WindField.d.ts +72 -0
- package/dist/esm/visualization/WindField.js +1 -0
- package/dist/esm/visualization/windCore.d.ts +161 -0
- package/dist/esm/visualization/windCore.js +8 -0
- package/dist/umd/deeptwins-engine-3d.min.css +1 -1
- package/dist/umd/deeptwins-engine-3d.min.js +1 -1
- package/package.json +6 -4
|
@@ -1,491 +1 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
3
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
7
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
8
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
10
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
|
-
import { flattenDeep, isArray, isString } from 'lodash';
|
|
12
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
13
|
-
import * as utils from "../tool/utils";
|
|
14
|
-
import BaseLayer from "./BaseLayer";
|
|
15
|
-
import BaseSource from "./BaseSource";
|
|
16
|
-
var GraphicLayerCollection = /*#__PURE__*/function () {
|
|
17
|
-
function GraphicLayerCollection(mapContext) {
|
|
18
|
-
_classCallCheck(this, GraphicLayerCollection);
|
|
19
|
-
_defineProperty(this, "_mapContext", void 0);
|
|
20
|
-
_defineProperty(this, "isDestroyed", false);
|
|
21
|
-
// @ts-ignore
|
|
22
|
-
_defineProperty(this, "graphicLayers", new Map());
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
_defineProperty(this, "graphicSources", new Map());
|
|
25
|
-
this._mapContext = mapContext;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// 是否能进行操作
|
|
29
|
-
_createClass(GraphicLayerCollection, [{
|
|
30
|
-
key: "_canOperate",
|
|
31
|
-
value: function _canOperate() {
|
|
32
|
-
if (this.isDestroyed) {
|
|
33
|
-
utils.error('GraphicLayerCollection实例已销毁');
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
return true;
|
|
37
|
-
}
|
|
38
|
-
}, {
|
|
39
|
-
key: "getMap",
|
|
40
|
-
value: function getMap() {
|
|
41
|
-
return this._mapContext && this._mapContext.getMap();
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// 添加数据
|
|
45
|
-
}, {
|
|
46
|
-
key: "addSource",
|
|
47
|
-
value: function addSource(id, geoJson) {
|
|
48
|
-
if (!this._canOperate()) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
var uuid = id;
|
|
52
|
-
if (this.graphicSources.get(uuid)) {
|
|
53
|
-
utils.warn("id".concat(uuid, "\u5DF2\u7ECF\u5B58\u5728\uFF0C\u5DF2\u81EA\u52A8\u751F\u6210\u968F\u673Aid"));
|
|
54
|
-
uuid = uuidv4();
|
|
55
|
-
}
|
|
56
|
-
var source = new BaseSource({
|
|
57
|
-
id: uuid,
|
|
58
|
-
source: geoJson,
|
|
59
|
-
mapContext: this._mapContext
|
|
60
|
-
});
|
|
61
|
-
this.graphicSources.set(source.id, source);
|
|
62
|
-
return source;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// 直接添加自定义数据
|
|
66
|
-
}, {
|
|
67
|
-
key: "addCustomSource",
|
|
68
|
-
value: function addCustomSource(id, positions) {
|
|
69
|
-
if (!this._canOperate()) {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
var uuid = id;
|
|
73
|
-
if (this.graphicSources.get(uuid)) {
|
|
74
|
-
utils.warn("id".concat(uuid, "\u5DF2\u7ECF\u5B58\u5728\uFF0C\u5DF2\u81EA\u52A8\u751F\u6210\u968F\u673Aid"));
|
|
75
|
-
uuid = uuidv4();
|
|
76
|
-
}
|
|
77
|
-
var source = new BaseSource({
|
|
78
|
-
id: uuid,
|
|
79
|
-
customSource: positions,
|
|
80
|
-
mapContext: this._mapContext
|
|
81
|
-
});
|
|
82
|
-
this.graphicSources.set(source.id, source);
|
|
83
|
-
return source;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// 添加原始数据
|
|
87
|
-
}, {
|
|
88
|
-
key: "addOriginalDataToSource",
|
|
89
|
-
value: function addOriginalDataToSource(id, positions) {
|
|
90
|
-
if (!this._canOperate()) {
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
var uuid = id;
|
|
94
|
-
if (this.graphicSources.get(uuid)) {
|
|
95
|
-
utils.warn("id".concat(uuid, "\u5DF2\u7ECF\u5B58\u5728\uFF0C\u5DF2\u81EA\u52A8\u751F\u6210\u968F\u673Aid"));
|
|
96
|
-
uuid = uuidv4();
|
|
97
|
-
}
|
|
98
|
-
var source = new BaseSource({
|
|
99
|
-
id: uuid,
|
|
100
|
-
originalData: positions,
|
|
101
|
-
mapContext: this._mapContext
|
|
102
|
-
});
|
|
103
|
-
this.graphicSources.set(source.id, source);
|
|
104
|
-
return source;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// 添加图层
|
|
108
|
-
}, {
|
|
109
|
-
key: "addLayer",
|
|
110
|
-
value: function addLayer(data, options) {
|
|
111
|
-
if (!this._canOperate()) {
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
var _ref = options || {},
|
|
115
|
-
id = _ref.id;
|
|
116
|
-
var uuid = id ? String(id) : uuidv4();
|
|
117
|
-
if (this.graphicLayers.get(uuid)) {
|
|
118
|
-
console.warn("id".concat(uuid, "\u5DF2\u7ECF\u5B58\u5728\uFF0C\u5DF2\u81EA\u52A8\u751F\u6210\u968F\u673Aid"));
|
|
119
|
-
uuid = uuidv4();
|
|
120
|
-
}
|
|
121
|
-
var source = null;
|
|
122
|
-
var sourceType = BaseSource.analysisSourceType(data);
|
|
123
|
-
if (sourceType === 'sourceInstance') {
|
|
124
|
-
source = data;
|
|
125
|
-
} else if (sourceType === 'sourceId') {
|
|
126
|
-
source = this.graphicSources.get(data);
|
|
127
|
-
} else {
|
|
128
|
-
source = this.addSource(uuid, data);
|
|
129
|
-
}
|
|
130
|
-
// 生成graphicLayer
|
|
131
|
-
var layer = new BaseLayer({
|
|
132
|
-
id: uuid,
|
|
133
|
-
source: source,
|
|
134
|
-
options: options,
|
|
135
|
-
mapContext: this._mapContext
|
|
136
|
-
});
|
|
137
|
-
// 添加到地图上
|
|
138
|
-
this._addLayerToMap(layer, options);
|
|
139
|
-
return layer;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
// 添加原始数据到图层
|
|
143
|
-
}, {
|
|
144
|
-
key: "addOriginalDataToLayer",
|
|
145
|
-
value: function addOriginalDataToLayer(positions, options) {
|
|
146
|
-
if (!this._canOperate()) {
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
var uuid = uuidv4();
|
|
150
|
-
var source = this.addOriginalDataToSource(uuid, positions);
|
|
151
|
-
// 生成graphicLayer
|
|
152
|
-
var layer = new BaseLayer({
|
|
153
|
-
id: uuid,
|
|
154
|
-
source: source,
|
|
155
|
-
options: options,
|
|
156
|
-
mapContext: this._mapContext
|
|
157
|
-
});
|
|
158
|
-
// 添加到地图上
|
|
159
|
-
this._addLayerToMap(layer, options);
|
|
160
|
-
return layer;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
// 添加图层自定义数据
|
|
164
|
-
}, {
|
|
165
|
-
key: "addCustomSourceToLayer",
|
|
166
|
-
value: function addCustomSourceToLayer(positions, options) {
|
|
167
|
-
if (!this._canOperate()) {
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
var uuid = uuidv4();
|
|
171
|
-
var source = this.addCustomSource(uuid, positions);
|
|
172
|
-
// 生成graphicLayer
|
|
173
|
-
var layer = new BaseLayer({
|
|
174
|
-
id: uuid,
|
|
175
|
-
source: source,
|
|
176
|
-
options: options,
|
|
177
|
-
mapContext: this._mapContext
|
|
178
|
-
});
|
|
179
|
-
// 添加到地图上
|
|
180
|
-
this._addLayerToMap(layer, options);
|
|
181
|
-
return layer;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
// 将layer添加到地图上
|
|
185
|
-
}, {
|
|
186
|
-
key: "_addLayerToMap",
|
|
187
|
-
value: function _addLayerToMap(layer, options) {
|
|
188
|
-
var _this = this;
|
|
189
|
-
if (layer.isEntity) {
|
|
190
|
-
layer.layers.forEach(function (t) {
|
|
191
|
-
if (t.entity) {
|
|
192
|
-
_this.getMap().entities.add(t.entity);
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
} else {
|
|
196
|
-
if (['pointP', 'billboardP', 'labelP'].includes(options.type)) {
|
|
197
|
-
this.getMap().scene.primitives.add(layer.primitiveCollection);
|
|
198
|
-
} else {
|
|
199
|
-
this.getMap().scene.primitives.add(layer.primitiveCollection.primitive);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
this.graphicLayers.set(layer.id, layer);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
// 删除graphicLayers上的数据
|
|
206
|
-
}, {
|
|
207
|
-
key: "_removeGraphicMapLayer",
|
|
208
|
-
value: function _removeGraphicMapLayer(layerId) {
|
|
209
|
-
if (!this._canOperate()) {
|
|
210
|
-
return;
|
|
211
|
-
}
|
|
212
|
-
this.graphicLayers.delete(layerId);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
// 删除graphicSources上的数据
|
|
216
|
-
}, {
|
|
217
|
-
key: "_removeGraphicMapSource",
|
|
218
|
-
value: function _removeGraphicMapSource(sourceId) {
|
|
219
|
-
if (!this._canOperate()) {
|
|
220
|
-
return;
|
|
221
|
-
}
|
|
222
|
-
this.graphicSources.delete(sourceId);
|
|
223
|
-
var graphicValues = this.graphicLayers.values();
|
|
224
|
-
var _iterator = _createForOfIteratorHelper(graphicValues),
|
|
225
|
-
_step;
|
|
226
|
-
try {
|
|
227
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
228
|
-
var value = _step.value;
|
|
229
|
-
if (value.sourceId === sourceId) {
|
|
230
|
-
value.remove();
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
} catch (err) {
|
|
234
|
-
_iterator.e(err);
|
|
235
|
-
} finally {
|
|
236
|
-
_iterator.f();
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
// 清除所有graphicLayers的数据
|
|
241
|
-
}, {
|
|
242
|
-
key: "_clearGraphicMapLayer",
|
|
243
|
-
value: function _clearGraphicMapLayer() {
|
|
244
|
-
if (!this._canOperate()) {
|
|
245
|
-
return;
|
|
246
|
-
}
|
|
247
|
-
this.graphicLayers.clear();
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
// 清除所有graphicSources上的数据
|
|
251
|
-
}, {
|
|
252
|
-
key: "_clearGraphicMapSource",
|
|
253
|
-
value: function _clearGraphicMapSource() {
|
|
254
|
-
if (!this._canOperate()) {
|
|
255
|
-
return;
|
|
256
|
-
}
|
|
257
|
-
this.graphicSources.clear();
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
// 获取图层
|
|
261
|
-
}, {
|
|
262
|
-
key: "getLayer",
|
|
263
|
-
value: function getLayer(id) {
|
|
264
|
-
if (!this._canOperate()) {
|
|
265
|
-
return;
|
|
266
|
-
}
|
|
267
|
-
return isString(id) ? this.graphicLayers.get(id) : id;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
// 获取数据
|
|
271
|
-
}, {
|
|
272
|
-
key: "getSource",
|
|
273
|
-
value: function getSource(id) {
|
|
274
|
-
if (!this._canOperate()) {
|
|
275
|
-
return;
|
|
276
|
-
}
|
|
277
|
-
return isString(id) ? this.graphicSources.get(id) : id;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
// 显示隐藏图层
|
|
281
|
-
}, {
|
|
282
|
-
key: "showLayer",
|
|
283
|
-
value: function showLayer(layer, isShow) {
|
|
284
|
-
if (!this._canOperate()) {
|
|
285
|
-
return;
|
|
286
|
-
}
|
|
287
|
-
var graphicLayer = this.getLayer(layer);
|
|
288
|
-
if (!graphicLayer) {
|
|
289
|
-
utils.warn('未找到对应图层');
|
|
290
|
-
return;
|
|
291
|
-
}
|
|
292
|
-
graphicLayer.show(isShow);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
// 移除图层
|
|
296
|
-
}, {
|
|
297
|
-
key: "removeLayer",
|
|
298
|
-
value: function removeLayer(layer) {
|
|
299
|
-
if (!this._canOperate()) {
|
|
300
|
-
return;
|
|
301
|
-
}
|
|
302
|
-
var graphicLayer = this.getLayer(layer);
|
|
303
|
-
if (!graphicLayer) {
|
|
304
|
-
utils.warn('未找到对应图层');
|
|
305
|
-
return;
|
|
306
|
-
}
|
|
307
|
-
graphicLayer.remove();
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
// 移除数据
|
|
311
|
-
}, {
|
|
312
|
-
key: "removeSource",
|
|
313
|
-
value: function removeSource(source) {
|
|
314
|
-
if (!this._canOperate()) {
|
|
315
|
-
return;
|
|
316
|
-
}
|
|
317
|
-
var graphicSource = this.getSource(source);
|
|
318
|
-
if (!graphicSource) {
|
|
319
|
-
utils.warn('未找到对应的数据源');
|
|
320
|
-
return;
|
|
321
|
-
}
|
|
322
|
-
graphicSource.remove();
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
// 清除所有图层
|
|
326
|
-
}, {
|
|
327
|
-
key: "clearLayer",
|
|
328
|
-
value: function clearLayer() {
|
|
329
|
-
if (!this._canOperate()) {
|
|
330
|
-
return;
|
|
331
|
-
}
|
|
332
|
-
var graphicLayers = Array.from(this.graphicLayers.values());
|
|
333
|
-
for (var _i = 0, _graphicLayers = graphicLayers; _i < _graphicLayers.length; _i++) {
|
|
334
|
-
var value = _graphicLayers[_i];
|
|
335
|
-
value.remove();
|
|
336
|
-
}
|
|
337
|
-
this._clearGraphicMapSource();
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
// 清除所有数据
|
|
341
|
-
}, {
|
|
342
|
-
key: "clearSource",
|
|
343
|
-
value: function clearSource() {
|
|
344
|
-
if (!this._canOperate()) {
|
|
345
|
-
return;
|
|
346
|
-
}
|
|
347
|
-
var graphicSources = this.graphicSources.values();
|
|
348
|
-
var _iterator2 = _createForOfIteratorHelper(graphicSources),
|
|
349
|
-
_step2;
|
|
350
|
-
try {
|
|
351
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
352
|
-
var value = _step2.value;
|
|
353
|
-
value._toDestroy();
|
|
354
|
-
}
|
|
355
|
-
} catch (err) {
|
|
356
|
-
_iterator2.e(err);
|
|
357
|
-
} finally {
|
|
358
|
-
_iterator2.f();
|
|
359
|
-
}
|
|
360
|
-
this._clearGraphicMapSource();
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
// 更新layer的样式
|
|
364
|
-
}, {
|
|
365
|
-
key: "setLayerStyle",
|
|
366
|
-
value: function setLayerStyle(layer, style) {
|
|
367
|
-
if (!this._canOperate()) {
|
|
368
|
-
return;
|
|
369
|
-
}
|
|
370
|
-
var graphicLayer = this.getLayer(layer);
|
|
371
|
-
if (!graphicLayer) {
|
|
372
|
-
utils.warn('未找到对应图层');
|
|
373
|
-
return;
|
|
374
|
-
}
|
|
375
|
-
graphicLayer.setStyle(style);
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
// 更新layer的数据
|
|
379
|
-
}, {
|
|
380
|
-
key: "setLayerData",
|
|
381
|
-
value: function setLayerData(layer, data) {
|
|
382
|
-
if (!this._canOperate()) {
|
|
383
|
-
return;
|
|
384
|
-
}
|
|
385
|
-
var source = null;
|
|
386
|
-
var sourceType = BaseSource.analysisSourceType(data);
|
|
387
|
-
if (sourceType === 'sourceInstance') {
|
|
388
|
-
source = data;
|
|
389
|
-
} else if (sourceType === 'sourceId') {
|
|
390
|
-
source = this.graphicSources.get(data);
|
|
391
|
-
} else {
|
|
392
|
-
source = this.addSource(uuidv4(), data);
|
|
393
|
-
}
|
|
394
|
-
var graphicLayers = [];
|
|
395
|
-
// 更新所有的layer
|
|
396
|
-
if (layer === '_allLayer') {
|
|
397
|
-
// 找出所有需要更新的layer
|
|
398
|
-
var graphicValues = this.graphicLayers.values();
|
|
399
|
-
var _iterator3 = _createForOfIteratorHelper(graphicValues),
|
|
400
|
-
_step3;
|
|
401
|
-
try {
|
|
402
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
403
|
-
var value = _step3.value;
|
|
404
|
-
if (value.sourceId === source.id) {
|
|
405
|
-
graphicLayers.push(value);
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
} catch (err) {
|
|
409
|
-
_iterator3.e(err);
|
|
410
|
-
} finally {
|
|
411
|
-
_iterator3.f();
|
|
412
|
-
}
|
|
413
|
-
} else {
|
|
414
|
-
graphicLayers.push(this.getLayer(layer));
|
|
415
|
-
}
|
|
416
|
-
graphicLayers.forEach(function (t) {
|
|
417
|
-
if (t) {
|
|
418
|
-
t.setData(source);
|
|
419
|
-
} else {
|
|
420
|
-
utils.warn("\u56FE\u5C42".concat(t.id, "\u4E0D\u5B58\u5728"));
|
|
421
|
-
}
|
|
422
|
-
});
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
// 更新source的数据
|
|
426
|
-
}, {
|
|
427
|
-
key: "setSourceData",
|
|
428
|
-
value: function setSourceData(source, data) {
|
|
429
|
-
if (!this._canOperate()) {
|
|
430
|
-
return;
|
|
431
|
-
}
|
|
432
|
-
var graphicSource = this.getSource(source);
|
|
433
|
-
if (!graphicSource) {
|
|
434
|
-
utils.warn('未找到对应的数据源');
|
|
435
|
-
return;
|
|
436
|
-
}
|
|
437
|
-
graphicSource.setData(data);
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
// 飞行至图层位置
|
|
441
|
-
}, {
|
|
442
|
-
key: "flyToLayer",
|
|
443
|
-
value: function flyToLayer(layer, options) {
|
|
444
|
-
if (!this._canOperate()) {
|
|
445
|
-
return;
|
|
446
|
-
}
|
|
447
|
-
var graphicLayer = this.getLayer(layer);
|
|
448
|
-
if (!graphicLayer) {
|
|
449
|
-
utils.warn('未找到对应图层');
|
|
450
|
-
return;
|
|
451
|
-
}
|
|
452
|
-
graphicLayer.flyTo(options);
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
// 飞行至多个图层位置
|
|
456
|
-
}, {
|
|
457
|
-
key: "flyToLayers",
|
|
458
|
-
value: function flyToLayers(layers, options) {
|
|
459
|
-
var _this2 = this;
|
|
460
|
-
if (!this._canOperate()) {
|
|
461
|
-
return;
|
|
462
|
-
}
|
|
463
|
-
if (isArray(layers)) {
|
|
464
|
-
var graphicLayers = layers.map(function (layer) {
|
|
465
|
-
return _this2.getLayer(layer);
|
|
466
|
-
});
|
|
467
|
-
var positions = flattenDeep(graphicLayers.map(function (t) {
|
|
468
|
-
return t.layers.map(function (p) {
|
|
469
|
-
return p.source.positions;
|
|
470
|
-
});
|
|
471
|
-
}));
|
|
472
|
-
utils.cameraFlyToPositions(this.getMap().camera, positions, options);
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
// 销毁
|
|
477
|
-
}, {
|
|
478
|
-
key: "destroy",
|
|
479
|
-
value: function destroy() {
|
|
480
|
-
if (!this._canOperate()) {
|
|
481
|
-
return;
|
|
482
|
-
}
|
|
483
|
-
this.clearLayer();
|
|
484
|
-
this.graphicLayers = new Map();
|
|
485
|
-
this.graphicSources = new Map();
|
|
486
|
-
this.isDestroyed = true;
|
|
487
|
-
}
|
|
488
|
-
}]);
|
|
489
|
-
return GraphicLayerCollection;
|
|
490
|
-
}();
|
|
491
|
-
export { GraphicLayerCollection as default };
|
|
1
|
+
(function(_0x11d1ff,_0x194eaf){var _0x192b1c=_0x352f,_0x5d4e71=_0x11d1ff();while(!![]){try{var _0x160b44=parseInt(_0x192b1c(0x171))/0x1+-parseInt(_0x192b1c(0x19c))/0x2*(-parseInt(_0x192b1c(0x163))/0x3)+-parseInt(_0x192b1c(0x192))/0x4*(parseInt(_0x192b1c(0x157))/0x5)+parseInt(_0x192b1c(0x16c))/0x6+parseInt(_0x192b1c(0x183))/0x7*(parseInt(_0x192b1c(0x14f))/0x8)+-parseInt(_0x192b1c(0x14a))/0x9+-parseInt(_0x192b1c(0x156))/0xa;if(_0x160b44===_0x194eaf)break;else _0x5d4e71['push'](_0x5d4e71['shift']());}catch(_0x2c78a1){_0x5d4e71['push'](_0x5d4e71['shift']());}}}(_0x157a,0x757b5));function _typeof(_0x4fd042){'@babel/helpers - typeof';var _0x2b4a87=_0x352f;return _typeof=_0x2b4a87(0x16d)==typeof Symbol&&'symbol'==typeof Symbol['iterator']?function(_0x487114){return typeof _0x487114;}:function(_0x359126){var _0x28e591=_0x2b4a87;return _0x359126&&'function'==typeof Symbol&&_0x359126[_0x28e591(0x153)]===Symbol&&_0x359126!==Symbol['prototype']?_0x28e591(0x14b):typeof _0x359126;},_typeof(_0x4fd042);}function _createForOfIteratorHelper(_0x5c2760,_0x949d79){var _0x4b5739=_0x352f,_0x2cdfee=typeof Symbol!=='undefined'&&_0x5c2760[Symbol['iterator']]||_0x5c2760['@@iterator'];if(!_0x2cdfee){if(Array[_0x4b5739(0x194)](_0x5c2760)||(_0x2cdfee=_unsupportedIterableToArray(_0x5c2760))||_0x949d79&&_0x5c2760&&typeof _0x5c2760['length']===_0x4b5739(0x149)){if(_0x2cdfee)_0x5c2760=_0x2cdfee;var _0x296513=0x0,_0x3b6fcc=function _0x35551a(){};return{'s':_0x3b6fcc,'n':function _0x72c9b3(){if(_0x296513>=_0x5c2760['length'])return{'done':!![]};return{'done':![],'value':_0x5c2760[_0x296513++]};},'e':function _0x208dd1(_0x2e35c0){throw _0x2e35c0;},'f':_0x3b6fcc};}throw new TypeError(_0x4b5739(0x179));}var _0x5c594d=!![],_0x271ae8=![],_0x129c9b;return{'s':function _0x59d0c6(){_0x2cdfee=_0x2cdfee['call'](_0x5c2760);},'n':function _0x156b9f(){var _0x1bb80c=_0x2cdfee['next']();return _0x5c594d=_0x1bb80c['done'],_0x1bb80c;},'e':function _0x4d04dd(_0x4debca){_0x271ae8=!![],_0x129c9b=_0x4debca;},'f':function _0x45c90d(){var _0x247e2a=_0x4b5739;try{if(!_0x5c594d&&_0x2cdfee[_0x247e2a(0x170)]!=null)_0x2cdfee[_0x247e2a(0x170)]();}finally{if(_0x271ae8)throw _0x129c9b;}}};}function _unsupportedIterableToArray(_0x3bee85,_0x1057e8){var _0x2b8a85=_0x352f;if(!_0x3bee85)return;if(typeof _0x3bee85===_0x2b8a85(0x186))return _arrayLikeToArray(_0x3bee85,_0x1057e8);var _0x480acd=Object['prototype'][_0x2b8a85(0x154)]['call'](_0x3bee85)[_0x2b8a85(0x191)](0x8,-0x1);if(_0x480acd===_0x2b8a85(0x17d)&&_0x3bee85[_0x2b8a85(0x153)])_0x480acd=_0x3bee85[_0x2b8a85(0x153)]['name'];if(_0x480acd==='Map'||_0x480acd==='Set')return Array[_0x2b8a85(0x16f)](_0x3bee85);if(_0x480acd===_0x2b8a85(0x19f)||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/['test'](_0x480acd))return _arrayLikeToArray(_0x3bee85,_0x1057e8);}function _0x352f(_0x3262d7,_0xa7b5c0){_0x3262d7=_0x3262d7-0x149;var _0x157a89=_0x157a();var _0x352feb=_0x157a89[_0x3262d7];if(_0x352f['fwKZju']===undefined){var _0x12146b=function(_0x192860){var _0x215a5b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x3a62ec='',_0x28ab03='';for(var _0x36e2e3=0x0,_0x4796d2,_0x4fd042,_0x487114=0x0;_0x4fd042=_0x192860['charAt'](_0x487114++);~_0x4fd042&&(_0x4796d2=_0x36e2e3%0x4?_0x4796d2*0x40+_0x4fd042:_0x4fd042,_0x36e2e3++%0x4)?_0x3a62ec+=String['fromCharCode'](0xff&_0x4796d2>>(-0x2*_0x36e2e3&0x6)):0x0){_0x4fd042=_0x215a5b['indexOf'](_0x4fd042);}for(var _0x359126=0x0,_0x5c2760=_0x3a62ec['length'];_0x359126<_0x5c2760;_0x359126++){_0x28ab03+='%'+('00'+_0x3a62ec['charCodeAt'](_0x359126)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x28ab03);};_0x352f['hRXHMH']=_0x12146b,_0x352f['pCbcug']={},_0x352f['fwKZju']=!![];}var _0x34dc69=_0x157a89[0x0],_0x526a29=_0x3262d7+_0x34dc69,_0x3ad3b6=_0x352f['pCbcug'][_0x526a29];return!_0x3ad3b6?(_0x352feb=_0x352f['hRXHMH'](_0x352feb),_0x352f['pCbcug'][_0x526a29]=_0x352feb):_0x352feb=_0x3ad3b6,_0x352feb;}function _0x157a(){var _0xbad44a=['r3jHCgHPy0XHEwvYq29SBgvJDgLVBUwUNUs+I+w3SUMuGoAVGq','zw50AxrPzxm','DMfSDwvZ','x2nHBK9WzxjHDgu','y2fSBa','zw50Axr5','zg9Uzq','zw51BwvYywjSzq','C2XPy2u','mJG0sNvlqMf4','AxnfBNrPDhK','AxnbCNjHEq','y2XLyxjmyxLLCG','z3jHCgHPy0XHEwvYCW','ywrKq3vZDg9Tu291CMnL','y2fTzxjH','D3jPDgfIBgu','BgvUz3rO','y2fTzxjHrMX5vg9qB3nPDgLVBNm','nKzpt2fPtq','Axnezxn0CM95zwq','yw5HBhLZAxntB3vYy2vuExbL','qxjNDw1LBNrZ','A2v5','BNvTyMvY','ndyXnda1n0rWD1LVrW','C3LTyM9S','Cg9ZAxrPB25Z','x3jLBw92zuDYyxbOAwnnyxbtB3vYy2u','ChjPBwL0AxzLCW','nJC3mJeXmLjbwMLvsq','z2v0tgf5zxi','z2v0','zMX5vg9myxLLCG','y29UC3rYDwn0B3i','Dg9tDhjPBMC','z2v0u291CMnL','odGZmZi2mgrTyM1uCq','mJG1mdvSrKX5r3K','x2nSzwfYr3jHCgHPy01HCfnVDxjJzq','DMfSDwu','ywrKu291CMnL','y2XLyxi','ywrKq3vZDg9Tu291CMnLvg9myxLLCG','x3rVrgvZDhjVEq','zgvMAw5LuhjVCgvYDhK','C2nLBMu','5lIn5A2y5zYO','yMLSBgjVyxjKua','ywrKtgf5zxi','ntmYndCZqMLmsxDX','y29Uy2f0','C2v0','x21HCenVBNrLEhq','5BEY57Up5A2y5zYO77Ym5BEY6iEQ5yQO55sF5OIq6zQp5PY6Awq','CMvTB3zLu291CMnL','C2v0u291CMnLrgf0yq','Bgf5zxjZ','z2v0twfW','ndu3otG5nNnds2n6qW','zNvUy3rPB24','ywrK','zNjVBq','CMv0DxjU','mtm5nJCYywzkz01k','B2jQzwn0','C2v0rgf0yq','zMX5vg9myxLLCNm','z3jHCgHPy1nVDxjJzxm','C291CMnLsw5ZDgfUy2u','ywrKt3jPz2LUywXeyxrHvg9tB3vYy2u','ywrKt3jPz2LUywXeyxrHvg9myxLLCG','sw52ywXPzcbHDhrLBxb0ihrVigL0zxjHDguGBM9UlwL0zxjHyMXLigLUC3rHBMnLlGPjBIbVCMrLCIb0BYbIzsbPDgvYywjSzsWGBM9UlwfYCMf5ig9IAMvJDhmGBxvZDcbOyxzLigeGw1n5BwjVBc5PDgvYyxrVCL0OksbTzxrOB2qU','BgfIzwXq','C2HVD0XHEwvY','ChjPBwL0AxzLq29SBgvJDgLVBG','t2jQzwn0','CMvTB3zL','D2fYBG','DhLWzq','x2fKzeXHEwvYvg9nyxa','q2fUBM90ignHBgWGysbJBgfZCYbHCYbHigz1BMn0Aw9U','n1fTqvPLvG','zgvMyxvSDa','Dg9qCMLTAxrPDMu','C3rYAw5N','C291CMnLswq','5PYQ5OM+5yIW5A+55BQu55Qe5PwW5O2U5RQq'];_0x157a=function(){return _0xbad44a;};return _0x157a();}function _arrayLikeToArray(_0x30b361,_0x3c89f9){var _0x3b81a7=_0x352f;if(_0x3c89f9==null||_0x3c89f9>_0x30b361[_0x3b81a7(0x19a)])_0x3c89f9=_0x30b361['length'];for(var _0x34b82c=0x0,_0x24584b=new Array(_0x3c89f9);_0x34b82c<_0x3c89f9;_0x34b82c++)_0x24584b[_0x34b82c]=_0x30b361[_0x34b82c];return _0x24584b;}function _classCallCheck(_0x4da392,_0xae2f04){var _0x5703e1=_0x352f;if(!(_0x4da392 instanceof _0xae2f04))throw new TypeError(_0x5703e1(0x182));}function _defineProperties(_0x56fb63,_0x563af9){var _0x30e474=_0x352f;for(var _0x3c8aff=0x0;_0x3c8aff<_0x563af9['length'];_0x3c8aff++){var _0x5a285a=_0x563af9[_0x3c8aff];_0x5a285a[_0x30e474(0x190)]=_0x5a285a['enumerable']||![],_0x5a285a['configurable']=!![];if('value'in _0x5a285a)_0x5a285a[_0x30e474(0x199)]=!![];Object['defineProperty'](_0x56fb63,_toPropertyKey(_0x5a285a[_0x30e474(0x1a0)]),_0x5a285a);}}function _createClass(_0x52dece,_0x59831f,_0x518ff7){var _0x2d115c=_0x352f;if(_0x59831f)_defineProperties(_0x52dece['prototype'],_0x59831f);if(_0x518ff7)_defineProperties(_0x52dece,_0x518ff7);return Object[_0x2d115c(0x15e)](_0x52dece,'prototype',{'writable':![]}),_0x52dece;}function _defineProperty(_0x2dc3e3,_0x1a35f6,_0x48eb22){var _0x43287e=_0x352f;return _0x1a35f6=_toPropertyKey(_0x1a35f6),_0x1a35f6 in _0x2dc3e3?Object[_0x43287e(0x15e)](_0x2dc3e3,_0x1a35f6,{'value':_0x48eb22,'enumerable':!![],'configurable':!![],'writable':!![]}):_0x2dc3e3[_0x1a35f6]=_0x48eb22,_0x2dc3e3;}function _toPropertyKey(_0x47f9d6){var _0x15e12c=_toPrimitive(_0x47f9d6,'string');return'symbol'==_typeof(_0x15e12c)?_0x15e12c:String(_0x15e12c);}function _toPrimitive(_0x1ac534,_0x7aea03){var _0x3fbb02=_0x352f;if(_0x3fbb02(0x172)!=_typeof(_0x1ac534)||!_0x1ac534)return _0x1ac534;var _0xbb46c=_0x1ac534[Symbol[_0x3fbb02(0x185)]];if(void 0x0!==_0xbb46c){var _0x492f29=_0xbb46c[_0x3fbb02(0x18d)](_0x1ac534,_0x7aea03||_0x3fbb02(0x184));if(_0x3fbb02(0x172)!=_typeof(_0x492f29))return _0x492f29;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return('string'===_0x7aea03?String:Number)(_0x1ac534);}import{flattenDeep,isArray,isString}from'lodash';import{v4 as _0x3a62ec}from'uuid';import*as _0x28ab03 from'../tool/utils';import _0x36e2e3 from'./BaseLayer';import _0x4796d2 from'./BaseSource';var GraphicLayerCollection=(function(){var _0x46ea6c=_0x352f;function _0xb7aca3(_0x1ee33a){var _0x2ce4f6=_0x352f;_classCallCheck(this,_0xb7aca3),_defineProperty(this,_0x2ce4f6(0x166),void 0x0),_defineProperty(this,_0x2ce4f6(0x19d),![]),_defineProperty(this,_0x2ce4f6(0x196),new Map()),_defineProperty(this,_0x2ce4f6(0x175),new Map()),this['_mapContext']=_0x1ee33a;}return _createClass(_0xb7aca3,[{'key':_0x46ea6c(0x18c),'value':function _0x11ef96(){var _0x2fb4a9=_0x46ea6c;if(this[_0x2fb4a9(0x19d)])return _0x28ab03['error'](_0x2fb4a9(0x189)),![];return!![];}},{'key':_0x46ea6c(0x16b),'value':function _0x464c28(){return this['_mapContext']&&this['_mapContext']['getMap']();}},{'key':'addSource','value':function _0x5cd26c(_0x370f3c,_0x49708a){var _0x20e7c5=_0x46ea6c;if(!this['_canOperate']())return;var _0x9db821=_0x370f3c;this['graphicSources']['get'](_0x9db821)&&(_0x28ab03['warn']('id'['concat'](_0x9db821,_0x20e7c5(0x167))),_0x9db821=_0x3a62ec());var _0x34cccd=new _0x4796d2({'id':_0x9db821,'source':_0x49708a,'mapContext':this['_mapContext']});return this[_0x20e7c5(0x175)]['set'](_0x34cccd['id'],_0x34cccd),_0x34cccd;}},{'key':_0x46ea6c(0x197),'value':function _0xf727e(_0x47d1eb,_0x25f7fd){var _0x140ec9=_0x46ea6c;if(!this[_0x140ec9(0x18c)]())return;var _0x4a86c9=_0x47d1eb;this[_0x140ec9(0x175)][_0x140ec9(0x151)](_0x4a86c9)&&(_0x28ab03['warn']('id'['concat'](_0x4a86c9,'\u5DF2\u7ECF\u5B58\u5728\uFF0C\u5DF2\u81EA\u52A8\u751F\u6210\u968F\u673Aid')),_0x4a86c9=_0x3a62ec());var _0x5d7cc4=new _0x4796d2({'id':_0x4a86c9,'customSource':_0x25f7fd,'mapContext':this[_0x140ec9(0x166)]});return this[_0x140ec9(0x175)]['set'](_0x5d7cc4['id'],_0x5d7cc4),_0x5d7cc4;}},{'key':_0x46ea6c(0x177),'value':function _0x3824d0(_0x259785,_0x202854){var _0x268a22=_0x46ea6c;if(!this['_canOperate']())return;var _0x5df542=_0x259785;this['graphicSources'][_0x268a22(0x151)](_0x5df542)&&(_0x28ab03['warn']('id'['concat'](_0x5df542,'\u5DF2\u7ECF\u5B58\u5728\uFF0C\u5DF2\u81EA\u52A8\u751F\u6210\u968F\u673Aid')),_0x5df542=_0x3a62ec());var _0x5f0a9b=new _0x4796d2({'id':_0x5df542,'originalData':_0x202854,'mapContext':this[_0x268a22(0x166)]});return this['graphicSources']['set'](_0x5f0a9b['id'],_0x5f0a9b),_0x5f0a9b;}},{'key':_0x46ea6c(0x162),'value':function _0x491444(_0x4b8948,_0x26ba22){var _0x24e4e8=_0x46ea6c;if(!this['_canOperate']())return;var _0x527377=_0x26ba22||{},_0xf25fa2=_0x527377['id'],_0x434b42=_0xf25fa2?String(_0xf25fa2):_0x3a62ec();this[_0x24e4e8(0x196)][_0x24e4e8(0x151)](_0x434b42)&&(console['warn']('id'[_0x24e4e8(0x164)](_0x434b42,_0x24e4e8(0x167))),_0x434b42=_0x3a62ec());var _0x5b0cdf=null,_0x279cc0=_0x4796d2['analysisSourceType'](_0x4b8948);if(_0x279cc0===_0x24e4e8(0x176))_0x5b0cdf=_0x4b8948;else _0x279cc0===_0x24e4e8(0x187)?_0x5b0cdf=this[_0x24e4e8(0x175)]['get'](_0x4b8948):_0x5b0cdf=this[_0x24e4e8(0x15a)](_0x434b42,_0x4b8948);var _0xc14382=new _0x36e2e3({'id':_0x434b42,'source':_0x5b0cdf,'options':_0x26ba22,'mapContext':this['_mapContext']});return this[_0x24e4e8(0x181)](_0xc14382,_0x26ba22),_0xc14382;}},{'key':_0x46ea6c(0x178),'value':function _0x37fcd9(_0x141ecd,_0x5d5568){var _0x35f5a1=_0x46ea6c;if(!this['_canOperate']())return;var _0x54c538=_0x3a62ec(),_0x5cb8c5=this['addOriginalDataToSource'](_0x54c538,_0x141ecd),_0x3a2a3e=new _0x36e2e3({'id':_0x54c538,'source':_0x5cb8c5,'options':_0x5d5568,'mapContext':this[_0x35f5a1(0x166)]});return this['_addLayerToMap'](_0x3a2a3e,_0x5d5568),_0x3a2a3e;}},{'key':_0x46ea6c(0x15c),'value':function _0xe42ee7(_0x1506da,_0x4776bc){var _0x86f0b5=_0x46ea6c;if(!this[_0x86f0b5(0x18c)]())return;var _0x51e347=_0x3a62ec(),_0x55f139=this['addCustomSource'](_0x51e347,_0x1506da),_0x7ebbc9=new _0x36e2e3({'id':_0x51e347,'source':_0x55f139,'options':_0x4776bc,'mapContext':this[_0x86f0b5(0x166)]});return this[_0x86f0b5(0x181)](_0x7ebbc9,_0x4776bc),_0x7ebbc9;}},{'key':'_addLayerToMap','value':function _0x4cbedd(_0x224c3a,_0x36422f){var _0x3b2a91=_0x46ea6c,_0x427cdd=this;_0x224c3a[_0x3b2a91(0x193)]?_0x224c3a['layers']['forEach'](function(_0x2665a7){var _0x49b759=_0x3b2a91;_0x2665a7[_0x49b759(0x18e)]&&_0x427cdd[_0x49b759(0x16b)]()[_0x49b759(0x18a)]['add'](_0x2665a7[_0x49b759(0x18e)]);}):['pointP',_0x3b2a91(0x161),_0x3b2a91(0x17a)]['includes'](_0x36422f[_0x3b2a91(0x180)])?this[_0x3b2a91(0x16b)]()[_0x3b2a91(0x15f)][_0x3b2a91(0x14e)][_0x3b2a91(0x16e)](_0x224c3a[_0x3b2a91(0x17c)]):this['getMap']()[_0x3b2a91(0x15f)][_0x3b2a91(0x14e)][_0x3b2a91(0x16e)](_0x224c3a['primitiveCollection']['primitive']),this[_0x3b2a91(0x196)][_0x3b2a91(0x165)](_0x224c3a['id'],_0x224c3a);}},{'key':'_removeGraphicMapLayer','value':function _0x4d998d(_0x397195){var _0x597e73=_0x46ea6c;if(!this[_0x597e73(0x18c)]())return;this['graphicLayers']['delete'](_0x397195);}},{'key':_0x46ea6c(0x14d),'value':function _0x54365a(_0x351b24){var _0x44ea9a=_0x46ea6c;if(!this[_0x44ea9a(0x18c)]())return;this[_0x44ea9a(0x175)]['delete'](_0x351b24);var _0x1009d8=this['graphicLayers'][_0x44ea9a(0x18b)](),_0x3541d4=_createForOfIteratorHelper(_0x1009d8),_0x1dc9d0;try{for(_0x3541d4['s']();!(_0x1dc9d0=_0x3541d4['n']())[_0x44ea9a(0x18f)];){var _0x5141c2=_0x1dc9d0['value'];_0x5141c2['sourceId']===_0x351b24&&_0x5141c2['remove']();}}catch(_0x1d14bb){_0x3541d4['e'](_0x1d14bb);}finally{_0x3541d4['f']();}}},{'key':'_clearGraphicMapLayer','value':function _0x5cbc95(){var _0x5d3581=_0x46ea6c;if(!this[_0x5d3581(0x18c)]())return;this[_0x5d3581(0x196)]['clear']();}},{'key':_0x46ea6c(0x158),'value':function _0x2b75bf(){var _0x9fb6d5=_0x46ea6c;if(!this[_0x9fb6d5(0x18c)]())return;this['graphicSources'][_0x9fb6d5(0x15b)]();}},{'key':_0x46ea6c(0x150),'value':function _0x241907(_0x526dd1){var _0x10f65b=_0x46ea6c;if(!this[_0x10f65b(0x18c)]())return;return isString(_0x526dd1)?this[_0x10f65b(0x196)][_0x10f65b(0x151)](_0x526dd1):_0x526dd1;}},{'key':'getSource','value':function _0x4b73cb(_0x53251d){var _0x1c1e74=_0x46ea6c;if(!this[_0x1c1e74(0x18c)]())return;return isString(_0x53251d)?this['graphicSources'][_0x1c1e74(0x151)](_0x53251d):_0x53251d;}},{'key':_0x46ea6c(0x17b),'value':function _0xd93449(_0x2108af,_0x58b1ec){if(!this['_canOperate']())return;var _0x561b87=this['getLayer'](_0x2108af);if(!_0x561b87){_0x28ab03['warn']('未找到对应图层');return;}_0x561b87['show'](_0x58b1ec);}},{'key':'removeLayer','value':function _0x4aad0f(_0x3145a2){var _0x3c54e7=_0x46ea6c;if(!this['_canOperate']())return;var _0x217588=this[_0x3c54e7(0x150)](_0x3145a2);if(!_0x217588){_0x28ab03['warn']('未找到对应图层');return;}_0x217588['remove']();}},{'key':_0x46ea6c(0x168),'value':function _0x28e176(_0x12a485){var _0x56c8b1=_0x46ea6c;if(!this['_canOperate']())return;var _0x386a01=this['getSource'](_0x12a485);if(!_0x386a01){_0x28ab03[_0x56c8b1(0x17f)](_0x56c8b1(0x188));return;}_0x386a01['remove']();}},{'key':_0x46ea6c(0x195),'value':function _0x2da5da(){var _0x34f09b=_0x46ea6c;if(!this[_0x34f09b(0x18c)]())return;var _0xda16b8=Array[_0x34f09b(0x16f)](this[_0x34f09b(0x196)]['values']());for(var _0xf09db7=0x0,_0x5b67ac=_0xda16b8;_0xf09db7<_0x5b67ac['length'];_0xf09db7++){var _0x2116e6=_0x5b67ac[_0xf09db7];_0x2116e6[_0x34f09b(0x17e)]();}this['_clearGraphicMapSource']();}},{'key':'clearSource','value':function _0x5cc342(){var _0x25919b=_0x46ea6c;if(!this['_canOperate']())return;var _0x138a4c=this[_0x25919b(0x175)][_0x25919b(0x18b)](),_0x40bff4=_createForOfIteratorHelper(_0x138a4c),_0x243055;try{for(_0x40bff4['s']();!(_0x243055=_0x40bff4['n']())[_0x25919b(0x18f)];){var _0xb4e442=_0x243055[_0x25919b(0x159)];_0xb4e442[_0x25919b(0x15d)]();}}catch(_0x4d4cb4){_0x40bff4['e'](_0x4d4cb4);}finally{_0x40bff4['f']();}this['_clearGraphicMapSource']();}},{'key':'setLayerStyle','value':function _0xc86673(_0x1e0e0a,_0x1c7355){var _0x4c09fb=_0x46ea6c;if(!this['_canOperate']())return;var _0x2fed34=this['getLayer'](_0x1e0e0a);if(!_0x2fed34){_0x28ab03[_0x4c09fb(0x17f)]('未找到对应图层');return;}_0x2fed34['setStyle'](_0x1c7355);}},{'key':'setLayerData','value':function _0x9e9bea(_0xcfcdc4,_0x26eb6b){var _0x30d526=_0x46ea6c;if(!this['_canOperate']())return;var _0x5cea08=null,_0x381565=_0x4796d2[_0x30d526(0x19e)](_0x26eb6b);if(_0x381565===_0x30d526(0x176))_0x5cea08=_0x26eb6b;else _0x381565===_0x30d526(0x187)?_0x5cea08=this['graphicSources'][_0x30d526(0x151)](_0x26eb6b):_0x5cea08=this['addSource'](_0x3a62ec(),_0x26eb6b);var _0x2789a2=[];if(_0xcfcdc4==='_allLayer'){var _0x104ec1=this['graphicLayers'][_0x30d526(0x18b)](),_0x3fba45=_createForOfIteratorHelper(_0x104ec1),_0x5a7494;try{for(_0x3fba45['s']();!(_0x5a7494=_0x3fba45['n']())['done'];){var _0x22d22a=_0x5a7494[_0x30d526(0x159)];_0x22d22a[_0x30d526(0x187)]===_0x5cea08['id']&&_0x2789a2['push'](_0x22d22a);}}catch(_0x43ef26){_0x3fba45['e'](_0x43ef26);}finally{_0x3fba45['f']();}}else _0x2789a2['push'](this['getLayer'](_0xcfcdc4));_0x2789a2['forEach'](function(_0x2c5d65){var _0x59fdd7=_0x30d526;_0x2c5d65?_0x2c5d65['setData'](_0x5cea08):_0x28ab03['warn']('\u56FE\u5C42'['concat'](_0x2c5d65['id'],_0x59fdd7(0x160)));});}},{'key':_0x46ea6c(0x169),'value':function _0x1d5e27(_0x47c8d1,_0x1d42b0){var _0x59b312=_0x46ea6c;if(!this['_canOperate']())return;var _0x55e9a7=this[_0x59b312(0x155)](_0x47c8d1);if(!_0x55e9a7){_0x28ab03[_0x59b312(0x17f)](_0x59b312(0x188));return;}_0x55e9a7[_0x59b312(0x173)](_0x1d42b0);}},{'key':_0x46ea6c(0x152),'value':function _0x4130f6(_0x2a8645,_0x370f25){var _0x2b8cbc=_0x46ea6c;if(!this[_0x2b8cbc(0x18c)]())return;var _0x1a36ff=this['getLayer'](_0x2a8645);if(!_0x1a36ff){_0x28ab03[_0x2b8cbc(0x17f)]('未找到对应图层');return;}_0x1a36ff['flyTo'](_0x370f25);}},{'key':_0x46ea6c(0x174),'value':function _0x45875a(_0x36c871,_0x131cc1){var _0x1d2315=_0x46ea6c,_0x1c3533=this;if(!this['_canOperate']())return;if(isArray(_0x36c871)){var _0x43fc14=_0x36c871['map'](function(_0x521638){var _0x366d81=_0x352f;return _0x1c3533[_0x366d81(0x150)](_0x521638);}),_0x223391=flattenDeep(_0x43fc14['map'](function(_0x1cd16d){var _0x2400f3=_0x352f;return _0x1cd16d[_0x2400f3(0x16a)]['map'](function(_0x2289d7){var _0x2e4020=_0x2400f3;return _0x2289d7['source'][_0x2e4020(0x14c)];});}));_0x28ab03[_0x1d2315(0x19b)](this['getMap']()[_0x1d2315(0x198)],_0x223391,_0x131cc1);}}},{'key':'destroy','value':function _0x352b37(){var _0x5ce1bf=_0x46ea6c;if(!this[_0x5ce1bf(0x18c)]())return;this[_0x5ce1bf(0x195)](),this['graphicLayers']=new Map(),this[_0x5ce1bf(0x175)]=new Map(),this[_0x5ce1bf(0x19d)]=!![];}}]),_0xb7aca3;}());export{GraphicLayerCollection as default};
|
|
@@ -7,6 +7,7 @@ export default class HtmlEntity extends BaseEntity {
|
|
|
7
7
|
verticalOrigin: number;
|
|
8
8
|
postDomBack: any;
|
|
9
9
|
private _clampToGround;
|
|
10
|
+
private _scrollProxyCleanup;
|
|
10
11
|
constructor(options: any);
|
|
11
12
|
private _init;
|
|
12
13
|
private _canOperate;
|
|
@@ -15,5 +16,8 @@ export default class HtmlEntity extends BaseEntity {
|
|
|
15
16
|
remove(): void;
|
|
16
17
|
updateStyle(style: any): void;
|
|
17
18
|
private _setStyle;
|
|
19
|
+
private _bindScrollProxy;
|
|
20
|
+
private _clearScrollProxy;
|
|
21
|
+
private _runElementCleanups;
|
|
18
22
|
updateData(data: any): void;
|
|
19
23
|
}
|