gisviewer-vue3-arcgis 1.0.262 → 1.0.264
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 +4 -0
- package/es/src/gis-map/gis-map.vue.mjs +91 -87
- package/es/src/gis-map/index.d.ts +4 -0
- package/es/src/gis-map/utils/dbscan-cluster/index.d.ts +0 -1
- package/es/src/gis-map/utils/dbscan-cluster/index.mjs +4 -4
- package/es/src/gis-map/utils/open-drive-renderer/index.d.ts +11 -1
- package/es/src/gis-map/utils/open-drive-renderer/index.mjs +370 -300
- package/es/src/gis-map/utils/signal-control-area/cross-renderer.d.ts +17 -2
- package/es/src/gis-map/utils/signal-control-area/cross-renderer.mjs +104 -74
- package/es/src/gis-map/utils/signal-control-area/show-area.mjs +11 -11
- package/es/src/types/index.d.ts +1 -0
- package/lib/src/gis-map/gis-map.vue.d.ts +4 -0
- package/lib/src/gis-map/gis-map.vue.js +1 -1
- package/lib/src/gis-map/index.d.ts +4 -0
- package/lib/src/gis-map/utils/dbscan-cluster/index.d.ts +0 -1
- package/lib/src/gis-map/utils/dbscan-cluster/index.js +1 -1
- package/lib/src/gis-map/utils/open-drive-renderer/index.d.ts +11 -1
- package/lib/src/gis-map/utils/open-drive-renderer/index.js +1 -1
- package/lib/src/gis-map/utils/signal-control-area/cross-renderer.d.ts +17 -2
- package/lib/src/gis-map/utils/signal-control-area/cross-renderer.js +1 -1
- package/lib/src/gis-map/utils/signal-control-area/show-area.js +1 -1
- package/lib/src/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/es/src/gis-map/utils/GreenWaveline.d.ts +0 -68
- package/lib/src/gis-map/utils/GreenWaveline.d.ts +0 -68
|
@@ -135,6 +135,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
135
135
|
findSumoInOpenDrive: (params: IFindSumoParams) => Promise<import("../types").IResult>;
|
|
136
136
|
selectSumoInOpenDrive: (params: IFindSumoParams) => Promise<import("../types").IResult>;
|
|
137
137
|
unselectSumoInOpenDrive: (params?: IUnselectSumoParams | undefined) => Promise<import("../types").IResult>;
|
|
138
|
+
selectComputableInOpenDrive: (params: IFindSumoParams) => Promise<void | {
|
|
139
|
+
status: number;
|
|
140
|
+
message: string;
|
|
141
|
+
}>;
|
|
138
142
|
geometrySearchInOpenDrive: (params: any) => Promise<import("../types").IResult>;
|
|
139
143
|
getSumoInfo: (params: IFindSumoParams) => Promise<import("../types").IResult>;
|
|
140
144
|
splitOpenDriveLane: (params: ISplitOpenDriveLaneParams) => Promise<import("../types").IResult>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import G, { registerStore as
|
|
1
|
+
import { defineComponent as gt, ref as _, reactive as ft, onMounted as yt, getCurrentInstance as wt, onUnmounted as Ct, computed as St, openBlock as T, createElementBlock as x, createElementVNode as y, withDirectives as vt, vShow as ht, Fragment as bt, renderList as Ot, createBlock as At } from "vue";
|
|
2
|
+
import G, { registerStore as Dt } from "./stores/index.mjs";
|
|
3
3
|
import "./style/index.css";
|
|
4
4
|
import kt from "./utils/dbscan-cluster/index.mjs";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import Lt from "./utils/detect-gpu.mjs";
|
|
6
|
+
import Tt from "./utils/edpass-device-controller.mjs";
|
|
7
7
|
import H from "./utils/green-wave-band-controller/index.mjs";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
8
|
+
import It from "./utils/holo-flow/index.mjs";
|
|
9
|
+
import Bt from "./utils/holo-flow/signal-countdown-panel.vue.mjs";
|
|
10
|
+
import Mt from "./utils/map-initializer.mjs";
|
|
11
11
|
import E from "./utils/open-drive-renderer/index.mjs";
|
|
12
12
|
import N from "./utils/overlay.mjs";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
13
|
+
import Pt from "./utils/police-jurisdiction.mjs";
|
|
14
|
+
import Vt from "./utils/queue-length.mjs";
|
|
15
15
|
import W from "./utils/road-config-tool/index.mjs";
|
|
16
|
-
import
|
|
16
|
+
import zt from "./utils/signal-control-area/edit-area.mjs";
|
|
17
17
|
import I from "./utils/signal-control-area/show-area.mjs";
|
|
18
|
-
import
|
|
19
|
-
const
|
|
18
|
+
import _t from "./utils/traffic-flow.mjs";
|
|
19
|
+
const xt = { class: "gis-viewer" }, Gt = { style: { position: "absolute", bottom: "80px", left: "10px", "z-index": "9999" } }, nn = /* @__PURE__ */ gt({
|
|
20
20
|
__name: "gis-map",
|
|
21
21
|
props: {
|
|
22
22
|
config: {},
|
|
@@ -27,42 +27,42 @@ const _t = { class: "gis-viewer" }, xt = { style: { position: "absolute", bottom
|
|
|
27
27
|
const h = _(null);
|
|
28
28
|
let n, p, c, o, r, s, g, t, l, a, d, w, b, f;
|
|
29
29
|
const O = _(!1);
|
|
30
|
-
|
|
31
|
-
const B = G.useAppDataStore, M =
|
|
32
|
-
let
|
|
30
|
+
Dt();
|
|
31
|
+
const B = G.useAppDataStore, M = ft([]), P = (e) => Math.log2(591657527591555e-6 / e);
|
|
32
|
+
let C = null, V = null;
|
|
33
33
|
const A = (e) => {
|
|
34
34
|
if (!Number.isFinite(e))
|
|
35
35
|
return;
|
|
36
36
|
const u = Math.round(e);
|
|
37
|
-
u !== V && (V = u,
|
|
37
|
+
u !== V && (V = u, S("update:zoom", u));
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
Lt(), yt(async () => {
|
|
40
40
|
if (!h.value)
|
|
41
41
|
return;
|
|
42
42
|
document.addEventListener("keydown", (m) => {
|
|
43
43
|
m.ctrlKey && m.key === "i" && (O.value = !O.value);
|
|
44
44
|
});
|
|
45
|
-
const e =
|
|
46
|
-
i.assetsRoot = z.assetsRoot || u, B.mapConfig = i, p = new
|
|
45
|
+
const e = wt(), { $gisviewerAssetsRoot: u } = e.appContext.config.globalProperties, i = await (await fetch(z.config)).json();
|
|
46
|
+
i.assetsRoot = z.assetsRoot || u, B.mapConfig = i, p = new Mt(), B.mapInitializer = p, n = await p.initialize({
|
|
47
47
|
container: h.value,
|
|
48
48
|
mapConfig: i,
|
|
49
|
-
markerClickCallback: (m,
|
|
50
|
-
|
|
49
|
+
markerClickCallback: (m, k, L, dt) => {
|
|
50
|
+
S("markerClick", m, k, L, dt);
|
|
51
51
|
},
|
|
52
|
-
mapClickCallback: (m,
|
|
53
|
-
|
|
52
|
+
mapClickCallback: (m, k, L) => {
|
|
53
|
+
S("mapClick", m, k, L);
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
|
-
const
|
|
57
|
-
typeof
|
|
58
|
-
const
|
|
56
|
+
const v = n.zoom ?? (n.scale ? P(n.scale) : void 0);
|
|
57
|
+
typeof v == "number" && A(v);
|
|
58
|
+
const pt = n.zoom !== void 0 ? n.watch("zoom", (m) => {
|
|
59
59
|
A(m);
|
|
60
60
|
}) : n.watch("scale", (m) => {
|
|
61
61
|
typeof m == "number" && m > 0 && A(P(m));
|
|
62
62
|
});
|
|
63
|
-
|
|
64
|
-
}),
|
|
65
|
-
a == null || a.clearSignalControlArea(), t == null || t.clearOpenDrive(), r.clearHoloTrace(), r.clearHoloSignal(), o == null || o.disconnectTrafficFlow(),
|
|
63
|
+
C = () => pt.remove(), r = new It(n, M), await r.init(), S("mapLoaded");
|
|
64
|
+
}), Ct(() => {
|
|
65
|
+
a == null || a.clearSignalControlArea(), t == null || t.clearOpenDrive(), r.clearHoloTrace(), r.clearHoloSignal(), o == null || o.disconnectTrafficFlow(), C == null || C(), C = null;
|
|
66
66
|
});
|
|
67
67
|
const J = St(() => n), U = () => {
|
|
68
68
|
const e = G.useAppDataStore;
|
|
@@ -70,9 +70,9 @@ const _t = { class: "gis-viewer" }, xt = { style: { position: "absolute", bottom
|
|
|
70
70
|
}, $ = () => {
|
|
71
71
|
r.downloadTrackLog();
|
|
72
72
|
}, q = () => {
|
|
73
|
-
|
|
73
|
+
D("vehicleId");
|
|
74
74
|
}, K = () => {
|
|
75
|
-
|
|
75
|
+
D("plateNumber");
|
|
76
76
|
}, F = async (e) => await p.setMapCenter(e), X = async (e) => await p.setMapCamera(e), Y = (e) => p.setMapZoom(e), R = 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) => {
|
|
@@ -81,7 +81,7 @@ const _t = { class: "gis-viewer" }, xt = { style: { position: "absolute", bottom
|
|
|
81
81
|
c == null || c.clearLaneNumber();
|
|
82
82
|
}, oe = async (e) => (c || (c = new W(n)), await c.initializeSearch(e)), ie = async () => c == null ? void 0 : c.calCrossIndicatorArea(), ce = async () => {
|
|
83
83
|
}, le = async (e, u) => {
|
|
84
|
-
o || (o = new
|
|
84
|
+
o || (o = new _t(n)), o.connectTrafficFlow(e, u);
|
|
85
85
|
}, ue = () => {
|
|
86
86
|
o == null || o.disconnectTrafficFlow();
|
|
87
87
|
}, me = async (e) => {
|
|
@@ -98,22 +98,22 @@ const _t = { class: "gis-viewer" }, xt = { style: { position: "absolute", bottom
|
|
|
98
98
|
r.handleUniSignalData(e);
|
|
99
99
|
}, we = () => {
|
|
100
100
|
r.clearHoloSignal();
|
|
101
|
-
},
|
|
101
|
+
}, Ce = (e) => {
|
|
102
102
|
o == null || o.toggleTrafficInfo(e), r == null || r.toggleTrafficInfo(e);
|
|
103
|
-
},
|
|
103
|
+
}, Se = (e) => {
|
|
104
104
|
r == null || r.togglePause(e);
|
|
105
|
-
},
|
|
105
|
+
}, ve = (e) => {
|
|
106
106
|
o == null || o.toggleTrafficObject(e), r == null || r.toggleTrafficObject(e);
|
|
107
|
-
},
|
|
107
|
+
}, D = (e) => {
|
|
108
108
|
r == null || r.updatePanelContent(e);
|
|
109
109
|
}, he = async (e) => (s || (s = new N(n)), s.addOverlays(e)), be = async (e) => (f || (f = new kt(n)), f.addClusterPoints(e)), Oe = () => {
|
|
110
110
|
f == null || f.removeAllClusterPoints();
|
|
111
|
-
}, Ae = (e) => (s || (s = new N(n)), s.addMask(e)),
|
|
111
|
+
}, Ae = (e) => (s || (s = new N(n)), s.addMask(e)), De = () => {
|
|
112
112
|
s == null || s.removeMask();
|
|
113
|
-
},
|
|
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
114
|
s == null || s.showAllOverlays();
|
|
115
115
|
}, Be = (e) => {
|
|
116
|
-
g || (g = new
|
|
116
|
+
g || (g = new Vt(n)), g.updateQueueLength(e);
|
|
117
117
|
}, Me = () => {
|
|
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) : {
|
|
@@ -128,36 +128,39 @@ const _t = { class: "gis-viewer" }, xt = { style: { position: "absolute", bottom
|
|
|
128
128
|
}, He = async (e) => t ? t.unselectSumo(e) : {
|
|
129
129
|
status: -1,
|
|
130
130
|
message: "未加载OpenDrive地图"
|
|
131
|
-
}, Ee = async (e) => t ?
|
|
131
|
+
}, Ee = async (e) => t ? t.selectComputable(e) : {
|
|
132
|
+
status: -1,
|
|
133
|
+
message: "未加载OpenDrive地图"
|
|
134
|
+
}, Ne = async (e) => t ? await t.geometrySearch(e) : {
|
|
132
135
|
status: -1,
|
|
133
136
|
message: "未加载OpenDrive地图"
|
|
134
|
-
},
|
|
137
|
+
}, We = async (e) => t ? await t.getSumoInfo(e) : {
|
|
135
138
|
status: -1,
|
|
136
139
|
message: "未加载OpenDrive地图"
|
|
137
|
-
},
|
|
140
|
+
}, Ze = async (e) => t ? await (t == null ? void 0 : t.splitLane(e)) : {
|
|
138
141
|
status: -1,
|
|
139
142
|
message: "未加载OpenDrive地图"
|
|
140
|
-
},
|
|
143
|
+
}, Qe = async () => t ? t == null ? void 0 : t.clearSplitLane() : {
|
|
141
144
|
status: -1,
|
|
142
145
|
message: "未加载OpenDrive地图"
|
|
143
|
-
},
|
|
146
|
+
}, je = async (e) => t ? t == null ? void 0 : t.blockLane(e) : {
|
|
144
147
|
status: -1,
|
|
145
148
|
message: "未加载OpenDrive地图"
|
|
146
|
-
},
|
|
149
|
+
}, Je = () => t ? t == null ? void 0 : t.clearSplitLane() : {
|
|
147
150
|
status: -1,
|
|
148
151
|
message: "未加载OpenDrive地图"
|
|
149
|
-
},
|
|
152
|
+
}, Ue = async (e) => (a || (a = new I(n)), await a.showSignalControlArea(e)), $e = async (e) => (a || (a = new I(n)), await a.showDistrict(e)), qe = async (e) => (a || (a = new I(n)), await a.showSubDistrict(e)), Ke = async () => await (a == null ? void 0 : a.clearSignalControlArea()), Fe = (e) => a == null ? void 0 : a.setLayerVisibility(e), Xe = async (e) => a ? await (a == null ? void 0 : a.locateSignalControlArea(e)) : { status: -1, message: "未加载信号控制区" }, Ye = async (e) => a ? await a.highlightSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, Re = () => a ? a.resetHighlight() : { status: -1, message: "未加载信号控制区" }, et = (e) => (l || (l = new zt(n)), l.showSubSignalControlArea(e)), tt = (e) => l ? l.editSubSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, nt = () => l ? l.stopEditSubSignalControlArea() : { status: -1, message: "未加载信号控制区" }, at = (e) => l ? l.selectSubSignalControlAreaCross(e) : { status: -1, message: "未加载信号控制区" }, rt = (e) => l ? l.unselectSubSignalControlAreaCross(e) : { status: -1, message: "未加载信号控制区" }, st = (e) => {
|
|
150
153
|
if (!l)
|
|
151
154
|
return { status: -1, message: "未加载信号控制区" };
|
|
152
|
-
},
|
|
155
|
+
}, ot = (e) => (d || (d = new H(n)), d.addGreenWaveBand(e)), it = () => {
|
|
153
156
|
if (!d)
|
|
154
157
|
return { status: -1, message: "未加载绿波带" };
|
|
155
158
|
d.stopAddGreenWaveBand();
|
|
156
|
-
},
|
|
159
|
+
}, ct = async (e) => (d || (d = new H(n)), await d.showGreenWaveBand(e)), lt = async (e) => (w || (w = new Pt(n)), await w.showJurisdiction(e)), ut = () => {
|
|
157
160
|
if (!w)
|
|
158
161
|
return { status: -1, message: "未加载警务管辖区" };
|
|
159
162
|
w.clearJurisdiction();
|
|
160
|
-
},
|
|
163
|
+
}, mt = async (e) => (b || (b = new Tt(n)), await b.setEdpassLayerVisibility(e)), z = Z, S = j;
|
|
161
164
|
return Q({
|
|
162
165
|
mapViewer: J,
|
|
163
166
|
setLayerVisibility: ee,
|
|
@@ -172,9 +175,9 @@ const _t = { class: "gis-viewer" }, xt = { style: { position: "absolute", bottom
|
|
|
172
175
|
addClusterPoints: be,
|
|
173
176
|
removeAllClusterPoints: Oe,
|
|
174
177
|
addMask: Ae,
|
|
175
|
-
removeMask:
|
|
178
|
+
removeMask: De,
|
|
176
179
|
showAllOverlays: Ie,
|
|
177
|
-
removeOverlaysByType:
|
|
180
|
+
removeOverlaysByType: ke,
|
|
178
181
|
removeOverlaysById: Le,
|
|
179
182
|
removeAllOverlays: Te,
|
|
180
183
|
showLaneNumber: re,
|
|
@@ -191,52 +194,53 @@ const _t = { class: "gis-viewer" }, xt = { style: { position: "absolute", bottom
|
|
|
191
194
|
handleHoloSignalData: ge,
|
|
192
195
|
clearHoloSignal: we,
|
|
193
196
|
setInterpolate: de,
|
|
194
|
-
toggleTrafficInfo:
|
|
195
|
-
toggleTrafficObject:
|
|
196
|
-
toggleVehicleInfo:
|
|
197
|
-
togglePause:
|
|
197
|
+
toggleTrafficInfo: Ce,
|
|
198
|
+
toggleTrafficObject: ve,
|
|
199
|
+
toggleVehicleInfo: D,
|
|
200
|
+
togglePause: Se,
|
|
198
201
|
updateQueueLength: Be,
|
|
199
202
|
removeQueueLength: Me,
|
|
200
203
|
showOpenDriveFromServer: Pe,
|
|
201
204
|
showOpenDriveFromFile: Ve,
|
|
202
205
|
clearOpenDrive: _e,
|
|
203
206
|
setOpendriveVisibility: ze,
|
|
204
|
-
geometrySearchInOpenDrive:
|
|
207
|
+
geometrySearchInOpenDrive: Ne,
|
|
205
208
|
findSumoInOpenDrive: xe,
|
|
206
209
|
selectSumoInOpenDrive: Ge,
|
|
207
210
|
unselectSumoInOpenDrive: He,
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
211
|
+
selectComputableInOpenDrive: Ee,
|
|
212
|
+
getSumoInfo: We,
|
|
213
|
+
splitOpenDriveLane: Ze,
|
|
214
|
+
clearSplitOpenDriveLane: Qe,
|
|
215
|
+
blockOpenDriveLane: je,
|
|
216
|
+
clearBlockOpenDriveLane: Je,
|
|
217
|
+
showSignalControlArea: Ue,
|
|
218
|
+
showDistrictArea: $e,
|
|
219
|
+
showSubDistrictArea: qe,
|
|
220
|
+
clearSignalControlArea: Ke,
|
|
221
|
+
setSignalControlAreaVisibility: Fe,
|
|
222
|
+
locateSignalControlArea: Xe,
|
|
223
|
+
highlightSignalControlArea: Ye,
|
|
224
|
+
resetHighlightSignalControlArea: Re,
|
|
225
|
+
showSubSignalControlArea: et,
|
|
226
|
+
editSubSignalControlArea: tt,
|
|
227
|
+
stopEditSubSignalControlArea: nt,
|
|
228
|
+
selectSubSignalControlAreaCross: at,
|
|
229
|
+
unselectSubSignalControlAreaCross: rt,
|
|
230
|
+
changeSubSignalControlAreaBorderVisibility: st,
|
|
231
|
+
addGreenWaveBand: ot,
|
|
232
|
+
stopAddGreenWaveBand: it,
|
|
233
|
+
showGreenWaveBand: ct,
|
|
234
|
+
showPoliceArea: lt,
|
|
235
|
+
clearPoliceArea: ut,
|
|
236
|
+
setEdpassLayerVisibility: mt
|
|
237
|
+
}), (e, u) => (T(), x("div", xt, [
|
|
234
238
|
y("div", {
|
|
235
239
|
class: "gis-viewer-main",
|
|
236
240
|
ref_key: "mapContainer",
|
|
237
241
|
ref: h
|
|
238
242
|
}, [
|
|
239
|
-
vt(y("div",
|
|
243
|
+
vt(y("div", Gt, [
|
|
240
244
|
y("button", {
|
|
241
245
|
style: { "margin-right": "10px" },
|
|
242
246
|
onClick: U
|
|
@@ -251,11 +255,11 @@ const _t = { class: "gis-viewer" }, xt = { style: { position: "absolute", bottom
|
|
|
251
255
|
}, " 显示车辆id "),
|
|
252
256
|
y("button", { onClick: K }, "显示车辆号牌")
|
|
253
257
|
], 512), [
|
|
254
|
-
[
|
|
258
|
+
[ht, O.value]
|
|
255
259
|
])
|
|
256
260
|
], 512),
|
|
257
|
-
(T(!0), x(
|
|
258
|
-
key:
|
|
261
|
+
(T(!0), x(bt, null, Ot(M, (i, v) => (T(), At(Bt, {
|
|
262
|
+
key: v,
|
|
259
263
|
"display-mode": i.displayMode,
|
|
260
264
|
flash: i.flash,
|
|
261
265
|
"road-id": i.crossId,
|
|
@@ -271,5 +275,5 @@ const _t = { class: "gis-viewer" }, xt = { style: { position: "absolute", bottom
|
|
|
271
275
|
}
|
|
272
276
|
});
|
|
273
277
|
export {
|
|
274
|
-
|
|
278
|
+
nn as default
|
|
275
279
|
};
|
|
@@ -119,6 +119,10 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
119
119
|
findSumoInOpenDrive: (params: import("../types").IFindSumoParams) => Promise<import("../types").IResult>;
|
|
120
120
|
selectSumoInOpenDrive: (params: import("../types").IFindSumoParams) => Promise<import("../types").IResult>;
|
|
121
121
|
unselectSumoInOpenDrive: (params?: import("../types").IUnselectSumoParams | undefined) => Promise<import("../types").IResult>;
|
|
122
|
+
selectComputableInOpenDrive: (params: import("../types").IFindSumoParams) => Promise<void | {
|
|
123
|
+
status: number;
|
|
124
|
+
message: string;
|
|
125
|
+
}>;
|
|
122
126
|
geometrySearchInOpenDrive: (params: any) => Promise<import("../types").IResult>;
|
|
123
127
|
getSumoInfo: (params: import("../types").IFindSumoParams) => Promise<import("../types").IResult>;
|
|
124
128
|
splitOpenDriveLane: (params: import("../types").ISplitOpenDriveLaneParams) => Promise<import("../types").IResult>;
|
|
@@ -3,7 +3,7 @@ import m from "@arcgis/core/Graphic";
|
|
|
3
3
|
import p from "@arcgis/core/layers/GraphicsLayer";
|
|
4
4
|
class S {
|
|
5
5
|
constructor(t) {
|
|
6
|
-
this.maxClusterSymbolSize = 50, this.minClusterSymbolSize = 25, this.clusterRadius = 120, this.minClusterPoints = 2, this.zoomWatchHandle = null, this.locations = [], this.clusteredLocations = [], this.clusterMarkUrl = "", this.
|
|
6
|
+
this.maxClusterSymbolSize = 50, this.minClusterSymbolSize = 25, this.clusterRadius = 120, this.minClusterPoints = 2, this.zoomWatchHandle = null, this.locations = [], this.clusteredLocations = [], this.clusterMarkUrl = "", this.view = t, this.clusterLayer = new p(), this.view.map.add(this.clusterLayer);
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* 将地理位置转换为屏幕坐标
|
|
@@ -34,13 +34,13 @@ class S {
|
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
}), this.zoomWatchHandle || (this.zoomWatchHandle = this.view.watch("stationary", () => {
|
|
37
|
-
if (
|
|
38
|
-
this.
|
|
37
|
+
if (this.view.stationary) {
|
|
38
|
+
this.locationToScreen(), console.time("cluster");
|
|
39
39
|
const e = this.doPixelCluster(
|
|
40
40
|
this.clusterRadius,
|
|
41
41
|
this.minClusterPoints
|
|
42
42
|
);
|
|
43
|
-
console.timeEnd("cluster")
|
|
43
|
+
this.showClusters(e), console.timeEnd("cluster");
|
|
44
44
|
}
|
|
45
45
|
})), this.locationToScreen();
|
|
46
46
|
const s = this.doPixelCluster(
|
|
@@ -112,9 +112,19 @@ export default class OpenDriveRenderer {
|
|
|
112
112
|
*/
|
|
113
113
|
selectSumo(params: IFindSumoParams): Promise<IResult>;
|
|
114
114
|
geometrySearch(coordinate: number[][]): Promise<IResult>;
|
|
115
|
+
/**
|
|
116
|
+
* 封闭车道,使用sumo的id
|
|
117
|
+
* @param params
|
|
118
|
+
* @returns
|
|
119
|
+
*/
|
|
115
120
|
splitLane(params: ISplitOpenDriveLaneParams): Promise<IResult>;
|
|
116
|
-
|
|
121
|
+
/**
|
|
122
|
+
* 封闭车道,使用可计算路网的id
|
|
123
|
+
* @param params
|
|
124
|
+
*/
|
|
125
|
+
blockLane(params: IBlockOpenDriveLaneParams): void;
|
|
117
126
|
clearSplitLane(): void;
|
|
127
|
+
selectComputable(params: IFindSumoParams): void;
|
|
118
128
|
/**
|
|
119
129
|
* 更新所有路口的symbol
|
|
120
130
|
* @param symbolStyle
|