deeptwins-engine-3d 0.1.69 → 0.1.71
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/fire.png +0 -0
- package/dist/assets/Build/DeepTwins/Image/fountain.png +0 -0
- package/dist/assets/Build/DeepTwins/Image/smoke.png +0 -0
- package/dist/esm/analyze/LineOfSightAnalysis.d.ts +44 -0
- package/dist/esm/analyze/LineOfSightAnalysis.js +326 -0
- package/dist/esm/analyze/TerrainExcavationAnalysis.d.ts +59 -0
- package/dist/esm/analyze/TerrainExcavationAnalysis.js +612 -0
- package/dist/esm/constant.d.ts +88 -0
- package/dist/esm/constant.js +132 -0
- package/dist/esm/drawCommand/viewShed/RectangularSensorPrimitive.d.ts +3 -0
- package/dist/esm/drawCommand/viewShed/RectangularSensorPrimitive.js +56 -21
- package/dist/esm/drawCommand/viewShed/config.d.ts +2 -2
- package/dist/esm/drawCommand/viewShed/config.js +2 -2
- package/dist/esm/drawer/index.d.ts +1 -1
- package/dist/esm/graphicLayer/BaseSource.d.ts +1 -1
- package/dist/esm/index.d.ts +15 -0
- package/dist/esm/index.js +24 -2
- package/dist/esm/map/Map.d.ts +1 -0
- package/dist/esm/map/Map.js +18 -0
- package/dist/esm/particle/BaseParticle.d.ts +61 -0
- package/dist/esm/particle/BaseParticle.js +196 -0
- package/dist/esm/particle/FireParticle.d.ts +8 -0
- package/dist/esm/particle/FireParticle.js +65 -0
- package/dist/esm/particle/FountainParticle.d.ts +10 -0
- package/dist/esm/particle/FountainParticle.js +80 -0
- package/dist/esm/particle/SmokeParticle.d.ts +8 -0
- package/dist/esm/particle/SmokeParticle.js +65 -0
- package/dist/esm/particle/common.d.ts +18 -0
- package/dist/esm/particle/common.js +23 -0
- package/dist/esm/particle/index.d.ts +5 -0
- package/dist/esm/particle/index.js +5 -0
- package/dist/esm/tileLayer/CustomRasterLayer.d.ts +188 -0
- package/dist/esm/tileLayer/CustomRasterLayer.js +776 -0
- package/dist/esm/visualization/DynamicWater.d.ts +39 -0
- package/dist/esm/visualization/DynamicWater.js +289 -0
- package/dist/esm/visualization/MigrationEffect.d.ts +36 -0
- package/dist/esm/visualization/MigrationEffect.js +397 -0
- package/dist/esm/visualization/RadarScan.d.ts +39 -0
- package/dist/esm/visualization/RadarScan.js +333 -0
- package/dist/umd/deeptwins-engine-3d.min.js +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference path="../typings.d.ts" />
|
|
2
|
+
import * as Cesium from 'deeptwins-cesium';
|
|
3
|
+
import { MapContext } from '../map/Map';
|
|
4
|
+
type DynamicWaterPosition = [number, number] | [number, number, number] | {
|
|
5
|
+
lng: number;
|
|
6
|
+
lat: number;
|
|
7
|
+
alt?: number;
|
|
8
|
+
};
|
|
9
|
+
interface DynamicWaterOptions {
|
|
10
|
+
positions?: DynamicWaterPosition[];
|
|
11
|
+
style?: any;
|
|
12
|
+
}
|
|
13
|
+
export default class DynamicWater {
|
|
14
|
+
_mapContext: MapContext | undefined;
|
|
15
|
+
id: string;
|
|
16
|
+
positions: DynamicWaterPosition[];
|
|
17
|
+
style: any;
|
|
18
|
+
primitive: Cesium.Primitive | null;
|
|
19
|
+
material: Cesium.Material | null;
|
|
20
|
+
isDestroyed: boolean;
|
|
21
|
+
private _cartesianPositions;
|
|
22
|
+
private _isAdded;
|
|
23
|
+
constructor(options?: DynamicWaterOptions);
|
|
24
|
+
getMap(): any;
|
|
25
|
+
addToMap(map: any): this | undefined;
|
|
26
|
+
remove(): void;
|
|
27
|
+
show(isShow: boolean): this | undefined;
|
|
28
|
+
setData(positions?: DynamicWaterPosition[]): this | undefined;
|
|
29
|
+
setStyle(style?: any): this | undefined;
|
|
30
|
+
flyTo(options?: any): void;
|
|
31
|
+
destroy(): void;
|
|
32
|
+
private _canOperate;
|
|
33
|
+
private _rebuildPrimitive;
|
|
34
|
+
private _updateMaterialUniforms;
|
|
35
|
+
private _getWaterUniforms;
|
|
36
|
+
private _transformPositions;
|
|
37
|
+
private _transformPosition;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,289 @@
|
|
|
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
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); }
|
|
5
|
+
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; }
|
|
6
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
7
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
|
+
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); } }
|
|
12
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
+
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; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
15
|
+
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); }
|
|
16
|
+
import * as Cesium from 'deeptwins-cesium';
|
|
17
|
+
import { cloneDeep, merge } from 'lodash';
|
|
18
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
19
|
+
import { DEFAULT_DYNAMIC_WATER_STYLE } from "../constant";
|
|
20
|
+
import * as utils from "../tool/utils";
|
|
21
|
+
var REBUILD_STYLE_KEYS = ['height', 'stRotation'];
|
|
22
|
+
|
|
23
|
+
// 动态反射水面
|
|
24
|
+
var DynamicWater = /*#__PURE__*/function () {
|
|
25
|
+
function DynamicWater() {
|
|
26
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
27
|
+
_classCallCheck(this, DynamicWater);
|
|
28
|
+
_defineProperty(this, "_mapContext", void 0);
|
|
29
|
+
_defineProperty(this, "id", void 0);
|
|
30
|
+
_defineProperty(this, "positions", []);
|
|
31
|
+
_defineProperty(this, "style", void 0);
|
|
32
|
+
_defineProperty(this, "primitive", null);
|
|
33
|
+
_defineProperty(this, "material", null);
|
|
34
|
+
_defineProperty(this, "isDestroyed", false);
|
|
35
|
+
_defineProperty(this, "_cartesianPositions", []);
|
|
36
|
+
_defineProperty(this, "_isAdded", false);
|
|
37
|
+
var _options$positions = options.positions,
|
|
38
|
+
positions = _options$positions === void 0 ? [] : _options$positions,
|
|
39
|
+
_options$style = options.style,
|
|
40
|
+
style = _options$style === void 0 ? {} : _options$style;
|
|
41
|
+
this.id = uuidv4();
|
|
42
|
+
this.positions = positions;
|
|
43
|
+
this.style = merge(DEFAULT_DYNAMIC_WATER_STYLE(), cloneDeep(style || {}));
|
|
44
|
+
this._cartesianPositions = this._transformPositions(this.positions);
|
|
45
|
+
}
|
|
46
|
+
_createClass(DynamicWater, [{
|
|
47
|
+
key: "getMap",
|
|
48
|
+
value: function getMap() {
|
|
49
|
+
var _this$_mapContext;
|
|
50
|
+
return (_this$_mapContext = this._mapContext) === null || _this$_mapContext === void 0 ? void 0 : _this$_mapContext.getMap();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// 添加到地图
|
|
54
|
+
}, {
|
|
55
|
+
key: "addToMap",
|
|
56
|
+
value: function addToMap(map) {
|
|
57
|
+
if (!this._canOperate()) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
if (this._isAdded && this.getMap() === map) {
|
|
61
|
+
return this;
|
|
62
|
+
}
|
|
63
|
+
if (this._isAdded) {
|
|
64
|
+
this.remove();
|
|
65
|
+
}
|
|
66
|
+
this._mapContext = map._mapContext;
|
|
67
|
+
this._rebuildPrimitive();
|
|
68
|
+
return this;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// 移除水面
|
|
72
|
+
}, {
|
|
73
|
+
key: "remove",
|
|
74
|
+
value: function remove() {
|
|
75
|
+
if (this.isDestroyed || !this._isAdded) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
var map = this.getMap();
|
|
79
|
+
if (map && this.primitive) {
|
|
80
|
+
map.scene.primitives.remove(this.primitive);
|
|
81
|
+
}
|
|
82
|
+
this.primitive = null;
|
|
83
|
+
this.material = null;
|
|
84
|
+
this._isAdded = false;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// 显示隐藏
|
|
88
|
+
}, {
|
|
89
|
+
key: "show",
|
|
90
|
+
value: function show(isShow) {
|
|
91
|
+
if (!this._canOperate()) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
this.style.show = isShow;
|
|
95
|
+
if (this.primitive) {
|
|
96
|
+
this.primitive.show = isShow;
|
|
97
|
+
}
|
|
98
|
+
return this;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// 更新水面范围
|
|
102
|
+
}, {
|
|
103
|
+
key: "setData",
|
|
104
|
+
value: function setData() {
|
|
105
|
+
var positions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
106
|
+
if (!this._canOperate()) {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
this.positions = positions;
|
|
110
|
+
this._cartesianPositions = this._transformPositions(positions);
|
|
111
|
+
if (this._isAdded) {
|
|
112
|
+
this._rebuildPrimitive();
|
|
113
|
+
}
|
|
114
|
+
return this;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// 更新水面样式
|
|
118
|
+
}, {
|
|
119
|
+
key: "setStyle",
|
|
120
|
+
value: function setStyle() {
|
|
121
|
+
var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
122
|
+
if (!this._canOperate()) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
var needRebuild = REBUILD_STYLE_KEYS.some(function (key) {
|
|
126
|
+
return Object.prototype.hasOwnProperty.call(style, key);
|
|
127
|
+
});
|
|
128
|
+
this.style = merge(this.style, cloneDeep(style || {}));
|
|
129
|
+
if (!this._isAdded) {
|
|
130
|
+
return this;
|
|
131
|
+
}
|
|
132
|
+
if (needRebuild) {
|
|
133
|
+
this._rebuildPrimitive();
|
|
134
|
+
} else {
|
|
135
|
+
this._updateMaterialUniforms();
|
|
136
|
+
this.show(this.style.show);
|
|
137
|
+
}
|
|
138
|
+
return this;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// 飞行至水面位置
|
|
142
|
+
}, {
|
|
143
|
+
key: "flyTo",
|
|
144
|
+
value: function flyTo() {
|
|
145
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
146
|
+
if (!this._canOperate() || !this.getMap()) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
if (this._cartesianPositions.length < 3) {
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
utils.cameraFlyToPositions(this.getMap().camera, this._cartesianPositions, _objectSpread({
|
|
153
|
+
scale: 1.4
|
|
154
|
+
}, options));
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// 销毁
|
|
158
|
+
}, {
|
|
159
|
+
key: "destroy",
|
|
160
|
+
value: function destroy() {
|
|
161
|
+
if (this.isDestroyed) {
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
this.remove();
|
|
165
|
+
this.positions = [];
|
|
166
|
+
this._cartesianPositions = [];
|
|
167
|
+
this._mapContext = undefined;
|
|
168
|
+
this.isDestroyed = true;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// 是否能进行操作
|
|
172
|
+
}, {
|
|
173
|
+
key: "_canOperate",
|
|
174
|
+
value: function _canOperate() {
|
|
175
|
+
if (this.isDestroyed) {
|
|
176
|
+
utils.error('DynamicWater实例已销毁');
|
|
177
|
+
return false;
|
|
178
|
+
}
|
|
179
|
+
return true;
|
|
180
|
+
}
|
|
181
|
+
}, {
|
|
182
|
+
key: "_rebuildPrimitive",
|
|
183
|
+
value: function _rebuildPrimitive() {
|
|
184
|
+
var map = this.getMap();
|
|
185
|
+
if (!map) {
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
if (this.primitive) {
|
|
189
|
+
map.scene.primitives.remove(this.primitive);
|
|
190
|
+
this.primitive = null;
|
|
191
|
+
this.material = null;
|
|
192
|
+
}
|
|
193
|
+
if (this._cartesianPositions.length < 3) {
|
|
194
|
+
utils.error('DynamicWater至少需要3个有效点');
|
|
195
|
+
this._isAdded = false;
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
var geometry = new Cesium.PolygonGeometry({
|
|
199
|
+
polygonHierarchy: new Cesium.PolygonHierarchy(this._cartesianPositions),
|
|
200
|
+
vertexFormat: Cesium.MaterialAppearance.MaterialSupport.ALL.vertexFormat,
|
|
201
|
+
height: this.style.height,
|
|
202
|
+
stRotation: utils.toRadians(this.style.stRotation || 0),
|
|
203
|
+
perPositionHeight: false
|
|
204
|
+
});
|
|
205
|
+
var material = Cesium.Material.fromType(Cesium.Material.WaterType, this._getWaterUniforms());
|
|
206
|
+
var primitive = map.scene.primitives.add(new Cesium.Primitive({
|
|
207
|
+
geometryInstances: new Cesium.GeometryInstance({
|
|
208
|
+
id: this.id,
|
|
209
|
+
geometry: geometry
|
|
210
|
+
}),
|
|
211
|
+
appearance: new Cesium.MaterialAppearance({
|
|
212
|
+
material: material,
|
|
213
|
+
faceForward: true,
|
|
214
|
+
translucent: true,
|
|
215
|
+
materialSupport: Cesium.MaterialAppearance.MaterialSupport.ALL
|
|
216
|
+
}),
|
|
217
|
+
asynchronous: false
|
|
218
|
+
}));
|
|
219
|
+
primitive.show = this.style.show;
|
|
220
|
+
this.material = material;
|
|
221
|
+
this.primitive = primitive;
|
|
222
|
+
this._isAdded = true;
|
|
223
|
+
}
|
|
224
|
+
}, {
|
|
225
|
+
key: "_updateMaterialUniforms",
|
|
226
|
+
value: function _updateMaterialUniforms() {
|
|
227
|
+
var material = this.material;
|
|
228
|
+
if (!material) {
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
var uniforms = this._getWaterUniforms();
|
|
232
|
+
Object.keys(uniforms).forEach(function (key) {
|
|
233
|
+
material.uniforms[key] = uniforms[key];
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}, {
|
|
237
|
+
key: "_getWaterUniforms",
|
|
238
|
+
value: function _getWaterUniforms() {
|
|
239
|
+
var _this$style = this.style,
|
|
240
|
+
baseWaterColor = _this$style.baseWaterColor,
|
|
241
|
+
blendColor = _this$style.blendColor,
|
|
242
|
+
specularMap = _this$style.specularMap,
|
|
243
|
+
normalMap = _this$style.normalMap,
|
|
244
|
+
frequency = _this$style.frequency,
|
|
245
|
+
animationSpeed = _this$style.animationSpeed,
|
|
246
|
+
amplitude = _this$style.amplitude,
|
|
247
|
+
specularIntensity = _this$style.specularIntensity,
|
|
248
|
+
fadeFactor = _this$style.fadeFactor;
|
|
249
|
+
return {
|
|
250
|
+
baseWaterColor: utils.colorString(baseWaterColor),
|
|
251
|
+
blendColor: utils.colorString(blendColor),
|
|
252
|
+
specularMap: specularMap,
|
|
253
|
+
normalMap: normalMap,
|
|
254
|
+
frequency: frequency,
|
|
255
|
+
animationSpeed: animationSpeed,
|
|
256
|
+
amplitude: amplitude,
|
|
257
|
+
specularIntensity: specularIntensity,
|
|
258
|
+
fadeFactor: fadeFactor
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
}, {
|
|
262
|
+
key: "_transformPositions",
|
|
263
|
+
value: function _transformPositions() {
|
|
264
|
+
var _this = this;
|
|
265
|
+
var positions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
266
|
+
return positions.map(function (position) {
|
|
267
|
+
return _this._transformPosition(position);
|
|
268
|
+
}).filter(Boolean);
|
|
269
|
+
}
|
|
270
|
+
}, {
|
|
271
|
+
key: "_transformPosition",
|
|
272
|
+
value: function _transformPosition(position) {
|
|
273
|
+
if (Array.isArray(position)) {
|
|
274
|
+
var _position = _slicedToArray(position, 3),
|
|
275
|
+
lng = _position[0],
|
|
276
|
+
lat = _position[1],
|
|
277
|
+
_position$ = _position[2],
|
|
278
|
+
alt = _position$ === void 0 ? 0 : _position$;
|
|
279
|
+
return utils.lngLatAltToCartesian3(lng, lat, alt);
|
|
280
|
+
}
|
|
281
|
+
if (position && _typeof(position) === 'object') {
|
|
282
|
+
return utils.lngLatAltToCartesian3(position.lng, position.lat, position.alt || 0);
|
|
283
|
+
}
|
|
284
|
+
return null;
|
|
285
|
+
}
|
|
286
|
+
}]);
|
|
287
|
+
return DynamicWater;
|
|
288
|
+
}();
|
|
289
|
+
export { DynamicWater as default };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/// <reference path="../typings.d.ts" />
|
|
2
|
+
import * as Cesium from 'deeptwins-cesium';
|
|
3
|
+
import { MapContext } from '../map/Map';
|
|
4
|
+
export default class MigrationEffect {
|
|
5
|
+
_mapContext: MapContext | undefined;
|
|
6
|
+
id: string;
|
|
7
|
+
routes: any;
|
|
8
|
+
style: any;
|
|
9
|
+
lineLayer: any;
|
|
10
|
+
endpointEntities: Cesium.Entity[];
|
|
11
|
+
isDestroyed: boolean;
|
|
12
|
+
private _routeSamples;
|
|
13
|
+
private _isAdded;
|
|
14
|
+
constructor(routes?: any, style?: any);
|
|
15
|
+
getMap(): any;
|
|
16
|
+
addToMap(map: any): this | undefined;
|
|
17
|
+
remove(): this | undefined;
|
|
18
|
+
show(isShow: boolean): this | undefined;
|
|
19
|
+
setData(routes?: any): this | undefined;
|
|
20
|
+
setStyle(style?: any): this | undefined;
|
|
21
|
+
flyTo(options?: any): void;
|
|
22
|
+
destroy(): void;
|
|
23
|
+
private _canOperate;
|
|
24
|
+
private _rebuild;
|
|
25
|
+
private _clearLayers;
|
|
26
|
+
private _createLineLayer;
|
|
27
|
+
private _createEndpoints;
|
|
28
|
+
private _createEndpoint;
|
|
29
|
+
private _getEndpointPosition;
|
|
30
|
+
private _buildLineGeoJson;
|
|
31
|
+
private _buildRouteSamples;
|
|
32
|
+
private _sampleRoute;
|
|
33
|
+
private _normalizeCoordinate;
|
|
34
|
+
private _createNormalizedPosition;
|
|
35
|
+
private _isSamePosition;
|
|
36
|
+
}
|