gisviewer-vue3-arcgis 1.0.248 → 1.0.249
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/src/gis-map/gis-map.vue.d.ts +9 -3
- package/es/src/gis-map/gis-map.vue.mjs +178 -162
- package/es/src/gis-map/index.d.ts +8 -2
- package/es/src/gis-map/utils/edpass-device-controller.d.ts +2 -0
- package/es/src/gis-map/utils/edpass-device-controller.mjs +42 -33
- package/es/src/gis-map/utils/green-wave-band-controller/index.mjs +5 -1
- package/es/src/gis-map/utils/map-initializer.d.ts +1 -0
- package/es/src/gis-map/utils/map-initializer.mjs +98 -81
- package/es/src/gis-map/utils/open-drive-renderer/index.d.ts +1 -1
- package/es/src/gis-map/utils/open-drive-renderer/index.mjs +9 -9
- package/es/src/types/index.d.ts +2 -0
- package/lib/src/gis-map/gis-map.vue.d.ts +9 -3
- package/lib/src/gis-map/gis-map.vue.js +1 -1
- package/lib/src/gis-map/index.d.ts +8 -2
- package/lib/src/gis-map/utils/edpass-device-controller.d.ts +2 -0
- package/lib/src/gis-map/utils/edpass-device-controller.js +1 -1
- package/lib/src/gis-map/utils/green-wave-band-controller/index.js +1 -1
- package/lib/src/gis-map/utils/map-initializer.d.ts +1 -0
- package/lib/src/gis-map/utils/map-initializer.js +1 -1
- package/lib/src/gis-map/utils/open-drive-renderer/index.d.ts +1 -1
- package/lib/src/gis-map/utils/open-drive-renderer/index.js +1 -1
- package/lib/src/types/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import MapView from '@arcgis/core/views/MapView';
|
|
2
2
|
import SceneView from '@arcgis/core/views/SceneView';
|
|
3
3
|
import { IEditSignalControlAreaParams, IFindSignalControlAreaParams, IFindSumoParams, ILaneNumberParams, ILayerVisibleParams, ILookAtParams, IMaskParam, IOverlayParam, IQueueLengthParams, ISetMapCameraParams, ISetMapCenterParams, IShowEdpassDeviceParams, IShowGreenWaveBandParams, IShowJurisdictionParams, IShowOpenDriveFromFileParams, IShowSignalControlAreaParams, ISignalCountdownProps, ISplitOpenDriveLaneParams, IStartCrossBufferParam, IToggleTrafficInfoParams, IUnselectSumoParams } from '../types';
|
|
4
|
+
import EdpassDeviceController from './utils/edpass-device-controller';
|
|
4
5
|
import GreenWaveBandController from './utils/green-wave-band-controller';
|
|
5
6
|
import HoloFlow from './utils/holo-flow';
|
|
6
7
|
import MapInitializer from './utils/map-initializer';
|
|
@@ -12,7 +13,6 @@ import RoadConfigTool from './utils/road-config-tool';
|
|
|
12
13
|
import EditSignalArea from './utils/signal-control-area/edit-area';
|
|
13
14
|
import ShowSignalArea from './utils/signal-control-area/show-area';
|
|
14
15
|
import TrafficFlow from './utils/traffic-flow';
|
|
15
|
-
import EdpassDeviceController from './utils/edpass-device-controller';
|
|
16
16
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
17
17
|
config: {
|
|
18
18
|
type: StringConstructor;
|
|
@@ -69,6 +69,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
69
69
|
rColor?: string | undefined;
|
|
70
70
|
};
|
|
71
71
|
}[];
|
|
72
|
+
scaleToZoom: (scale: number) => number;
|
|
73
|
+
removeZoomWatch: (() => void) | null;
|
|
74
|
+
lastEmittedZoomInt: number | null;
|
|
75
|
+
emitZoomIfChanged: (z: number) => void;
|
|
72
76
|
mapViewer: import("vue").ComputedRef<MapView | SceneView>;
|
|
73
77
|
handleStartSaveTrackLog: () => void;
|
|
74
78
|
handleDownloadTrackLog: () => void;
|
|
@@ -76,6 +80,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
76
80
|
handleShowPlateNumber: () => void;
|
|
77
81
|
setMapCenter: (params: ISetMapCenterParams) => Promise<import("../types").IResult>;
|
|
78
82
|
setMapCamera: (params: ISetMapCameraParams) => Promise<import("../types").IResult>;
|
|
83
|
+
setMapZoom: (zoom: number) => import("../types").IResult;
|
|
79
84
|
lookAt: (params: ILookAtParams) => Promise<void>;
|
|
80
85
|
setLayerVisibility: (params: ILayerVisibleParams) => import("../types").IResult;
|
|
81
86
|
requestCoordinateTransform: (points: number[][], callback: (points: number[][]) => void) => {
|
|
@@ -174,7 +179,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
174
179
|
} | undefined;
|
|
175
180
|
setEdpassLayerVisibility: (params: IShowEdpassDeviceParams) => Promise<import("../types").IResult>;
|
|
176
181
|
props: any;
|
|
177
|
-
emit: (event: "mapLoaded" | "markerClick" | "mapClick", ...args: any[]) => void;
|
|
182
|
+
emit: (event: "mapLoaded" | "markerClick" | "mapClick" | "update:zoom", ...args: any[]) => void;
|
|
178
183
|
SignalCountdownPanel: import("vue").DefineComponent<{
|
|
179
184
|
displayMode: {
|
|
180
185
|
type: StringConstructor;
|
|
@@ -299,7 +304,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
299
304
|
required: true;
|
|
300
305
|
};
|
|
301
306
|
}>>, {}, {}>;
|
|
302
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("mapLoaded" | "markerClick" | "mapClick")[], "mapLoaded" | "markerClick" | "mapClick", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
307
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("mapLoaded" | "markerClick" | "mapClick" | "update:zoom")[], "mapLoaded" | "markerClick" | "mapClick" | "update:zoom", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
303
308
|
config: {
|
|
304
309
|
type: StringConstructor;
|
|
305
310
|
required: true;
|
|
@@ -312,5 +317,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
312
317
|
onMapLoaded?: ((...args: any[]) => any) | undefined;
|
|
313
318
|
onMarkerClick?: ((...args: any[]) => any) | undefined;
|
|
314
319
|
onMapClick?: ((...args: any[]) => any) | undefined;
|
|
320
|
+
"onUpdate:zoom"?: ((...args: any[]) => any) | undefined;
|
|
315
321
|
}, {}, {}>;
|
|
316
322
|
export default _sfc_main;
|
|
@@ -1,230 +1,246 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as st, ref as z, reactive as ot, onMounted as it, getCurrentInstance as ct, onUnmounted as lt, computed as ut, openBlock as L, createElementBlock as _, createElementVNode as f, withDirectives as mt, vShow as pt, Fragment as dt, renderList as gt, createBlock as ft } from "vue";
|
|
2
|
+
import x, { registerStore as yt } from "./stores/index.mjs";
|
|
3
3
|
import "./style/index.css";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
const
|
|
4
|
+
import St from "./utils/detect-gpu.mjs";
|
|
5
|
+
import vt from "./utils/edpass-device-controller.mjs";
|
|
6
|
+
import P from "./utils/green-wave-band-controller/index.mjs";
|
|
7
|
+
import Ct from "./utils/holo-flow/index.mjs";
|
|
8
|
+
import wt from "./utils/holo-flow/signal-countdown-panel.vue.mjs";
|
|
9
|
+
import ht from "./utils/map-initializer.mjs";
|
|
10
|
+
import G from "./utils/open-drive-renderer/index.mjs";
|
|
11
|
+
import H from "./utils/overlay.mjs";
|
|
12
|
+
import bt from "./utils/police-jurisdiction.mjs";
|
|
13
|
+
import Ot from "./utils/queue-length.mjs";
|
|
14
|
+
import E from "./utils/road-config-tool/index.mjs";
|
|
15
|
+
import At from "./utils/signal-control-area/edit-area.mjs";
|
|
16
|
+
import kt from "./utils/signal-control-area/show-area.mjs";
|
|
17
|
+
import Dt from "./utils/traffic-flow.mjs";
|
|
18
|
+
const Lt = { class: "gis-viewer" }, Tt = { style: { position: "absolute", bottom: "80px", left: "10px", "z-index": "9999" } }, Ut = /* @__PURE__ */ st({
|
|
19
19
|
__name: "gis-map",
|
|
20
20
|
props: {
|
|
21
21
|
config: {},
|
|
22
22
|
assetsRoot: {}
|
|
23
23
|
},
|
|
24
|
-
emits: ["mapLoaded", "markerClick", "mapClick"],
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
27
|
-
let
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
emits: ["mapLoaded", "markerClick", "mapClick", "update:zoom"],
|
|
25
|
+
setup(N, { expose: W, emit: Z }) {
|
|
26
|
+
const w = z(null);
|
|
27
|
+
let n, p, c, o, a, r, g, t, l, s, d, y, h;
|
|
28
|
+
const b = z(!1);
|
|
29
|
+
yt();
|
|
30
|
+
const T = x.useAppDataStore, I = ot([]), M = (e) => Math.log2(591657527591555e-6 / e);
|
|
31
|
+
let S = null, B = null;
|
|
32
|
+
const O = (e) => {
|
|
33
|
+
if (!Number.isFinite(e))
|
|
33
34
|
return;
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
const u = Math.round(e);
|
|
36
|
+
u !== B && (B = u, v("update:zoom", u));
|
|
37
|
+
};
|
|
38
|
+
St(), it(async () => {
|
|
39
|
+
if (!w.value)
|
|
40
|
+
return;
|
|
41
|
+
document.addEventListener("keydown", (m) => {
|
|
42
|
+
m.ctrlKey && m.key === "i" && (b.value = !b.value);
|
|
36
43
|
});
|
|
37
|
-
const e =
|
|
38
|
-
i.assetsRoot =
|
|
39
|
-
container:
|
|
44
|
+
const e = ct(), { $gisviewerAssetsRoot: u } = e.appContext.config.globalProperties, i = await (await fetch(V.config)).json();
|
|
45
|
+
i.assetsRoot = V.assetsRoot || u, T.mapConfig = i, p = new ht(), T.mapInitializer = p, n = await p.initialize({
|
|
46
|
+
container: w.value,
|
|
40
47
|
mapConfig: i,
|
|
41
|
-
markerClickCallback: (
|
|
42
|
-
|
|
48
|
+
markerClickCallback: (m, k, D, rt) => {
|
|
49
|
+
v("markerClick", m, k, D, rt);
|
|
43
50
|
},
|
|
44
|
-
mapClickCallback: (
|
|
45
|
-
|
|
51
|
+
mapClickCallback: (m, k, D) => {
|
|
52
|
+
v("mapClick", m, k, D);
|
|
46
53
|
}
|
|
47
|
-
})
|
|
48
|
-
|
|
49
|
-
|
|
54
|
+
});
|
|
55
|
+
const C = n.zoom ?? (n.scale ? M(n.scale) : void 0);
|
|
56
|
+
typeof C == "number" && O(C);
|
|
57
|
+
const nt = n.zoom !== void 0 ? n.watch("zoom", (m) => {
|
|
58
|
+
O(m);
|
|
59
|
+
}) : n.watch("scale", (m) => {
|
|
60
|
+
typeof m == "number" && m > 0 && O(M(m));
|
|
61
|
+
});
|
|
62
|
+
S = () => nt.remove(), a = new Ct(n, I), await a.init(), v("mapLoaded");
|
|
63
|
+
}), lt(() => {
|
|
64
|
+
s == null || s.clearSignalControlArea(), t == null || t.clearOpenDrive(), a.clearHoloTrace(), a.clearHoloSignal(), o == null || o.disconnectTrafficFlow(), S == null || S(), S = null;
|
|
50
65
|
});
|
|
51
|
-
const
|
|
52
|
-
const e =
|
|
66
|
+
const Q = ut(() => n), j = () => {
|
|
67
|
+
const e = x.useAppDataStore;
|
|
53
68
|
e.saveTrackLog = !0;
|
|
54
|
-
},
|
|
69
|
+
}, J = () => {
|
|
55
70
|
a.downloadTrackLog();
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
},
|
|
71
|
+
}, U = () => {
|
|
72
|
+
A("vehicleId");
|
|
73
|
+
}, $ = () => {
|
|
74
|
+
A("plateNumber");
|
|
75
|
+
}, q = async (e) => await p.setMapCenter(e), K = async (e) => await p.setMapCamera(e), F = (e) => p.setMapZoom(e), R = async (e) => await p.lookAt(e), X = (e) => p.setLayerVisibility(e), Y = (e, u) => p.requestCoordinateTransform(e, u), ee = (e) => {
|
|
76
|
+
p.cancelCoordinateTransform(e);
|
|
77
|
+
}, te = (e) => {
|
|
78
|
+
p.setMapZoomRange(e);
|
|
79
|
+
}, ae = (e) => (c || (c = new E(n)), c.showLaneNumber(e)), ne = () => {
|
|
65
80
|
c == null || c.clearLaneNumber();
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
o || (o = new
|
|
69
|
-
},
|
|
81
|
+
}, re = async (e) => (c || (c = new E(n)), await c.initializeSearch(e)), se = async () => c == null ? void 0 : c.calCrossIndicatorArea(), oe = async () => {
|
|
82
|
+
}, ie = async (e, u) => {
|
|
83
|
+
o || (o = new Dt(n)), o.connectTrafficFlow(e, u);
|
|
84
|
+
}, ce = () => {
|
|
70
85
|
o == null || o.disconnectTrafficFlow();
|
|
71
|
-
},
|
|
86
|
+
}, le = async (e) => {
|
|
72
87
|
a.handleVehicleTraceData(e);
|
|
73
|
-
},
|
|
88
|
+
}, ue = () => {
|
|
74
89
|
a.clearHoloTrace();
|
|
75
|
-
},
|
|
90
|
+
}, me = (e) => {
|
|
76
91
|
a.setInterpolate(e);
|
|
77
|
-
},
|
|
92
|
+
}, pe = async (e) => {
|
|
78
93
|
await a.handleSignalData(e);
|
|
79
|
-
},
|
|
94
|
+
}, de = async (e) => {
|
|
80
95
|
await a.initializeLampGroup(e);
|
|
81
|
-
},
|
|
96
|
+
}, ge = (e) => {
|
|
82
97
|
a.handleUniSignalData(e);
|
|
83
|
-
},
|
|
98
|
+
}, fe = () => {
|
|
84
99
|
a.clearHoloSignal();
|
|
85
|
-
},
|
|
100
|
+
}, ye = (e) => {
|
|
86
101
|
o == null || o.toggleTrafficInfo(e), a == null || a.toggleTrafficInfo(e);
|
|
87
|
-
},
|
|
102
|
+
}, Se = (e) => {
|
|
88
103
|
a == null || a.togglePause(e);
|
|
89
|
-
},
|
|
104
|
+
}, ve = (e) => {
|
|
90
105
|
o == null || o.toggleTrafficObject(e), a == null || a.toggleTrafficObject(e);
|
|
91
|
-
},
|
|
106
|
+
}, A = (e) => {
|
|
92
107
|
a == null || a.updatePanelContent(e);
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
g || (g = new
|
|
99
|
-
},
|
|
108
|
+
}, Ce = async (e) => (r || (r = new H(n)), r.addOverlays(e)), we = (e) => (r || (r = new H(n)), r.addMask(e)), he = () => {
|
|
109
|
+
r == null || r.removeMask();
|
|
110
|
+
}, be = (e) => r == null ? void 0 : r.removeOverlaysByType(e), Oe = (e) => r == null ? void 0 : r.removeOverlaysById(e), Ae = () => r == null ? void 0 : r.removeAllOverlays(), ke = () => {
|
|
111
|
+
r == null || r.showAllOverlays();
|
|
112
|
+
}, De = (e) => {
|
|
113
|
+
g || (g = new Ot(n)), g.updateQueueLength(e);
|
|
114
|
+
}, Le = () => {
|
|
100
115
|
g == null || g.removeQueueLength();
|
|
101
|
-
},
|
|
116
|
+
}, Te = async (e, u) => (t || (t = new G(n)), await t.showOpenDriveFromServer(e, u)), Ie = async (e) => (t || (t = new G(n)), await t.clearOpenDrive(), await t.showOpenDriveFromFile(e)), Me = (e) => t ? t.setOpendriveVisibility(e) : {
|
|
102
117
|
status: -1,
|
|
103
118
|
message: "未加载OpenDrive地图"
|
|
104
|
-
},
|
|
119
|
+
}, Be = async () => await (t == null ? void 0 : t.clearOpenDrive()), Ve = async (e) => t ? await (t == null ? void 0 : t.findSumo(e)) : {
|
|
105
120
|
status: -1,
|
|
106
121
|
message: "未加载OpenDrive地图"
|
|
107
|
-
},
|
|
122
|
+
}, ze = async (e) => t ? t.selectSumo(e) : {
|
|
108
123
|
status: -1,
|
|
109
124
|
message: "未加载OpenDrive地图"
|
|
110
|
-
},
|
|
125
|
+
}, _e = async (e) => t ? t.unselectSumo(e) : {
|
|
111
126
|
status: -1,
|
|
112
127
|
message: "未加载OpenDrive地图"
|
|
113
|
-
},
|
|
128
|
+
}, xe = async (e) => t ? await t.geometrySearch(e) : {
|
|
114
129
|
status: -1,
|
|
115
130
|
message: "未加载OpenDrive地图"
|
|
116
|
-
},
|
|
131
|
+
}, Pe = async (e) => t ? await t.getSumoInfo(e) : {
|
|
117
132
|
status: -1,
|
|
118
133
|
message: "未加载OpenDrive地图"
|
|
119
|
-
},
|
|
134
|
+
}, Ge = async (e) => t ? await (t == null ? void 0 : t.splitLane(e)) : {
|
|
120
135
|
status: -1,
|
|
121
136
|
message: "未加载OpenDrive地图"
|
|
122
|
-
},
|
|
137
|
+
}, He = async () => t ? t == null ? void 0 : t.clearSplitLane() : {
|
|
123
138
|
status: -1,
|
|
124
139
|
message: "未加载OpenDrive地图"
|
|
125
|
-
},
|
|
140
|
+
}, Ee = async (e) => (s || (s = new kt(n)), await s.showSignalControlArea(e)), Ne = async () => await (s == null ? void 0 : s.clearSignalControlArea()), We = (e) => s == null ? void 0 : s.setLayerVisibility(e), Ze = async (e) => s ? await (s == null ? void 0 : s.locateSignalControlArea(e)) : { status: -1, message: "未加载信号控制区" }, Qe = async (e) => s ? await s.highlightSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, je = () => s ? s.resetHighlight() : { status: -1, message: "未加载信号控制区" }, Je = (e) => (l || (l = new At(n)), l.showSubSignalControlArea(e)), Ue = (e) => l ? l.editSubSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, $e = () => l ? l.stopEditSubSignalControlArea() : { status: -1, message: "未加载信号控制区" }, qe = (e) => l ? l.selectSubSignalControlAreaCross(e) : { status: -1, message: "未加载信号控制区" }, Ke = (e) => l ? l.unselectSubSignalControlAreaCross(e) : { status: -1, message: "未加载信号控制区" }, Fe = (e) => {
|
|
126
141
|
if (!l)
|
|
127
142
|
return { status: -1, message: "未加载信号控制区" };
|
|
128
|
-
},
|
|
129
|
-
if (!
|
|
143
|
+
}, Re = (e) => (d || (d = new P(n)), d.addGreenWaveBand(e)), Xe = () => {
|
|
144
|
+
if (!d)
|
|
130
145
|
return { status: -1, message: "未加载绿波带" };
|
|
131
|
-
|
|
132
|
-
},
|
|
146
|
+
d.stopAddGreenWaveBand();
|
|
147
|
+
}, Ye = async (e) => (d || (d = new P(n)), await d.showGreenWaveBand(e)), et = async (e) => (y || (y = new bt(n)), await y.showJurisdiction(e)), tt = () => {
|
|
133
148
|
if (!y)
|
|
134
149
|
return { status: -1, message: "未加载警务管辖区" };
|
|
135
150
|
y.clearJurisdiction();
|
|
136
|
-
},
|
|
137
|
-
return
|
|
138
|
-
mapViewer:
|
|
139
|
-
setLayerVisibility:
|
|
140
|
-
setMapCenter:
|
|
141
|
-
lookAt:
|
|
142
|
-
setMapCamera:
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
151
|
+
}, at = async (e) => (h || (h = new vt(n)), await h.setEdpassLayerVisibility(e)), V = N, v = Z;
|
|
152
|
+
return W({
|
|
153
|
+
mapViewer: Q,
|
|
154
|
+
setLayerVisibility: X,
|
|
155
|
+
setMapCenter: q,
|
|
156
|
+
lookAt: R,
|
|
157
|
+
setMapCamera: K,
|
|
158
|
+
setMapZoom: F,
|
|
159
|
+
setMapZoomRange: te,
|
|
160
|
+
requestCoordinateTransform: Y,
|
|
161
|
+
cancelCoordinateTransform: ee,
|
|
162
|
+
addOverlays: Ce,
|
|
163
|
+
addMask: we,
|
|
164
|
+
removeMask: he,
|
|
165
|
+
showAllOverlays: ke,
|
|
166
|
+
removeOverlaysByType: be,
|
|
167
|
+
removeOverlaysById: Oe,
|
|
168
|
+
removeAllOverlays: Ae,
|
|
169
|
+
showLaneNumber: ae,
|
|
170
|
+
clearLaneNumber: ne,
|
|
171
|
+
initializeAreaTool: re,
|
|
172
|
+
calCrossIndicatorArea: se,
|
|
173
|
+
calRoadIndicatorArea: oe,
|
|
174
|
+
connectCarFlow: ie,
|
|
175
|
+
disconnectCarFlow: ce,
|
|
176
|
+
handleHoloVehicleTraceData: le,
|
|
177
|
+
clearHoloTrace: ue,
|
|
178
|
+
initializeLampGroup: de,
|
|
179
|
+
handleUniSignalData: ge,
|
|
180
|
+
handleHoloSignalData: pe,
|
|
181
|
+
clearHoloSignal: fe,
|
|
182
|
+
setInterpolate: me,
|
|
183
|
+
toggleTrafficInfo: ye,
|
|
184
|
+
toggleTrafficObject: ve,
|
|
185
|
+
toggleVehicleInfo: A,
|
|
186
|
+
togglePause: Se,
|
|
187
|
+
updateQueueLength: De,
|
|
188
|
+
removeQueueLength: Le,
|
|
189
|
+
showOpenDriveFromServer: Te,
|
|
190
|
+
showOpenDriveFromFile: Ie,
|
|
191
|
+
clearOpenDrive: Be,
|
|
192
|
+
setOpendriveVisibility: Me,
|
|
193
|
+
geometrySearchInOpenDrive: xe,
|
|
194
|
+
findSumoInOpenDrive: Ve,
|
|
195
|
+
selectSumoInOpenDrive: ze,
|
|
196
|
+
unselectSumoInOpenDrive: _e,
|
|
197
|
+
getSumoInfo: Pe,
|
|
198
|
+
splitOpenDriveLane: Ge,
|
|
199
|
+
clearSplitOpenDriveLane: He,
|
|
200
|
+
showSignalControlArea: Ee,
|
|
201
|
+
clearSignalControlArea: Ne,
|
|
202
|
+
setSignalControlAreaVisibility: We,
|
|
203
|
+
locateSignalControlArea: Ze,
|
|
204
|
+
highlightSignalControlArea: Qe,
|
|
205
|
+
resetHighlightSignalControlArea: je,
|
|
206
|
+
showSubSignalControlArea: Je,
|
|
207
|
+
editSubSignalControlArea: Ue,
|
|
208
|
+
stopEditSubSignalControlArea: $e,
|
|
209
|
+
selectSubSignalControlAreaCross: qe,
|
|
210
|
+
unselectSubSignalControlAreaCross: Ke,
|
|
211
|
+
changeSubSignalControlAreaBorderVisibility: Fe,
|
|
212
|
+
addGreenWaveBand: Re,
|
|
213
|
+
stopAddGreenWaveBand: Xe,
|
|
214
|
+
showGreenWaveBand: Ye,
|
|
215
|
+
showPoliceArea: et,
|
|
216
|
+
clearPoliceArea: tt,
|
|
217
|
+
setEdpassLayerVisibility: at
|
|
218
|
+
}), (e, u) => (L(), _("div", Lt, [
|
|
203
219
|
f("div", {
|
|
204
220
|
class: "gis-viewer-main",
|
|
205
221
|
ref_key: "mapContainer",
|
|
206
|
-
ref:
|
|
222
|
+
ref: w
|
|
207
223
|
}, [
|
|
208
|
-
|
|
224
|
+
mt(f("div", Tt, [
|
|
209
225
|
f("button", {
|
|
210
226
|
style: { "margin-right": "10px" },
|
|
211
|
-
onClick:
|
|
227
|
+
onClick: j
|
|
212
228
|
}, " 开始记录 "),
|
|
213
229
|
f("button", {
|
|
214
230
|
style: { "margin-right": "10px" },
|
|
215
|
-
onClick:
|
|
231
|
+
onClick: J
|
|
216
232
|
}, " 下载日志 "),
|
|
217
233
|
f("button", {
|
|
218
234
|
style: { "margin-right": "10px" },
|
|
219
|
-
onClick:
|
|
235
|
+
onClick: U
|
|
220
236
|
}, " 显示车辆id "),
|
|
221
|
-
f("button", { onClick:
|
|
237
|
+
f("button", { onClick: $ }, "显示车辆号牌")
|
|
222
238
|
], 512), [
|
|
223
|
-
[
|
|
239
|
+
[pt, b.value]
|
|
224
240
|
])
|
|
225
241
|
], 512),
|
|
226
|
-
(
|
|
227
|
-
key:
|
|
242
|
+
(L(!0), _(dt, null, gt(I, (i, C) => (L(), ft(wt, {
|
|
243
|
+
key: C,
|
|
228
244
|
"display-mode": i.displayMode,
|
|
229
245
|
flash: i.flash,
|
|
230
246
|
"road-id": i.crossId,
|
|
@@ -240,5 +256,5 @@ const wt = { class: "gis-viewer" }, ht = { style: { position: "absolute", bottom
|
|
|
240
256
|
}
|
|
241
257
|
});
|
|
242
258
|
export {
|
|
243
|
-
|
|
259
|
+
Ut as default
|
|
244
260
|
};
|
|
@@ -54,6 +54,10 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
54
54
|
rColor?: string | undefined;
|
|
55
55
|
};
|
|
56
56
|
}[];
|
|
57
|
+
scaleToZoom: (scale: number) => number;
|
|
58
|
+
removeZoomWatch: (() => void) | null;
|
|
59
|
+
lastEmittedZoomInt: number | null;
|
|
60
|
+
emitZoomIfChanged: (z: number) => void;
|
|
57
61
|
mapViewer: import("vue").ComputedRef<__esri.MapView | __esri.SceneView>;
|
|
58
62
|
handleStartSaveTrackLog: () => void;
|
|
59
63
|
handleDownloadTrackLog: () => void;
|
|
@@ -61,6 +65,7 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
61
65
|
handleShowPlateNumber: () => void;
|
|
62
66
|
setMapCenter: (params: import("../types").ISetMapCenterParams) => Promise<import("../types").IResult>;
|
|
63
67
|
setMapCamera: (params: import("../types").ISetMapCameraParams) => Promise<import("../types").IResult>;
|
|
68
|
+
setMapZoom: (zoom: number) => import("../types").IResult;
|
|
64
69
|
lookAt: (params: import("../types").ILookAtParams) => Promise<void>;
|
|
65
70
|
setLayerVisibility: (params: import("../types").ILayerVisibleParams) => import("../types").IResult;
|
|
66
71
|
requestCoordinateTransform: (points: number[][], callback: (points: number[][]) => void) => {
|
|
@@ -159,7 +164,7 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
159
164
|
} | undefined;
|
|
160
165
|
setEdpassLayerVisibility: (params: import("../types").IShowEdpassDeviceParams) => Promise<import("../types").IResult>;
|
|
161
166
|
props: any;
|
|
162
|
-
emit: (event: "mapLoaded" | "markerClick" | "mapClick", ...args: any[]) => void;
|
|
167
|
+
emit: (event: "mapLoaded" | "markerClick" | "mapClick" | "update:zoom", ...args: any[]) => void;
|
|
163
168
|
SignalCountdownPanel: import("vue").DefineComponent<{
|
|
164
169
|
displayMode: {
|
|
165
170
|
type: StringConstructor;
|
|
@@ -284,7 +289,7 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
284
289
|
required: true;
|
|
285
290
|
};
|
|
286
291
|
}>>, {}, {}>;
|
|
287
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("mapLoaded" | "markerClick" | "mapClick")[], "mapLoaded" | "markerClick" | "mapClick", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
292
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("mapLoaded" | "markerClick" | "mapClick" | "update:zoom")[], "mapLoaded" | "markerClick" | "mapClick" | "update:zoom", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
288
293
|
config: {
|
|
289
294
|
type: StringConstructor;
|
|
290
295
|
required: true;
|
|
@@ -297,5 +302,6 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
297
302
|
onMapLoaded?: ((...args: any[]) => any) | undefined;
|
|
298
303
|
onMarkerClick?: ((...args: any[]) => any) | undefined;
|
|
299
304
|
onMapClick?: ((...args: any[]) => any) | undefined;
|
|
305
|
+
"onUpdate:zoom"?: ((...args: any[]) => any) | undefined;
|
|
300
306
|
}, {}, {}>>;
|
|
301
307
|
export default GisMap;
|
|
@@ -7,6 +7,8 @@ export default class EdpassDeviceController {
|
|
|
7
7
|
private kkAbnormalLayer;
|
|
8
8
|
private mapInitializer;
|
|
9
9
|
private watchHandle;
|
|
10
|
+
private currentZdCode;
|
|
11
|
+
private currentDdCode;
|
|
10
12
|
constructor(view: __esri.MapView | __esri.SceneView);
|
|
11
13
|
setEdpassLayerVisibility(params: IShowEdpassDeviceParams): Promise<IResult>;
|
|
12
14
|
private getLayerConfig;
|