gisviewer-vue3-arcgis 1.0.258 → 1.0.262

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.
Files changed (27) hide show
  1. package/es/src/gis-map/gis-map.vue.d.ts +9 -1
  2. package/es/src/gis-map/gis-map.vue.mjs +96 -88
  3. package/es/src/gis-map/index.d.ts +8 -0
  4. package/es/src/gis-map/utils/GreenWaveline.d.ts +68 -0
  5. package/es/src/gis-map/utils/dbscan-cluster/index.d.ts +1 -0
  6. package/es/src/gis-map/utils/dbscan-cluster/index.mjs +67 -76
  7. package/es/src/gis-map/utils/map-initializer.mjs +1 -1
  8. package/es/src/gis-map/utils/open-drive-renderer/index.d.ts +2 -1
  9. package/es/src/gis-map/utils/open-drive-renderer/index.mjs +369 -328
  10. package/es/src/gis-map/utils/signal-control-area/cross-renderer.d.ts +51 -1
  11. package/es/src/gis-map/utils/signal-control-area/cross-renderer.mjs +401 -20
  12. package/es/src/gis-map/utils/signal-control-area/show-area.mjs +23 -17
  13. package/es/src/types/index.d.ts +5 -0
  14. package/lib/src/gis-map/gis-map.vue.d.ts +9 -1
  15. package/lib/src/gis-map/gis-map.vue.js +1 -1
  16. package/lib/src/gis-map/index.d.ts +8 -0
  17. package/lib/src/gis-map/utils/GreenWaveline.d.ts +68 -0
  18. package/lib/src/gis-map/utils/dbscan-cluster/index.d.ts +1 -0
  19. package/lib/src/gis-map/utils/dbscan-cluster/index.js +1 -1
  20. package/lib/src/gis-map/utils/map-initializer.js +1 -1
  21. package/lib/src/gis-map/utils/open-drive-renderer/index.d.ts +2 -1
  22. package/lib/src/gis-map/utils/open-drive-renderer/index.js +1 -1
  23. package/lib/src/gis-map/utils/signal-control-area/cross-renderer.d.ts +51 -1
  24. package/lib/src/gis-map/utils/signal-control-area/cross-renderer.js +1 -1
  25. package/lib/src/gis-map/utils/signal-control-area/show-area.js +1 -1
  26. package/lib/src/types/index.d.ts +5 -0
  27. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import MapView from '@arcgis/core/views/MapView';
2
2
  import SceneView from '@arcgis/core/views/SceneView';
3
- import { IClusterPointParams, IEditSignalControlAreaParams, IFindSignalControlAreaParams, IFindSumoParams, ILaneNumberParams, ILayerVisibleParams, ILookAtParams, IMaskParam, IOverlayParam, IQueueLengthParams, ISetMapCameraParams, ISetMapCenterParams, IShowEdpassDeviceParams, IShowGreenWaveBandParams, IShowJurisdictionParams, IShowOpenDriveFromFileParams, IShowSignalControlAreaParams, ISignalCountdownProps, ISplitOpenDriveLaneParams, IStartCrossBufferParam, IToggleTrafficInfoParams, IUnselectSumoParams } from '../types';
3
+ import { IBlockOpenDriveLaneParams, IClusterPointParams, IEditSignalControlAreaParams, IFindSignalControlAreaParams, IFindSumoParams, ILaneNumberParams, ILayerVisibleParams, ILookAtParams, IMaskParam, IOverlayParam, IQueueLengthParams, ISetMapCameraParams, ISetMapCenterParams, IShowEdpassDeviceParams, IShowGreenWaveBandParams, IShowJurisdictionParams, IShowOpenDriveFromFileParams, IShowSignalControlAreaParams, ISignalCountdownProps, ISplitOpenDriveLaneParams, IStartCrossBufferParam, IToggleTrafficInfoParams, IUnselectSumoParams } from '../types';
4
4
  import DbscanCluster from './utils/dbscan-cluster';
5
5
  import EdpassDeviceController from './utils/edpass-device-controller';
6
6
  import GreenWaveBandController from './utils/green-wave-band-controller';
@@ -142,6 +142,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
142
142
  status: number;
143
143
  message: string;
144
144
  }>;
145
+ blockOpenDriveLane: (params: IBlockOpenDriveLaneParams) => Promise<void | {
146
+ status: number;
147
+ message: string;
148
+ }>;
149
+ clearBlockOpenDriveLane: () => void | {
150
+ status: number;
151
+ message: string;
152
+ };
145
153
  showSignalControlArea: (params: IShowSignalControlAreaParams) => Promise<import("../types").IResult>;
146
154
  showDistrictArea: (params: IShowSignalControlAreaParams) => Promise<void>;
147
155
  showSubDistrictArea: (params: IShowSignalControlAreaParams) => Promise<void>;
@@ -1,22 +1,22 @@
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";
1
+ import { defineComponent as dt, ref as _, reactive as gt, onMounted as ft, getCurrentInstance as yt, onUnmounted as wt, computed as St, openBlock as T, createElementBlock as x, createElementVNode as y, withDirectives as vt, vShow as Ct, Fragment as ht, renderList as bt, createBlock as Ot } from "vue";
2
+ import G, { registerStore as At } from "./stores/index.mjs";
3
3
  import "./style/index.css";
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";
4
+ import kt from "./utils/dbscan-cluster/index.mjs";
5
+ import Dt from "./utils/detect-gpu.mjs";
6
+ import Lt from "./utils/edpass-device-controller.mjs";
7
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";
8
+ import Tt from "./utils/holo-flow/index.mjs";
9
+ import It from "./utils/holo-flow/signal-countdown-panel.vue.mjs";
10
+ import Bt 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 It from "./utils/police-jurisdiction.mjs";
14
- import Mt from "./utils/queue-length.mjs";
13
+ import Mt from "./utils/police-jurisdiction.mjs";
14
+ import Pt from "./utils/queue-length.mjs";
15
15
  import W from "./utils/road-config-tool/index.mjs";
16
- import Bt from "./utils/signal-control-area/edit-area.mjs";
16
+ import Vt from "./utils/signal-control-area/edit-area.mjs";
17
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({
18
+ import zt from "./utils/traffic-flow.mjs";
19
+ const _t = { class: "gis-viewer" }, xt = { style: { position: "absolute", bottom: "80px", left: "10px", "z-index": "9999" } }, tn = /* @__PURE__ */ dt({
20
20
  __name: "gis-map",
21
21
  props: {
22
22
  config: {},
@@ -26,54 +26,54 @@ const Vt = { class: "gis-viewer" }, zt = { style: { position: "absolute", bottom
26
26
  setup(Z, { expose: Q, emit: j }) {
27
27
  const h = _(null);
28
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);
29
+ const O = _(!1);
30
+ At();
31
+ const B = G.useAppDataStore, M = gt([]), P = (e) => Math.log2(591657527591555e-6 / e);
32
32
  let S = null, V = null;
33
- const O = (e) => {
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, C("update:zoom", u));
37
+ u !== V && (V = u, v("update:zoom", u));
38
38
  };
39
- Ot(), dt(async () => {
39
+ Dt(), ft(async () => {
40
40
  if (!h.value)
41
41
  return;
42
42
  document.addEventListener("keydown", (m) => {
43
- m.ctrlKey && m.key === "i" && (A.value = !A.value);
43
+ m.ctrlKey && m.key === "i" && (O.value = !O.value);
44
44
  });
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({
45
+ const e = yt(), { $gisviewerAssetsRoot: u } = e.appContext.config.globalProperties, i = await (await fetch(z.config)).json();
46
+ i.assetsRoot = z.assetsRoot || u, B.mapConfig = i, p = new Bt(), B.mapInitializer = p, n = await p.initialize({
47
47
  container: h.value,
48
48
  mapConfig: i,
49
- markerClickCallback: (m, k, L, ut) => {
50
- C("markerClick", m, k, L, ut);
49
+ markerClickCallback: (m, D, L, pt) => {
50
+ v("markerClick", m, D, L, pt);
51
51
  },
52
- mapClickCallback: (m, k, L) => {
53
- C("mapClick", m, k, L);
52
+ mapClickCallback: (m, D, L) => {
53
+ v("mapClick", m, D, L);
54
54
  }
55
55
  });
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);
56
+ const C = n.zoom ?? (n.scale ? P(n.scale) : void 0);
57
+ typeof C == "number" && A(C);
58
+ const mt = n.zoom !== void 0 ? n.watch("zoom", (m) => {
59
+ A(m);
60
60
  }) : n.watch("scale", (m) => {
61
- typeof m == "number" && m > 0 && O(P(m));
61
+ typeof m == "number" && m > 0 && A(P(m));
62
62
  });
63
- S = () => lt.remove(), r = new kt(n, B), await r.init(), C("mapLoaded");
64
- }), ft(() => {
63
+ S = () => mt.remove(), r = new Tt(n, M), await r.init(), v("mapLoaded");
64
+ }), wt(() => {
65
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 J = yt(() => n), U = () => {
67
+ const J = St(() => n), U = () => {
68
68
  const e = G.useAppDataStore;
69
69
  e.saveTrackLog = !0;
70
70
  }, $ = () => {
71
71
  r.downloadTrackLog();
72
72
  }, q = () => {
73
- D("vehicleId");
73
+ k("vehicleId");
74
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) => {
75
+ k("plateNumber");
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) => {
79
79
  p.setMapZoomRange(e);
@@ -81,7 +81,7 @@ const Vt = { class: "gis-viewer" }, zt = { 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 Pt(n)), o.connectTrafficFlow(e, u);
84
+ o || (o = new zt(n)), o.connectTrafficFlow(e, u);
85
85
  }, ue = () => {
86
86
  o == null || o.disconnectTrafficFlow();
87
87
  }, me = async (e) => {
@@ -100,21 +100,21 @@ const Vt = { class: "gis-viewer" }, zt = { style: { position: "absolute", bottom
100
100
  r.clearHoloSignal();
101
101
  }, Se = (e) => {
102
102
  o == null || o.toggleTrafficInfo(e), r == null || r.toggleTrafficInfo(e);
103
- }, Ce = (e) => {
104
- r == null || r.togglePause(e);
105
103
  }, ve = (e) => {
104
+ r == null || r.togglePause(e);
105
+ }, Ce = (e) => {
106
106
  o == null || o.toggleTrafficObject(e), r == null || r.toggleTrafficObject(e);
107
- }, D = (e) => {
107
+ }, k = (e) => {
108
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 = () => {
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
- }, Oe = (e) => (s || (s = new N(n)), s.addMask(e)), De = () => {
111
+ }, Ae = (e) => (s || (s = new N(n)), s.addMask(e)), ke = () => {
112
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 = () => {
113
+ }, De = (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
- }, Me = (e) => {
116
- g || (g = new Mt(n)), g.updateQueueLength(e);
117
- }, Be = () => {
115
+ }, Be = (e) => {
116
+ g || (g = new Pt(n)), g.updateQueueLength(e);
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) : {
120
120
  status: -1,
@@ -140,35 +140,41 @@ const Vt = { class: "gis-viewer" }, zt = { style: { position: "absolute", bottom
140
140
  }, Ze = async () => t ? t == null ? void 0 : t.clearSplitLane() : {
141
141
  status: -1,
142
142
  message: "未加载OpenDrive地图"
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) => {
143
+ }, Qe = async (e) => t ? t == null ? void 0 : t.blockOpenDriveLane(e) : {
144
+ status: -1,
145
+ message: "未加载OpenDrive地图"
146
+ }, je = () => t ? t == null ? void 0 : t.clearSplitLane() : {
147
+ status: -1,
148
+ message: "未加载OpenDrive地图"
149
+ }, Je = async (e) => (a || (a = new I(n)), await a.showSignalControlArea(e)), Ue = async (e) => (a || (a = new I(n)), await a.showDistrict(e)), $e = async (e) => (a || (a = new I(n)), await a.showSubDistrict(e)), qe = async () => await (a == null ? void 0 : a.clearSignalControlArea()), Ke = (e) => a == null ? void 0 : a.setLayerVisibility(e), Fe = async (e) => a ? await (a == null ? void 0 : a.locateSignalControlArea(e)) : { status: -1, message: "未加载信号控制区" }, Xe = async (e) => a ? await a.highlightSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, Ye = () => a ? a.resetHighlight() : { status: -1, message: "未加载信号控制区" }, Re = (e) => (l || (l = new Vt(n)), l.showSubSignalControlArea(e)), et = (e) => l ? l.editSubSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, tt = () => l ? l.stopEditSubSignalControlArea() : { status: -1, message: "未加载信号控制区" }, nt = (e) => l ? l.selectSubSignalControlAreaCross(e) : { status: -1, message: "未加载信号控制区" }, at = (e) => l ? l.unselectSubSignalControlAreaCross(e) : { status: -1, message: "未加载信号控制区" }, rt = (e) => {
144
150
  if (!l)
145
151
  return { status: -1, message: "未加载信号控制区" };
146
- }, at = (e) => (d || (d = new H(n)), d.addGreenWaveBand(e)), rt = () => {
152
+ }, st = (e) => (d || (d = new H(n)), d.addGreenWaveBand(e)), ot = () => {
147
153
  if (!d)
148
154
  return { status: -1, message: "未加载绿波带" };
149
155
  d.stopAddGreenWaveBand();
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 = () => {
156
+ }, it = async (e) => (d || (d = new H(n)), await d.showGreenWaveBand(e)), ct = async (e) => (w || (w = new Mt(n)), await w.showJurisdiction(e)), lt = () => {
151
157
  if (!w)
152
158
  return { status: -1, message: "未加载警务管辖区" };
153
159
  w.clearJurisdiction();
154
- }, ct = async (e) => (b || (b = new Dt(n)), await b.setEdpassLayerVisibility(e)), z = Z, C = j;
160
+ }, ut = async (e) => (b || (b = new Lt(n)), await b.setEdpassLayerVisibility(e)), z = Z, v = j;
155
161
  return Q({
156
162
  mapViewer: J,
157
163
  setLayerVisibility: ee,
158
164
  setMapCenter: F,
159
- lookAt: Y,
160
- setMapCamera: R,
161
- setMapZoom: X,
165
+ lookAt: R,
166
+ setMapCamera: X,
167
+ setMapZoom: Y,
162
168
  setMapZoomRange: ae,
163
169
  requestCoordinateTransform: te,
164
170
  cancelCoordinateTransform: ne,
165
171
  addOverlays: he,
166
172
  addClusterPoints: be,
167
- removeAllClusterPoints: Ae,
168
- addMask: Oe,
169
- removeMask: De,
173
+ removeAllClusterPoints: Oe,
174
+ addMask: Ae,
175
+ removeMask: ke,
170
176
  showAllOverlays: Ie,
171
- removeOverlaysByType: ke,
177
+ removeOverlaysByType: De,
172
178
  removeOverlaysById: Le,
173
179
  removeAllOverlays: Te,
174
180
  showLaneNumber: re,
@@ -186,11 +192,11 @@ const Vt = { class: "gis-viewer" }, zt = { style: { position: "absolute", bottom
186
192
  clearHoloSignal: we,
187
193
  setInterpolate: de,
188
194
  toggleTrafficInfo: Se,
189
- toggleTrafficObject: ve,
190
- toggleVehicleInfo: D,
191
- togglePause: Ce,
192
- updateQueueLength: Me,
193
- removeQueueLength: Be,
195
+ toggleTrafficObject: Ce,
196
+ toggleVehicleInfo: k,
197
+ togglePause: ve,
198
+ updateQueueLength: Be,
199
+ removeQueueLength: Me,
194
200
  showOpenDriveFromServer: Pe,
195
201
  showOpenDriveFromFile: Ve,
196
202
  clearOpenDrive: _e,
@@ -202,33 +208,35 @@ const Vt = { class: "gis-viewer" }, zt = { style: { position: "absolute", bottom
202
208
  getSumoInfo: Ne,
203
209
  splitOpenDriveLane: We,
204
210
  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,
211
+ blockOpenDriveLane: Qe,
212
+ clearBlockOpenDriveLane: je,
213
+ showSignalControlArea: Je,
214
+ showDistrictArea: Ue,
215
+ showSubDistrictArea: $e,
216
+ clearSignalControlArea: qe,
217
+ setSignalControlAreaVisibility: Ke,
218
+ locateSignalControlArea: Fe,
219
+ highlightSignalControlArea: Xe,
220
+ resetHighlightSignalControlArea: Ye,
213
221
  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, [
222
+ editSubSignalControlArea: et,
223
+ stopEditSubSignalControlArea: tt,
224
+ selectSubSignalControlAreaCross: nt,
225
+ unselectSubSignalControlAreaCross: at,
226
+ changeSubSignalControlAreaBorderVisibility: rt,
227
+ addGreenWaveBand: st,
228
+ stopAddGreenWaveBand: ot,
229
+ showGreenWaveBand: it,
230
+ showPoliceArea: ct,
231
+ clearPoliceArea: lt,
232
+ setEdpassLayerVisibility: ut
233
+ }), (e, u) => (T(), x("div", _t, [
226
234
  y("div", {
227
235
  class: "gis-viewer-main",
228
236
  ref_key: "mapContainer",
229
237
  ref: h
230
238
  }, [
231
- wt(y("div", zt, [
239
+ vt(y("div", xt, [
232
240
  y("button", {
233
241
  style: { "margin-right": "10px" },
234
242
  onClick: U
@@ -243,11 +251,11 @@ const Vt = { class: "gis-viewer" }, zt = { style: { position: "absolute", bottom
243
251
  }, " 显示车辆id "),
244
252
  y("button", { onClick: K }, "显示车辆号牌")
245
253
  ], 512), [
246
- [St, A.value]
254
+ [Ct, O.value]
247
255
  ])
248
256
  ], 512),
249
- (T(!0), x(Ct, null, vt(B, (i, v) => (T(), ht(Lt, {
250
- key: v,
257
+ (T(!0), x(ht, null, bt(M, (i, C) => (T(), Ot(It, {
258
+ key: C,
251
259
  "display-mode": i.displayMode,
252
260
  flash: i.flash,
253
261
  "road-id": i.crossId,
@@ -263,5 +271,5 @@ const Vt = { class: "gis-viewer" }, zt = { style: { position: "absolute", bottom
263
271
  }
264
272
  });
265
273
  export {
266
- Yt as default
274
+ tn as default
267
275
  };
@@ -126,6 +126,14 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
126
126
  status: number;
127
127
  message: string;
128
128
  }>;
129
+ blockOpenDriveLane: (params: import("../types").IBlockOpenDriveLaneParams) => Promise<void | {
130
+ status: number;
131
+ message: string;
132
+ }>;
133
+ clearBlockOpenDriveLane: () => void | {
134
+ status: number;
135
+ message: string;
136
+ };
129
137
  showSignalControlArea: (params: import("../types").IShowSignalControlAreaParams) => Promise<import("../types").IResult>;
130
138
  showDistrictArea: (params: import("../types").IShowSignalControlAreaParams) => Promise<void>;
131
139
  showSubDistrictArea: (params: import("../types").IShowSignalControlAreaParams) => Promise<void>;
@@ -0,0 +1,68 @@
1
+ import Graphic from '@arcgis/core/Graphic';
2
+ import GraphicsLayer from '@arcgis/core/layers/GraphicsLayer';
3
+ import MapView from '@arcgis/core/views/MapView';
4
+ import SceneView from '@arcgis/core/views/SceneView';
5
+ interface GreenWaveLineOptions {
6
+ viewer: MapView | SceneView;
7
+ graphicsLayerOptions: {
8
+ id: string;
9
+ };
10
+ }
11
+ interface roadPath {
12
+ paths: [number, number][];
13
+ symbol: any;
14
+ attributes: any;
15
+ visible?: boolean;
16
+ }
17
+ interface animationOptions {
18
+ isAnimation: boolean;
19
+ positive?: boolean;
20
+ positiveColor?: number[];
21
+ negative?: boolean;
22
+ negativeColor?: number[];
23
+ }
24
+ export default class GreenWaveLine {
25
+ private viewer;
26
+ overlayLayer: GraphicsLayer;
27
+ customGreenWaveLineView: any;
28
+ material: THREE.ShaderMaterial;
29
+ renderer: THREE.WebGLRenderer;
30
+ threeScene: THREE.Scene;
31
+ camera: THREE.PerspectiveCamera;
32
+ private defaultAnimationOptions;
33
+ constructor(options: GreenWaveLineOptions);
34
+ addGreenWaveLine(paths: roadPath[], options?: animationOptions): void;
35
+ getAnimationPath(paths: [number, number][], options?: animationOptions): any;
36
+ createLine(paths: any, symbol: any, attributes: any, visible: boolean): Graphic;
37
+ addPointText(points: any[]): void;
38
+ createPointText(point: any, symbol: any, attributes: any, visible: boolean): Graphic;
39
+ /**
40
+ * 隐藏覆盖物
41
+ *
42
+ * @param {string[]} [ids]
43
+ * @memberof GreenWaveLine
44
+ */
45
+ hideWaveLine(ids?: string[]): void;
46
+ /**
47
+ * 显示覆盖物
48
+ *
49
+ * @param {string[]} [ids]
50
+ * @memberof GreenWaveLine
51
+ */
52
+ showWaveLine(ids?: string[]): void;
53
+ /**
54
+ * 隐藏图层
55
+ *
56
+ * @memberof GreenWaveLine
57
+ */
58
+ hideLayer(): void;
59
+ /**
60
+ * 显示图层
61
+ *
62
+ * @memberof Overlay
63
+ */
64
+ showLayer(): void;
65
+ clearGreenWaveLine(): void;
66
+ destroy(): void;
67
+ }
68
+ export {};
@@ -9,6 +9,7 @@ export default class DbscanCluster {
9
9
  constructor(view: __esri.MapView | __esri.SceneView);
10
10
  private zoomWatchHandle;
11
11
  private locations;
12
+ private clusteredLocations;
12
13
  private clusterMarkUrl;
13
14
  private currentZoom;
14
15
  /**