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