gisviewer-vue3-arcgis 1.0.284 → 1.0.285
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/es/index.mjs +6 -5
- package/es/src/gis-map/gis-map.vue.d.ts +124 -1
- package/es/src/gis-map/gis-map.vue.mjs +63 -63
- package/es/src/gis-map/index.d.ts +124 -1
- package/es/src/gis-map/utils/edpass-device-controller.mjs +278 -0
- package/es/src/gis-map/utils/green-wave-band-controller/index.mjs +362 -0
- package/es/src/gis-map/utils/holo-flow/index.mjs +101 -0
- package/es/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.d.ts +125 -0
- package/es/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.mjs +153 -0
- package/es/src/gis-map/utils/holo-flow/signal-countdown-panel.vue2.mjs +4 -0
- package/es/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.mjs +336 -0
- package/es/src/gis-map/utils/holo-flow/signal-holo-flow.mjs +236 -0
- package/es/src/gis-map/utils/holo-flow/trace-holo-flow.mjs +106 -0
- package/es/src/gis-map/utils/holo-flow/trace-renderer-external.mjs +576 -0
- package/es/src/gis-map/utils/holo-flow/trace-renderer-layer.mjs +386 -0
- package/es/src/gis-map/utils/index.mjs +2 -2
- package/es/src/gis-map/utils/police-jurisdiction.mjs +202 -0
- package/es/src/gis-map/utils/road-config-tool/cross.mjs +127 -0
- package/es/src/gis-map/utils/road-config-tool/entrance.mjs +79 -0
- package/es/src/gis-map/utils/road-config-tool/exit.mjs +86 -0
- package/es/src/gis-map/utils/road-config-tool/index.mjs +112 -0
- package/es/src/gis-map/utils/road-config-tool/indicator-area.mjs +44 -0
- package/es/src/gis-map/utils/road-config-tool/lane.mjs +35 -0
- package/es/src/gis-map/utils/road-config-tool/search-nearby-lanes.mjs +265 -0
- package/es/src/gis-map/utils/signal-control-area/cross-renderer.mjs +593 -0
- package/es/src/gis-map/utils/signal-control-area/district-controller.mjs +84 -0
- package/es/src/gis-map/utils/signal-control-area/district-renderer.mjs +122 -0
- package/es/src/gis-map/utils/signal-control-area/edit-area.mjs +550 -0
- package/es/src/gis-map/utils/signal-control-area/layer-symbol.mjs +984 -0
- package/es/src/gis-map/utils/signal-control-area/signal-area-controller.mjs +140 -0
- package/es/src/gis-map/utils/signal-control-area/signal-cross-controller.mjs +423 -0
- package/es/src/gis-map/utils/signal-control-area/signal-renderer.mjs +123 -0
- package/es/src/gis-map/utils/signal-control-area/sub-district-renderer.mjs +367 -0
- package/es/src/gis-map/utils/signal-system/signal-system-controller.mjs +137 -0
- package/es/src/gis-map/utils/sketchViewTool.mjs +503 -0
- package/es/src/gis-map-ol/gis-map-ol.vue.d.ts +50 -0
- package/es/src/gis-map-ol/gis-map-ol.vue.mjs +67 -0
- package/es/src/gis-map-ol/gis-map-ol.vue2.mjs +4 -0
- package/es/src/gis-map-ol/gis-map-ol.vue3.mjs +5 -0
- package/es/src/gis-map-ol/index.d.ts +44 -1
- package/es/src/gis-map-ol/index.mjs +8 -0
- package/es/src/gis-map-ol/utils/ol-map-initializer.d.ts +28 -0
- package/es/src/gis-map-ol/utils/ol-map-initializer.mjs +129 -0
- package/es/src/gis-map-ol/utils/signal-control/signal-cross-controller.d.ts +42 -0
- package/es/src/gis-map-ol/utils/signal-control/signal-cross-controller.mjs +263 -0
- package/es/src/index.mjs +4 -4
- package/es/src/types/index.mjs +5 -0
- package/lib/index.js +1 -1
- package/lib/src/gis-map/gis-map.vue.d.ts +124 -1
- package/lib/src/gis-map/gis-map.vue.js +1 -1
- package/lib/src/gis-map/index.d.ts +124 -1
- package/lib/src/gis-map/utils/edpass-device-controller.js +1 -0
- package/lib/src/gis-map/utils/green-wave-band-controller/index.js +1 -0
- package/lib/src/gis-map/utils/holo-flow/index.js +1 -0
- package/lib/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.d.ts +125 -0
- package/lib/src/gis-map/utils/holo-flow/signal-countdown-panel.vue.js +1 -0
- package/lib/src/gis-map/utils/holo-flow/signal-countdown-panel.vue2.js +1 -0
- package/lib/src/gis-map/utils/holo-flow/signal-holo-flow-lsr.js +1 -0
- package/lib/src/gis-map/utils/holo-flow/signal-holo-flow.js +1 -0
- package/lib/src/gis-map/utils/holo-flow/trace-holo-flow.js +2 -0
- package/lib/src/gis-map/utils/holo-flow/trace-renderer-external.js +1 -0
- package/lib/src/gis-map/utils/holo-flow/trace-renderer-layer.js +1 -0
- package/lib/src/gis-map/utils/index.js +1 -1
- package/lib/src/gis-map/utils/police-jurisdiction.js +1 -0
- package/lib/src/gis-map/utils/road-config-tool/cross.js +1 -0
- package/lib/src/gis-map/utils/road-config-tool/entrance.js +1 -0
- package/lib/src/gis-map/utils/road-config-tool/exit.js +1 -0
- package/lib/src/gis-map/utils/road-config-tool/index.js +1 -0
- package/lib/src/gis-map/utils/road-config-tool/indicator-area.js +1 -0
- package/lib/src/gis-map/utils/road-config-tool/lane.js +1 -0
- package/lib/src/gis-map/utils/road-config-tool/search-nearby-lanes.js +1 -0
- package/lib/src/gis-map/utils/signal-control-area/cross-renderer.js +1 -0
- package/lib/src/gis-map/utils/signal-control-area/district-controller.js +1 -0
- package/lib/src/gis-map/utils/signal-control-area/district-renderer.js +1 -0
- package/lib/src/gis-map/utils/signal-control-area/edit-area.js +1 -0
- package/lib/src/gis-map/utils/signal-control-area/layer-symbol.js +1 -0
- package/lib/src/gis-map/utils/signal-control-area/signal-area-controller.js +1 -0
- package/lib/src/gis-map/utils/signal-control-area/signal-cross-controller.js +1 -0
- package/lib/src/gis-map/utils/signal-control-area/signal-renderer.js +1 -0
- package/lib/src/gis-map/utils/signal-control-area/sub-district-renderer.js +1 -0
- package/lib/src/gis-map/utils/signal-system/signal-system-controller.js +1 -0
- package/lib/src/gis-map/utils/sketchViewTool.js +1 -0
- package/lib/src/gis-map-ol/gis-map-ol.vue.d.ts +50 -0
- package/lib/src/gis-map-ol/gis-map-ol.vue.js +1 -0
- package/lib/src/gis-map-ol/gis-map-ol.vue2.js +1 -0
- package/lib/src/gis-map-ol/gis-map-ol.vue3.js +1 -0
- package/lib/src/gis-map-ol/index.d.ts +44 -1
- package/lib/src/gis-map-ol/index.js +1 -0
- package/lib/src/gis-map-ol/utils/ol-map-initializer.d.ts +28 -0
- package/lib/src/gis-map-ol/utils/ol-map-initializer.js +1 -0
- package/lib/src/gis-map-ol/utils/signal-control/signal-cross-controller.d.ts +42 -0
- package/lib/src/gis-map-ol/utils/signal-control/signal-cross-controller.js +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/types/index.js +1 -0
- package/package.json +1 -1
package/es/index.mjs
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import "core-js/stable/array/at";
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as n } from "./src/gis-map/utils/index.mjs";
|
|
3
3
|
import * as s from "./src/index.mjs";
|
|
4
4
|
import { GisMap as m } from "./src/gis-map/index.mjs";
|
|
5
|
-
|
|
5
|
+
import { GisMapOl as c } from "./src/gis-map-ol/index.mjs";
|
|
6
6
|
const a = {
|
|
7
7
|
install: (o, t) => {
|
|
8
|
-
for (const
|
|
9
|
-
o.use(s[
|
|
8
|
+
for (const i in s)
|
|
9
|
+
o.use(s[i]);
|
|
10
10
|
const { gisviewerAssetsRoot: e } = t;
|
|
11
11
|
o.config.globalProperties.$gisviewerAssetsRoot = e || "";
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
14
|
export {
|
|
15
15
|
m as GisMap,
|
|
16
|
-
|
|
16
|
+
c as GisMapOl,
|
|
17
|
+
n as MapUtils,
|
|
17
18
|
a as default
|
|
18
19
|
};
|
|
@@ -217,7 +217,130 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
217
217
|
setEdpassLayerVisibility: (params: IShowEdpassDeviceParams) => Promise<import("../types").IResult>;
|
|
218
218
|
props: any;
|
|
219
219
|
emit: (event: "mapLoaded" | "markerClick" | "mapClick" | "update:zoom", ...args: any[]) => void;
|
|
220
|
-
SignalCountdownPanel:
|
|
220
|
+
SignalCountdownPanel: import("vue").DefineComponent<{
|
|
221
|
+
displayMode: {
|
|
222
|
+
type: StringConstructor;
|
|
223
|
+
required: true;
|
|
224
|
+
};
|
|
225
|
+
flash: {
|
|
226
|
+
type: BooleanConstructor;
|
|
227
|
+
required: true;
|
|
228
|
+
};
|
|
229
|
+
crossId: {
|
|
230
|
+
type: StringConstructor;
|
|
231
|
+
required: true;
|
|
232
|
+
};
|
|
233
|
+
roadId: {
|
|
234
|
+
type: StringConstructor;
|
|
235
|
+
required: true;
|
|
236
|
+
};
|
|
237
|
+
mapPoint: {
|
|
238
|
+
type: ArrayConstructor;
|
|
239
|
+
required: true;
|
|
240
|
+
};
|
|
241
|
+
stopLine: {
|
|
242
|
+
type: ArrayConstructor;
|
|
243
|
+
required: true;
|
|
244
|
+
};
|
|
245
|
+
scale: {
|
|
246
|
+
type: NumberConstructor;
|
|
247
|
+
required: true;
|
|
248
|
+
};
|
|
249
|
+
position: {
|
|
250
|
+
type: ObjectConstructor;
|
|
251
|
+
required: true;
|
|
252
|
+
};
|
|
253
|
+
rotation: {
|
|
254
|
+
type: NumberConstructor;
|
|
255
|
+
required: true;
|
|
256
|
+
};
|
|
257
|
+
lampStatus: {
|
|
258
|
+
type: ObjectConstructor;
|
|
259
|
+
required: true;
|
|
260
|
+
};
|
|
261
|
+
}, {
|
|
262
|
+
colors: string[];
|
|
263
|
+
props: any;
|
|
264
|
+
panelStyle: import("vue").ComputedRef<{
|
|
265
|
+
top: string;
|
|
266
|
+
left: string;
|
|
267
|
+
'transform-origin': string;
|
|
268
|
+
transform: string;
|
|
269
|
+
}>;
|
|
270
|
+
blImage: import("vue").ComputedRef<string>;
|
|
271
|
+
blNumberStyle: import("vue").ComputedRef<any>;
|
|
272
|
+
blLampStyle: import("vue").ComputedRef<{
|
|
273
|
+
display: string;
|
|
274
|
+
animation: string;
|
|
275
|
+
}>;
|
|
276
|
+
uImage: import("vue").ComputedRef<string>;
|
|
277
|
+
uNumberStyle: import("vue").ComputedRef<any>;
|
|
278
|
+
uLampStyle: import("vue").ComputedRef<{
|
|
279
|
+
display: string;
|
|
280
|
+
animation: string;
|
|
281
|
+
}>;
|
|
282
|
+
lImage: import("vue").ComputedRef<string>;
|
|
283
|
+
lNumberStyle: import("vue").ComputedRef<any>;
|
|
284
|
+
lLampStyle: import("vue").ComputedRef<{
|
|
285
|
+
display: string;
|
|
286
|
+
animation: string;
|
|
287
|
+
}>;
|
|
288
|
+
sImage: import("vue").ComputedRef<string>;
|
|
289
|
+
sNumberStyle: import("vue").ComputedRef<any>;
|
|
290
|
+
sLampStyle: import("vue").ComputedRef<{
|
|
291
|
+
display: string;
|
|
292
|
+
animation: string;
|
|
293
|
+
}>;
|
|
294
|
+
rImage: import("vue").ComputedRef<string>;
|
|
295
|
+
rNumberStyle: import("vue").ComputedRef<any>;
|
|
296
|
+
rLampStyle: import("vue").ComputedRef<{
|
|
297
|
+
display: string;
|
|
298
|
+
animation: string;
|
|
299
|
+
}>;
|
|
300
|
+
getColorString: (color: string | undefined) => "red" | "rgb(255, 192, 2)" | "lime" | "white";
|
|
301
|
+
getNumberStyle: (color: string | undefined) => any;
|
|
302
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
303
|
+
displayMode: {
|
|
304
|
+
type: StringConstructor;
|
|
305
|
+
required: true;
|
|
306
|
+
};
|
|
307
|
+
flash: {
|
|
308
|
+
type: BooleanConstructor;
|
|
309
|
+
required: true;
|
|
310
|
+
};
|
|
311
|
+
crossId: {
|
|
312
|
+
type: StringConstructor;
|
|
313
|
+
required: true;
|
|
314
|
+
};
|
|
315
|
+
roadId: {
|
|
316
|
+
type: StringConstructor;
|
|
317
|
+
required: true;
|
|
318
|
+
};
|
|
319
|
+
mapPoint: {
|
|
320
|
+
type: ArrayConstructor;
|
|
321
|
+
required: true;
|
|
322
|
+
};
|
|
323
|
+
stopLine: {
|
|
324
|
+
type: ArrayConstructor;
|
|
325
|
+
required: true;
|
|
326
|
+
};
|
|
327
|
+
scale: {
|
|
328
|
+
type: NumberConstructor;
|
|
329
|
+
required: true;
|
|
330
|
+
};
|
|
331
|
+
position: {
|
|
332
|
+
type: ObjectConstructor;
|
|
333
|
+
required: true;
|
|
334
|
+
};
|
|
335
|
+
rotation: {
|
|
336
|
+
type: NumberConstructor;
|
|
337
|
+
required: true;
|
|
338
|
+
};
|
|
339
|
+
lampStatus: {
|
|
340
|
+
type: ObjectConstructor;
|
|
341
|
+
required: true;
|
|
342
|
+
};
|
|
343
|
+
}>>, {}, {}>;
|
|
221
344
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("mapLoaded" | "markerClick" | "mapClick" | "update:zoom")[], "mapLoaded" | "markerClick" | "mapClick" | "update:zoom", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
222
345
|
config: {
|
|
223
346
|
type: StringConstructor;
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { defineComponent as At, ref as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as At, ref as G, reactive as kt, onMounted as Dt, getCurrentInstance as Lt, onUnmounted as Tt, computed as It, openBlock as B, createElementBlock as H, createElementVNode as y, withDirectives as Bt, vShow as Mt, Fragment as Pt, renderList as Vt, createBlock as zt } from "vue";
|
|
2
|
+
import N, { registerStore as _t } from "../stores/index.mjs";
|
|
3
3
|
import "./style/index.css";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
4
|
+
import xt from "./utils/dbscan-cluster/index.mjs";
|
|
5
|
+
import Gt from "./utils/detect-gpu.mjs";
|
|
6
|
+
import Ht from "./utils/edpass-device-controller.mjs";
|
|
7
|
+
import E from "./utils/green-wave-band-controller/index.mjs";
|
|
8
|
+
import Nt from "./utils/holo-flow/index.mjs";
|
|
9
|
+
import Et from "./utils/holo-flow/signal-countdown-panel.vue.mjs";
|
|
10
10
|
import Wt from "./utils/map-initializer.mjs";
|
|
11
11
|
import W from "./utils/open-drive-renderer/index.mjs";
|
|
12
12
|
import Z from "./utils/overlay.mjs";
|
|
13
|
-
import Zt from "./utils/police-jurisdiction";
|
|
13
|
+
import Zt from "./utils/police-jurisdiction.mjs";
|
|
14
14
|
import Qt from "./utils/queue-length.mjs";
|
|
15
|
-
import Q from "./utils/road-config-tool";
|
|
16
|
-
import jt from "./utils/signal-control-area/edit-area";
|
|
17
|
-
import M from "./utils/signal-control-area/signal-area-controller";
|
|
18
|
-
import Jt from "./utils/signal-control-area/signal-cross-controller";
|
|
19
|
-
import j from "./utils/signal-system/signal-system-controller";
|
|
15
|
+
import Q from "./utils/road-config-tool/index.mjs";
|
|
16
|
+
import jt from "./utils/signal-control-area/edit-area.mjs";
|
|
17
|
+
import M from "./utils/signal-control-area/signal-area-controller.mjs";
|
|
18
|
+
import Jt from "./utils/signal-control-area/signal-cross-controller.mjs";
|
|
19
|
+
import j from "./utils/signal-system/signal-system-controller.mjs";
|
|
20
20
|
import Ut from "./utils/traffic-flow.mjs";
|
|
21
|
-
const
|
|
21
|
+
const $t = { class: "gis-viewer" }, qt = { style: { position: "absolute", bottom: "80px", left: "10px", "z-index": "9999" } }, fn = /* @__PURE__ */ At({
|
|
22
22
|
__name: "gis-map",
|
|
23
23
|
props: {
|
|
24
24
|
config: {},
|
|
25
25
|
assetsRoot: {}
|
|
26
26
|
},
|
|
27
27
|
emits: ["mapLoaded", "markerClick", "mapClick", "update:zoom"],
|
|
28
|
-
setup(J, { expose: U, emit:
|
|
29
|
-
const O =
|
|
30
|
-
let n, g, c, o, s, r, f, t, l, a, S, d,
|
|
31
|
-
const k =
|
|
32
|
-
|
|
33
|
-
const P =
|
|
34
|
-
let
|
|
28
|
+
setup(J, { expose: U, emit: $ }) {
|
|
29
|
+
const O = G(null);
|
|
30
|
+
let n, g, c, o, s, r, f, t, l, a, S, d, C, A, w, p;
|
|
31
|
+
const k = G(!1);
|
|
32
|
+
_t();
|
|
33
|
+
const P = N.useAppDataStore, V = kt([]), z = (e) => Math.log2(591657527591555e-6 / e);
|
|
34
|
+
let h = null, _ = null;
|
|
35
35
|
const D = (e) => {
|
|
36
36
|
if (!Number.isFinite(e))
|
|
37
37
|
return;
|
|
38
38
|
const u = Math.round(e);
|
|
39
|
-
u !==
|
|
39
|
+
u !== _ && (_ = u, v("update:zoom", u));
|
|
40
40
|
};
|
|
41
|
-
|
|
41
|
+
Gt(), Dt(async () => {
|
|
42
42
|
if (!O.value)
|
|
43
43
|
return;
|
|
44
44
|
document.addEventListener("keydown", (m) => {
|
|
45
45
|
m.ctrlKey && m.key === "i" && (k.value = !k.value);
|
|
46
46
|
});
|
|
47
|
-
const e = Lt(), { $gisviewerAssetsRoot: u } = e.appContext.config.globalProperties, i = await (await fetch(
|
|
48
|
-
i.assetsRoot =
|
|
47
|
+
const e = Lt(), { $gisviewerAssetsRoot: u } = e.appContext.config.globalProperties, i = await (await fetch(x.config)).json();
|
|
48
|
+
i.assetsRoot = x.assetsRoot || u, P.mapConfig = i, g = new Wt(), P.mapInitializer = g, n = await g.initialize({
|
|
49
49
|
container: O.value,
|
|
50
50
|
mapConfig: i,
|
|
51
51
|
markerClickCallback: (m, T, I, Ot) => {
|
|
@@ -62,14 +62,14 @@ const qt = { class: "gis-viewer" }, Ft = { style: { position: "absolute", bottom
|
|
|
62
62
|
}) : n.watch("scale", (m) => {
|
|
63
63
|
typeof m == "number" && m > 0 && D(z(m));
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
h = () => bt.remove(), s = new Nt(n, V), await s.init(), v("mapLoaded");
|
|
66
66
|
}), Tt(() => {
|
|
67
|
-
a == null || a.clearSignalControlArea(), t == null || t.clearOpenDrive(), s.clearHoloTrace(), s.clearHoloSignal(), o == null || o.disconnectTrafficFlow(),
|
|
67
|
+
a == null || a.clearSignalControlArea(), t == null || t.clearOpenDrive(), s.clearHoloTrace(), s.clearHoloSignal(), o == null || o.disconnectTrafficFlow(), h == null || h(), h = null;
|
|
68
68
|
});
|
|
69
|
-
const
|
|
70
|
-
const e =
|
|
69
|
+
const q = It(() => n), K = () => {
|
|
70
|
+
const e = N.useAppDataStore;
|
|
71
71
|
e.saveTrackLog = !0;
|
|
72
|
-
},
|
|
72
|
+
}, F = () => {
|
|
73
73
|
s.downloadTrackLog();
|
|
74
74
|
}, X = () => {
|
|
75
75
|
L("vehicleId");
|
|
@@ -96,9 +96,9 @@ const qt = { class: "gis-viewer" }, Ft = { style: { position: "absolute", bottom
|
|
|
96
96
|
await s.handleSignalData(e);
|
|
97
97
|
}, ye = async (e) => {
|
|
98
98
|
await s.initializeLampGroup(e);
|
|
99
|
-
},
|
|
99
|
+
}, Ce = (e) => {
|
|
100
100
|
s.handleUniSignalData(e);
|
|
101
|
-
},
|
|
101
|
+
}, he = () => {
|
|
102
102
|
s.clearHoloSignal();
|
|
103
103
|
}, ve = (e) => {
|
|
104
104
|
o == null || o.toggleTrafficInfo(e), s == null || s.toggleTrafficInfo(e);
|
|
@@ -108,7 +108,7 @@ const qt = { class: "gis-viewer" }, Ft = { style: { position: "absolute", bottom
|
|
|
108
108
|
o == null || o.toggleTrafficObject(e), s == null || s.toggleTrafficObject(e);
|
|
109
109
|
}, L = (e) => {
|
|
110
110
|
s == null || s.updatePanelContent(e);
|
|
111
|
-
}, Ae = async (e) => (r || (r = new Z(n)), r.addOverlays(e)), ke = async (e) => (w || (w = new
|
|
111
|
+
}, Ae = async (e) => (r || (r = new Z(n)), r.addOverlays(e)), ke = async (e) => (w || (w = new xt(n)), w.addClusterPoints(e)), De = () => {
|
|
112
112
|
w == null || w.removeAllClusterPoints();
|
|
113
113
|
}, Le = (e) => (r || (r = new Z(n)), r.addMask(e)), Te = () => {
|
|
114
114
|
r == null || r.removeMask();
|
|
@@ -118,13 +118,13 @@ const qt = { class: "gis-viewer" }, Ft = { style: { position: "absolute", bottom
|
|
|
118
118
|
f || (f = new Qt(n)), f.updateQueueLength(e);
|
|
119
119
|
}, ze = () => {
|
|
120
120
|
f == null || f.removeQueueLength();
|
|
121
|
-
},
|
|
121
|
+
}, _e = async (e, u) => (t || (t = new W(n)), await t.showOpenDriveFromServer(e, u)), xe = async (e) => (t || (t = new W(n)), await t.clearOpenDrive(), await t.showOpenDriveFromFile(e)), Ge = (e) => t ? t.setOpendriveVisibility(e) : {
|
|
122
122
|
status: -1,
|
|
123
123
|
message: "未加载OpenDrive地图"
|
|
124
|
-
},
|
|
124
|
+
}, He = async () => await (t == null ? void 0 : t.clearOpenDrive()), Ne = async (e) => t ? await (t == null ? void 0 : t.findSumo(e)) : {
|
|
125
125
|
status: -1,
|
|
126
126
|
message: "未加载OpenDrive地图"
|
|
127
|
-
},
|
|
127
|
+
}, Ee = async (e) => t ? t.selectSumo(e) : {
|
|
128
128
|
status: -1,
|
|
129
129
|
message: "未加载OpenDrive地图"
|
|
130
130
|
}, We = async (e) => t ? t.unselectSumo(e) : {
|
|
@@ -145,26 +145,26 @@ const qt = { class: "gis-viewer" }, Ft = { style: { position: "absolute", bottom
|
|
|
145
145
|
}, Ue = async () => t ? t == null ? void 0 : t.clearSplitLane() : {
|
|
146
146
|
status: -1,
|
|
147
147
|
message: "未加载OpenDrive地图"
|
|
148
|
-
},
|
|
148
|
+
}, $e = async (e) => t ? t == null ? void 0 : t.blockLane(e) : {
|
|
149
149
|
status: -1,
|
|
150
150
|
message: "未加载OpenDrive地图"
|
|
151
|
-
},
|
|
151
|
+
}, qe = (e) => t ? t == null ? void 0 : t.clearBlockLane(e) : {
|
|
152
152
|
status: -1,
|
|
153
153
|
message: "未加载OpenDrive地图"
|
|
154
|
-
}, Ke = async (e) => (a || (a = new M(n)), await a.showSignalControlArea(e)),
|
|
154
|
+
}, Ke = async (e) => (a || (a = new M(n)), await a.showSignalControlArea(e)), Fe = async (e) => (a || (a = new M(n)), await a.showDistrict(e)), Xe = async (e) => (a || (a = new M(n)), await a.showSubDistrict(e)), Ye = async () => await (a == null ? void 0 : a.clearSignalControlArea()), Re = (e) => a == null ? void 0 : a.setLayerVisibility(e), et = async (e) => a ? await (a == null ? void 0 : a.locateSignalControlArea(e)) : { status: -1, message: "未加载信号控制区" }, tt = async (e) => a ? await a.highlightSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, nt = () => a ? a.resetHighlight() : { status: -1, message: "未加载信号控制区" }, at = (e) => (l || (l = new jt(n)), l.showSubSignalControlArea(e)), st = (e) => l ? l.editSubSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, rt = () => l ? l.stopEditSubSignalControlArea() : { status: -1, message: "未加载信号控制区" }, ot = (e) => l ? l.selectSubSignalControlAreaCross(e) : { status: -1, message: "未加载信号控制区" }, it = (e) => l ? l.unselectSubSignalControlAreaCross(e) : { status: -1, message: "未加载信号控制区" }, ct = (e) => {
|
|
155
155
|
if (!l)
|
|
156
156
|
return { status: -1, message: "未加载信号控制区" };
|
|
157
|
-
}, lt = (e) => (S || (S = new Jt(n)), S.showSignalCross(e)), ut = () => S ? S.clearSignalCross() : { status: -1, message: "未加载信号路口" }, mt = (e) => S ? S.changeShowName(e) : { status: -1, message: "未加载信号路口" }, gt = (e) => (p || (p = new j(n)), p.showSignalSystems(e)), pt = (e) => (p || (p = new j(n)), p.showSubSignalSystems(e)), dt = (e) => p ? p.removeSubSignalSystems(e) : { status: -1, message: "未加载信号系统" }, St = (e) => p ? p.removeSignalSystems(e) : { status: -1, message: "未加载信号系统" }, ft = (e) => (d || (d = new
|
|
157
|
+
}, lt = (e) => (S || (S = new Jt(n)), S.showSignalCross(e)), ut = () => S ? S.clearSignalCross() : { status: -1, message: "未加载信号路口" }, mt = (e) => S ? S.changeShowName(e) : { status: -1, message: "未加载信号路口" }, gt = (e) => (p || (p = new j(n)), p.showSignalSystems(e)), pt = (e) => (p || (p = new j(n)), p.showSubSignalSystems(e)), dt = (e) => p ? p.removeSubSignalSystems(e) : { status: -1, message: "未加载信号系统" }, St = (e) => p ? p.removeSignalSystems(e) : { status: -1, message: "未加载信号系统" }, ft = (e) => (d || (d = new E(n)), d.addGreenWaveBand(e)), wt = () => {
|
|
158
158
|
if (!d)
|
|
159
159
|
return { status: -1, message: "未加载绿波带" };
|
|
160
160
|
d.stopAddGreenWaveBand();
|
|
161
|
-
}, yt = async (e) => (d || (d = new
|
|
162
|
-
if (!
|
|
161
|
+
}, yt = async (e) => (d || (d = new E(n)), await d.showGreenWaveBand(e)), Ct = async (e) => (C || (C = new Zt(n)), await C.showJurisdiction(e)), ht = () => {
|
|
162
|
+
if (!C)
|
|
163
163
|
return { status: -1, message: "未加载警务管辖区" };
|
|
164
|
-
|
|
165
|
-
}, vt = async (e) => (A || (A = new
|
|
164
|
+
C.clearJurisdiction();
|
|
165
|
+
}, vt = async (e) => (A || (A = new Ht(n)), await A.setEdpassLayerVisibility(e)), x = J, v = $;
|
|
166
166
|
return U({
|
|
167
|
-
mapViewer:
|
|
167
|
+
mapViewer: q,
|
|
168
168
|
setLayerVisibility: ae,
|
|
169
169
|
setMapCenter: R,
|
|
170
170
|
lookAt: ne,
|
|
@@ -192,9 +192,9 @@ const qt = { class: "gis-viewer" }, Ft = { style: { position: "absolute", bottom
|
|
|
192
192
|
handleHoloVehicleTraceData: de,
|
|
193
193
|
clearHoloTrace: Se,
|
|
194
194
|
initializeLampGroup: ye,
|
|
195
|
-
handleUniSignalData:
|
|
195
|
+
handleUniSignalData: Ce,
|
|
196
196
|
handleHoloSignalData: we,
|
|
197
|
-
clearHoloSignal:
|
|
197
|
+
clearHoloSignal: he,
|
|
198
198
|
setInterpolate: fe,
|
|
199
199
|
toggleTrafficInfo: ve,
|
|
200
200
|
toggleTrafficObject: Oe,
|
|
@@ -202,22 +202,22 @@ const qt = { class: "gis-viewer" }, Ft = { style: { position: "absolute", bottom
|
|
|
202
202
|
togglePause: be,
|
|
203
203
|
updateQueueLength: Ve,
|
|
204
204
|
removeQueueLength: ze,
|
|
205
|
-
showOpenDriveFromServer:
|
|
206
|
-
showOpenDriveFromFile:
|
|
207
|
-
clearOpenDrive:
|
|
208
|
-
setOpendriveVisibility:
|
|
205
|
+
showOpenDriveFromServer: _e,
|
|
206
|
+
showOpenDriveFromFile: xe,
|
|
207
|
+
clearOpenDrive: He,
|
|
208
|
+
setOpendriveVisibility: Ge,
|
|
209
209
|
geometrySearchInOpenDrive: Qe,
|
|
210
|
-
findSumoInOpenDrive:
|
|
211
|
-
selectSumoInOpenDrive:
|
|
210
|
+
findSumoInOpenDrive: Ne,
|
|
211
|
+
selectSumoInOpenDrive: Ee,
|
|
212
212
|
unselectSumoInOpenDrive: We,
|
|
213
213
|
selectComputableInOpenDrive: Ze,
|
|
214
214
|
getSumoInfo: je,
|
|
215
215
|
splitOpenDriveLane: Je,
|
|
216
216
|
clearSplitOpenDriveLane: Ue,
|
|
217
|
-
blockOpenDriveLane:
|
|
218
|
-
clearBlockOpenDriveLane:
|
|
217
|
+
blockOpenDriveLane: $e,
|
|
218
|
+
clearBlockOpenDriveLane: qe,
|
|
219
219
|
showSignalControlArea: Ke,
|
|
220
|
-
showDistrictArea:
|
|
220
|
+
showDistrictArea: Fe,
|
|
221
221
|
showSubDistrictArea: Xe,
|
|
222
222
|
clearSignalControlArea: Ye,
|
|
223
223
|
setSignalControlAreaVisibility: Re,
|
|
@@ -240,23 +240,23 @@ const qt = { class: "gis-viewer" }, Ft = { style: { position: "absolute", bottom
|
|
|
240
240
|
addGreenWaveBand: ft,
|
|
241
241
|
stopAddGreenWaveBand: wt,
|
|
242
242
|
showGreenWaveBand: yt,
|
|
243
|
-
showPoliceArea:
|
|
244
|
-
clearPoliceArea:
|
|
243
|
+
showPoliceArea: Ct,
|
|
244
|
+
clearPoliceArea: ht,
|
|
245
245
|
setEdpassLayerVisibility: vt
|
|
246
|
-
}), (e, u) => (B(),
|
|
246
|
+
}), (e, u) => (B(), H("div", $t, [
|
|
247
247
|
y("div", {
|
|
248
248
|
class: "gis-viewer-main",
|
|
249
249
|
ref_key: "mapContainer",
|
|
250
250
|
ref: O
|
|
251
251
|
}, [
|
|
252
|
-
Bt(y("div",
|
|
252
|
+
Bt(y("div", qt, [
|
|
253
253
|
y("button", {
|
|
254
254
|
style: { "margin-right": "10px" },
|
|
255
255
|
onClick: K
|
|
256
256
|
}, " 开始记录 "),
|
|
257
257
|
y("button", {
|
|
258
258
|
style: { "margin-right": "10px" },
|
|
259
|
-
onClick:
|
|
259
|
+
onClick: F
|
|
260
260
|
}, " 下载日志 "),
|
|
261
261
|
y("button", {
|
|
262
262
|
style: { "margin-right": "10px" },
|
|
@@ -267,7 +267,7 @@ const qt = { class: "gis-viewer" }, Ft = { style: { position: "absolute", bottom
|
|
|
267
267
|
[Mt, k.value]
|
|
268
268
|
])
|
|
269
269
|
], 512),
|
|
270
|
-
(B(!0),
|
|
270
|
+
(B(!0), H(Pt, null, Vt(V, (i, b) => (B(), zt(Et, {
|
|
271
271
|
key: b,
|
|
272
272
|
"display-mode": i.displayMode,
|
|
273
273
|
flash: i.flash,
|
|
@@ -199,7 +199,130 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
199
199
|
setEdpassLayerVisibility: (params: import("../types").IShowEdpassDeviceParams) => Promise<import("../types").IResult>;
|
|
200
200
|
props: any;
|
|
201
201
|
emit: (event: "mapLoaded" | "markerClick" | "mapClick" | "update:zoom", ...args: any[]) => void;
|
|
202
|
-
SignalCountdownPanel:
|
|
202
|
+
SignalCountdownPanel: import("vue").DefineComponent<{
|
|
203
|
+
displayMode: {
|
|
204
|
+
type: StringConstructor;
|
|
205
|
+
required: true;
|
|
206
|
+
};
|
|
207
|
+
flash: {
|
|
208
|
+
type: BooleanConstructor;
|
|
209
|
+
required: true;
|
|
210
|
+
};
|
|
211
|
+
crossId: {
|
|
212
|
+
type: StringConstructor;
|
|
213
|
+
required: true;
|
|
214
|
+
};
|
|
215
|
+
roadId: {
|
|
216
|
+
type: StringConstructor;
|
|
217
|
+
required: true;
|
|
218
|
+
};
|
|
219
|
+
mapPoint: {
|
|
220
|
+
type: ArrayConstructor;
|
|
221
|
+
required: true;
|
|
222
|
+
};
|
|
223
|
+
stopLine: {
|
|
224
|
+
type: ArrayConstructor;
|
|
225
|
+
required: true;
|
|
226
|
+
};
|
|
227
|
+
scale: {
|
|
228
|
+
type: NumberConstructor;
|
|
229
|
+
required: true;
|
|
230
|
+
};
|
|
231
|
+
position: {
|
|
232
|
+
type: ObjectConstructor;
|
|
233
|
+
required: true;
|
|
234
|
+
};
|
|
235
|
+
rotation: {
|
|
236
|
+
type: NumberConstructor;
|
|
237
|
+
required: true;
|
|
238
|
+
};
|
|
239
|
+
lampStatus: {
|
|
240
|
+
type: ObjectConstructor;
|
|
241
|
+
required: true;
|
|
242
|
+
};
|
|
243
|
+
}, {
|
|
244
|
+
colors: string[];
|
|
245
|
+
props: any;
|
|
246
|
+
panelStyle: import("vue").ComputedRef<{
|
|
247
|
+
top: string;
|
|
248
|
+
left: string;
|
|
249
|
+
'transform-origin': string;
|
|
250
|
+
transform: string;
|
|
251
|
+
}>;
|
|
252
|
+
blImage: import("vue").ComputedRef<string>;
|
|
253
|
+
blNumberStyle: import("vue").ComputedRef<any>;
|
|
254
|
+
blLampStyle: import("vue").ComputedRef<{
|
|
255
|
+
display: string;
|
|
256
|
+
animation: string;
|
|
257
|
+
}>;
|
|
258
|
+
uImage: import("vue").ComputedRef<string>;
|
|
259
|
+
uNumberStyle: import("vue").ComputedRef<any>;
|
|
260
|
+
uLampStyle: import("vue").ComputedRef<{
|
|
261
|
+
display: string;
|
|
262
|
+
animation: string;
|
|
263
|
+
}>;
|
|
264
|
+
lImage: import("vue").ComputedRef<string>;
|
|
265
|
+
lNumberStyle: import("vue").ComputedRef<any>;
|
|
266
|
+
lLampStyle: import("vue").ComputedRef<{
|
|
267
|
+
display: string;
|
|
268
|
+
animation: string;
|
|
269
|
+
}>;
|
|
270
|
+
sImage: import("vue").ComputedRef<string>;
|
|
271
|
+
sNumberStyle: import("vue").ComputedRef<any>;
|
|
272
|
+
sLampStyle: import("vue").ComputedRef<{
|
|
273
|
+
display: string;
|
|
274
|
+
animation: string;
|
|
275
|
+
}>;
|
|
276
|
+
rImage: import("vue").ComputedRef<string>;
|
|
277
|
+
rNumberStyle: import("vue").ComputedRef<any>;
|
|
278
|
+
rLampStyle: import("vue").ComputedRef<{
|
|
279
|
+
display: string;
|
|
280
|
+
animation: string;
|
|
281
|
+
}>;
|
|
282
|
+
getColorString: (color: string | undefined) => "red" | "rgb(255, 192, 2)" | "lime" | "white";
|
|
283
|
+
getNumberStyle: (color: string | undefined) => any;
|
|
284
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
285
|
+
displayMode: {
|
|
286
|
+
type: StringConstructor;
|
|
287
|
+
required: true;
|
|
288
|
+
};
|
|
289
|
+
flash: {
|
|
290
|
+
type: BooleanConstructor;
|
|
291
|
+
required: true;
|
|
292
|
+
};
|
|
293
|
+
crossId: {
|
|
294
|
+
type: StringConstructor;
|
|
295
|
+
required: true;
|
|
296
|
+
};
|
|
297
|
+
roadId: {
|
|
298
|
+
type: StringConstructor;
|
|
299
|
+
required: true;
|
|
300
|
+
};
|
|
301
|
+
mapPoint: {
|
|
302
|
+
type: ArrayConstructor;
|
|
303
|
+
required: true;
|
|
304
|
+
};
|
|
305
|
+
stopLine: {
|
|
306
|
+
type: ArrayConstructor;
|
|
307
|
+
required: true;
|
|
308
|
+
};
|
|
309
|
+
scale: {
|
|
310
|
+
type: NumberConstructor;
|
|
311
|
+
required: true;
|
|
312
|
+
};
|
|
313
|
+
position: {
|
|
314
|
+
type: ObjectConstructor;
|
|
315
|
+
required: true;
|
|
316
|
+
};
|
|
317
|
+
rotation: {
|
|
318
|
+
type: NumberConstructor;
|
|
319
|
+
required: true;
|
|
320
|
+
};
|
|
321
|
+
lampStatus: {
|
|
322
|
+
type: ObjectConstructor;
|
|
323
|
+
required: true;
|
|
324
|
+
};
|
|
325
|
+
}>>, {}, {}>;
|
|
203
326
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("mapLoaded" | "markerClick" | "mapClick" | "update:zoom")[], "mapLoaded" | "markerClick" | "mapClick" | "update:zoom", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
204
327
|
config: {
|
|
205
328
|
type: StringConstructor;
|