gisviewer-vue3-arcgis 1.0.262 → 1.0.263

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.
@@ -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 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";
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 Dt from "./utils/detect-gpu.mjs";
6
- import Lt from "./utils/edpass-device-controller.mjs";
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 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";
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 Mt from "./utils/police-jurisdiction.mjs";
14
- import Pt from "./utils/queue-length.mjs";
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 Vt from "./utils/signal-control-area/edit-area.mjs";
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 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({
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
- At();
31
- const B = G.useAppDataStore, M = gt([]), P = (e) => Math.log2(591657527591555e-6 / e);
32
- let S = null, V = null;
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, v("update:zoom", u));
37
+ u !== V && (V = u, S("update:zoom", u));
38
38
  };
39
- Dt(), ft(async () => {
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 = 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({
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, D, L, pt) => {
50
- v("markerClick", m, D, L, pt);
49
+ markerClickCallback: (m, k, L, dt) => {
50
+ S("markerClick", m, k, L, dt);
51
51
  },
52
- mapClickCallback: (m, D, L) => {
53
- v("mapClick", m, D, L);
52
+ mapClickCallback: (m, k, L) => {
53
+ S("mapClick", m, k, L);
54
54
  }
55
55
  });
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) => {
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
- S = () => mt.remove(), r = new Tt(n, M), await r.init(), v("mapLoaded");
64
- }), wt(() => {
65
- a == null || a.clearSignalControlArea(), t == null || t.clearOpenDrive(), r.clearHoloTrace(), r.clearHoloSignal(), o == null || o.disconnectTrafficFlow(), S == null || S(), S = null;
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
- k("vehicleId");
73
+ D("vehicleId");
74
74
  }, K = () => {
75
- k("plateNumber");
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 zt(n)), o.connectTrafficFlow(e, u);
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
- }, Se = (e) => {
101
+ }, Ce = (e) => {
102
102
  o == null || o.toggleTrafficInfo(e), r == null || r.toggleTrafficInfo(e);
103
- }, ve = (e) => {
103
+ }, Se = (e) => {
104
104
  r == null || r.togglePause(e);
105
- }, Ce = (e) => {
105
+ }, ve = (e) => {
106
106
  o == null || o.toggleTrafficObject(e), r == null || r.toggleTrafficObject(e);
107
- }, k = (e) => {
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)), ke = () => {
111
+ }, Ae = (e) => (s || (s = new N(n)), s.addMask(e)), De = () => {
112
112
  s == null || s.removeMask();
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 = () => {
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 Pt(n)), g.updateQueueLength(e);
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 ? await t.geometrySearch(e) : {
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
- }, Ne = async (e) => t ? await t.getSumoInfo(e) : {
137
+ }, We = async (e) => t ? await t.getSumoInfo(e) : {
135
138
  status: -1,
136
139
  message: "未加载OpenDrive地图"
137
- }, We = async (e) => t ? await (t == null ? void 0 : t.splitLane(e)) : {
140
+ }, Ze = async (e) => t ? await (t == null ? void 0 : t.splitLane(e)) : {
138
141
  status: -1,
139
142
  message: "未加载OpenDrive地图"
140
- }, Ze = async () => t ? t == null ? void 0 : t.clearSplitLane() : {
143
+ }, Qe = async () => t ? t == null ? void 0 : t.clearSplitLane() : {
141
144
  status: -1,
142
145
  message: "未加载OpenDrive地图"
143
- }, Qe = async (e) => t ? t == null ? void 0 : t.blockOpenDriveLane(e) : {
146
+ }, je = async (e) => t ? t == null ? void 0 : t.blockLane(e) : {
144
147
  status: -1,
145
148
  message: "未加载OpenDrive地图"
146
- }, je = () => t ? t == null ? void 0 : t.clearSplitLane() : {
149
+ }, Je = () => t ? t == null ? void 0 : t.clearSplitLane() : {
147
150
  status: -1,
148
151
  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) => {
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
- }, st = (e) => (d || (d = new H(n)), d.addGreenWaveBand(e)), ot = () => {
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
- }, 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 = () => {
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
- }, ut = async (e) => (b || (b = new Lt(n)), await b.setEdpassLayerVisibility(e)), z = Z, v = j;
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: ke,
178
+ removeMask: De,
176
179
  showAllOverlays: Ie,
177
- removeOverlaysByType: De,
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: Se,
195
- toggleTrafficObject: Ce,
196
- toggleVehicleInfo: k,
197
- togglePause: ve,
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: Ee,
207
+ geometrySearchInOpenDrive: Ne,
205
208
  findSumoInOpenDrive: xe,
206
209
  selectSumoInOpenDrive: Ge,
207
210
  unselectSumoInOpenDrive: He,
208
- getSumoInfo: Ne,
209
- splitOpenDriveLane: We,
210
- clearSplitOpenDriveLane: Ze,
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,
221
- showSubSignalControlArea: Re,
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, [
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", xt, [
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
- [Ct, O.value]
258
+ [ht, O.value]
255
259
  ])
256
260
  ], 512),
257
- (T(!0), x(ht, null, bt(M, (i, C) => (T(), Ot(It, {
258
- key: C,
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
- tn as default
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>;
@@ -11,7 +11,6 @@ export default class DbscanCluster {
11
11
  private locations;
12
12
  private clusteredLocations;
13
13
  private clusterMarkUrl;
14
- private currentZoom;
15
14
  /**
16
15
  * 将地理位置转换为屏幕坐标
17
16
  */
@@ -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.currentZoom = 0, this.view = t, this.currentZoom = t.zoom, this.clusterLayer = new p(), this.view.map.add(this.clusterLayer);
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 (Math.abs(this.currentZoom - this.view.zoom) >= 1) {
38
- this.currentZoom = this.view.zoom, this.locationToScreen(), console.time("cluster");
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"), this.showClusters(e);
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
- blockOpenDriveLane(params: IBlockOpenDriveLaneParams): void;
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