gisviewer-vue3-arcgis 1.0.144 → 1.0.146

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.
@@ -75,8 +75,13 @@ declare const _sfc_main: import("vue").DefineComponent<{
75
75
  findSumoInOpenDrive: (params: IFindSumoParams) => Promise<import("../types").IResult>;
76
76
  selectSumoInOpenDrive: (params: IFindSumoParams) => Promise<import("../types").IResult>;
77
77
  unselectSumoInOpenDrive: (params?: IUnselectSumoParams | undefined) => Promise<import("../types").IResult>;
78
+ geometrySearchInOpenDrive: (params: any) => Promise<import("../types").IResult>;
78
79
  getSumoInfo: (params: IFindSumoParams) => Promise<import("../types").IResult>;
79
80
  splitOpenDriveLane: (params: ISplitOpenDriveLaneParams) => Promise<import("../types").IResult>;
81
+ clearSplitOpenDriveLane: () => Promise<void | {
82
+ status: number;
83
+ message: string;
84
+ }>;
80
85
  showSignalControlArea: (params: any) => import("../types").IResult;
81
86
  clearSignalControlArea: () => void;
82
87
  locateSignalControlArea: (params: {
@@ -1,48 +1,48 @@
1
- import { defineComponent as Ce, ref as S, onMounted as Oe, getCurrentInstance as ke, onUnmounted as Te, computed as Ae, openBlock as De, createElementBlock as Ie, createElementVNode as p, withDirectives as Le, vShow as be } from "vue";
2
- import C, { registerStore as _e } from "./stores/index.mjs";
1
+ import { defineComponent as ke, ref as S, onMounted as Te, getCurrentInstance as De, onUnmounted as Le, computed as Ae, openBlock as Ie, createElementBlock as be, createElementVNode as p, withDirectives as _e, vShow as He } from "vue";
2
+ import O, { registerStore as xe } from "./stores/index.mjs";
3
3
  import "./style/index.css";
4
- import He from "./utils/holo-flow/index.mjs";
5
- import xe from "./utils/map-initializer.mjs";
6
- import O from "./utils/open-drive-renderer/index.mjs";
7
- import Me from "./utils/overlay.mjs";
8
- import Ve from "./utils/queue-length.mjs";
4
+ import Me from "./utils/holo-flow/index.mjs";
5
+ import Ve from "./utils/map-initializer.mjs";
6
+ import C from "./utils/open-drive-renderer/index.mjs";
7
+ import Be from "./utils/overlay.mjs";
8
+ import ze from "./utils/queue-length.mjs";
9
9
  import k from "./utils/road-config-tool/index.mjs";
10
- import Be from "./utils/signal-control-area-controller/index.mjs";
11
- import ze from "./utils/traffic-flow.mjs";
12
- const Ne = { class: "gis-viewer" }, Qe = { style: { position: "absolute", bottom: "10px", left: "10px" } }, Je = /* @__PURE__ */ Ce({
10
+ import Ne from "./utils/signal-control-area-controller/index.mjs";
11
+ import Qe from "./utils/traffic-flow.mjs";
12
+ const je = { class: "gis-viewer" }, Pe = { style: { position: "absolute", bottom: "10px", left: "10px" } }, Xe = /* @__PURE__ */ ke({
13
13
  __name: "gis-map",
14
14
  props: {
15
15
  config: {},
16
16
  assetsRoot: {}
17
17
  },
18
18
  emits: ["mapLoaded", "markerClick", "mapClick"],
19
- setup(T, { expose: A, emit: D }) {
19
+ setup(T, { expose: D, emit: L }) {
20
20
  const g = S(null);
21
21
  let i, c, s, n, a, r, u, t, o;
22
22
  const f = S(!1);
23
- Oe(async () => {
24
- if (_e(), !g.value)
23
+ Te(async () => {
24
+ if (xe(), !g.value)
25
25
  return;
26
26
  document.addEventListener("keydown", (m) => {
27
27
  m.ctrlKey && m.key === "i" && (f.value = !f.value);
28
28
  });
29
- const e = ke(), { $gisviewerAssetsRoot: l } = e.appContext.config.globalProperties, h = await (await fetch(y.config)).json();
30
- h.assetsRoot = y.assetsRoot || l;
31
- const he = C.useAppDataStore;
32
- he.mapConfig = h, c = new xe(), i = await c.initialize({
29
+ const e = De(), { $gisviewerAssetsRoot: l } = e.appContext.config.globalProperties, h = await (await fetch(d.config)).json();
30
+ h.assetsRoot = d.assetsRoot || l;
31
+ const Oe = O.useAppDataStore;
32
+ Oe.mapConfig = h, c = new Ve(), i = await c.initialize({
33
33
  container: g.value,
34
- markerClickCallback: (m, d, v, Se) => {
35
- w("markerClick", m, d, v, Se);
34
+ markerClickCallback: (m, y, v, Ce) => {
35
+ w("markerClick", m, y, v, Ce);
36
36
  },
37
- mapClickCallback: (m, d, v) => {
38
- w("mapClick", m, d, v);
37
+ mapClickCallback: (m, y, v) => {
38
+ w("mapClick", m, y, v);
39
39
  }
40
- }), a = new He(i), await a.init(), w("mapLoaded");
41
- }), Te(() => {
40
+ }), a = new Me(i), await a.init(), w("mapLoaded");
41
+ }), Le(() => {
42
42
  o == null || o.clearSignalControlArea(), t == null || t.clearOpenDrive(), a == null || a.clearHoloTrace(), a == null || a.clearHoloSignal(), n == null || n.disconnectTrafficFlow();
43
43
  });
44
- const I = Ae(() => i), L = () => {
45
- const e = C.useAppDataStore;
44
+ const A = Ae(() => i), I = () => {
45
+ const e = O.useAppDataStore;
46
46
  e.saveTrackLog = !0;
47
47
  }, b = () => {
48
48
  a.downloadTrackLog();
@@ -54,34 +54,34 @@ const Ne = { class: "gis-viewer" }, Qe = { style: { position: "absolute", bottom
54
54
  s == null || s.clearLaneNumber();
55
55
  }, j = async (e) => (s || (s = new k(i)), await s.initializeSearch(e)), P = async () => s == null ? void 0 : s.calCrossIndicatorArea(), E = async () => {
56
56
  }, F = async (e, l) => {
57
- n || (n = new ze(i)), n.connectTrafficFlow(e, l);
58
- }, R = () => {
57
+ n || (n = new Qe(i)), n.connectTrafficFlow(e, l);
58
+ }, Z = () => {
59
59
  n == null || n.disconnectTrafficFlow();
60
- }, Z = (e) => {
60
+ }, q = (e) => {
61
61
  a.handleVehicleTraceData(e);
62
- }, q = () => {
62
+ }, K = () => {
63
63
  a.clearHoloTrace();
64
- }, K = (e) => {
64
+ }, U = (e) => {
65
65
  a.setInterpolate(e);
66
- }, U = async (e) => {
66
+ }, $ = async (e) => {
67
67
  await a.handleSignalData(e);
68
- }, $ = () => {
68
+ }, G = () => {
69
69
  a.clearHoloSignal();
70
- }, G = (e) => {
71
- n == null || n.toggleTrafficInfo(e), a.toggleTrafficInfo(e);
72
70
  }, J = (e) => {
71
+ n == null || n.toggleTrafficInfo(e), a.toggleTrafficInfo(e);
72
+ }, R = (e) => {
73
73
  a.togglePause(e);
74
74
  }, W = (e) => {
75
75
  n == null || n.toggleTrafficObject(e), a.toggleTrafficObject(e);
76
76
  }, X = (e) => {
77
77
  a.updatePanelContent(e);
78
- }, Y = async (e) => (r || (r = new Me(i)), r.addOverlays(e)), ee = (e) => r == null ? void 0 : r.removeOverlaysByType(e), te = (e) => r == null ? void 0 : r.removeOverlaysById(e), ae = () => r == null ? void 0 : r.removeAllOverlays(), ne = () => {
78
+ }, Y = async (e) => (r || (r = new Be(i)), r.addOverlays(e)), ee = (e) => r == null ? void 0 : r.removeOverlaysByType(e), te = (e) => r == null ? void 0 : r.removeOverlaysById(e), ae = () => r == null ? void 0 : r.removeAllOverlays(), ne = () => {
79
79
  r == null || r.showAllOverlays();
80
80
  }, re = (e) => {
81
- u || (u = new Ve(i)), u.updateQueueLength(e);
81
+ u || (u = new ze(i)), u.updateQueueLength(e);
82
82
  }, oe = () => {
83
83
  u == null || u.removeQueueLength();
84
- }, se = async (e, l) => (t || (t = new O(i)), await t.showOpenDriveFromServer(e, l)), ie = async (e) => (t || (t = new O(i)), await t.clearOpenDrive(), await t.showOpenDriveFromFile(e)), ce = async () => await (t == null ? void 0 : t.clearOpenDrive()), le = async (e) => t ? await (t == null ? void 0 : t.findSumo(e)) : {
84
+ }, se = async (e, l) => (t || (t = new C(i)), await t.showOpenDriveFromServer(e, l)), ie = async (e) => (t || (t = new C(i)), await t.clearOpenDrive(), await t.showOpenDriveFromFile(e)), ce = async () => await (t == null ? void 0 : t.clearOpenDrive()), le = async (e) => t ? await (t == null ? void 0 : t.findSumo(e)) : {
85
85
  status: -1,
86
86
  message: "未加载OpenDrive地图"
87
87
  }, ue = async (e) => t ? t.selectSumo(e) : {
@@ -90,17 +90,23 @@ const Ne = { class: "gis-viewer" }, Qe = { style: { position: "absolute", bottom
90
90
  }, me = async (e) => t ? t.unselectSumo(e) : {
91
91
  status: -1,
92
92
  message: "未加载OpenDrive地图"
93
- }, pe = async (e) => t ? await t.getSumoInfo(e) : {
93
+ }, pe = async (e) => t ? await t.geometrySearch(e) : {
94
+ status: -1,
95
+ message: "未加载OpenDrive地图"
96
+ }, ge = async (e) => t ? await t.getSumoInfo(e) : {
97
+ status: -1,
98
+ message: "未加载OpenDrive地图"
99
+ }, fe = async (e) => t ? await (t == null ? void 0 : t.splitLane(e)) : {
94
100
  status: -1,
95
101
  message: "未加载OpenDrive地图"
96
- }, ge = async (e) => t ? await (t == null ? void 0 : t.splitLane(e)) : {
102
+ }, we = async () => t ? t == null ? void 0 : t.clearSplitLane() : {
97
103
  status: -1,
98
104
  message: "未加载OpenDrive地图"
99
- }, fe = (e) => (o || (o = new Be(i)), o.showSignalControlArea(e)), we = () => {
105
+ }, ye = (e) => (o || (o = new Ne(i)), o.showSignalControlArea(e)), ve = () => {
100
106
  o == null || o.clearSignalControlArea();
101
- }, de = async (e) => o ? await o.locateSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, ve = async (e) => o ? await o.highlightSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, ye = () => o ? o.resetHighlight() : { status: -1, message: "未加载信号控制区" }, y = T, w = D;
102
- return A({
103
- mapViewer: I,
107
+ }, de = async (e) => o ? await o.locateSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, he = async (e) => o ? await o.highlightSignalControlArea(e) : { status: -1, message: "未加载信号控制区" }, Se = () => o ? o.resetHighlight() : { status: -1, message: "未加载信号控制区" }, d = T, w = L;
108
+ return D({
109
+ mapViewer: A,
104
110
  setLayerVisibility: M,
105
111
  setMapCenter: _,
106
112
  lookAt: x,
@@ -119,50 +125,52 @@ const Ne = { class: "gis-viewer" }, Qe = { style: { position: "absolute", bottom
119
125
  calCrossIndicatorArea: P,
120
126
  calRoadIndicatorArea: E,
121
127
  connectCarFlow: F,
122
- disconnectCarFlow: R,
123
- handleHoloVehicleTraceData: Z,
124
- clearHoloTrace: q,
125
- handleHoloSignalData: U,
126
- clearHoloSignal: $,
127
- setInterpolate: K,
128
- toggleTrafficInfo: G,
128
+ disconnectCarFlow: Z,
129
+ handleHoloVehicleTraceData: q,
130
+ clearHoloTrace: K,
131
+ handleHoloSignalData: $,
132
+ clearHoloSignal: G,
133
+ setInterpolate: U,
134
+ toggleTrafficInfo: J,
129
135
  toggleTrafficObject: W,
130
136
  toggleVehicleInfo: X,
131
- togglePause: J,
137
+ togglePause: R,
132
138
  updateQueueLength: re,
133
139
  removeQueueLength: oe,
134
140
  showOpenDriveFromServer: se,
135
141
  showOpenDriveFromFile: ie,
136
142
  clearOpenDrive: ce,
143
+ geometrySearchInOpenDrive: pe,
137
144
  findSumoInOpenDrive: le,
138
145
  selectSumoInOpenDrive: ue,
139
146
  unselectSumoInOpenDrive: me,
140
- getSumoInfo: pe,
141
- splitOpenDriveLane: ge,
142
- showSignalControlArea: fe,
143
- clearSignalControlArea: we,
147
+ getSumoInfo: ge,
148
+ splitOpenDriveLane: fe,
149
+ clearSplitOpenDriveLane: we,
150
+ showSignalControlArea: ye,
151
+ clearSignalControlArea: ve,
144
152
  locateSignalControlArea: de,
145
- highlightSignalControlArea: ve,
146
- resetHighlightSignalControlArea: ye
147
- }), (e, l) => (De(), Ie("div", Ne, [
153
+ highlightSignalControlArea: he,
154
+ resetHighlightSignalControlArea: Se
155
+ }), (e, l) => (Ie(), be("div", je, [
148
156
  p("div", {
149
157
  class: "gis-viewer-main",
150
158
  ref_key: "mapContainer",
151
159
  ref: g
152
160
  }, [
153
- Le(p("div", Qe, [
161
+ _e(p("div", Pe, [
154
162
  p("button", {
155
163
  style: { "margin-right": "10px" },
156
- onClick: L
164
+ onClick: I
157
165
  }, " 开始记录 "),
158
166
  p("button", { onClick: b }, "下载日志")
159
167
  ], 512), [
160
- [be, f.value]
168
+ [He, f.value]
161
169
  ])
162
170
  ], 512)
163
171
  ]));
164
172
  }
165
173
  });
166
174
  export {
167
- Je as default
175
+ Xe as default
168
176
  };
@@ -64,8 +64,13 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
64
64
  findSumoInOpenDrive: (params: import("../types").IFindSumoParams) => Promise<import("../types").IResult>;
65
65
  selectSumoInOpenDrive: (params: import("../types").IFindSumoParams) => Promise<import("../types").IResult>;
66
66
  unselectSumoInOpenDrive: (params?: import("../types").IUnselectSumoParams | undefined) => Promise<import("../types").IResult>;
67
+ geometrySearchInOpenDrive: (params: any) => Promise<import("../types").IResult>;
67
68
  getSumoInfo: (params: import("../types").IFindSumoParams) => Promise<import("../types").IResult>;
68
69
  splitOpenDriveLane: (params: import("../types").ISplitOpenDriveLaneParams) => Promise<import("../types").IResult>;
70
+ clearSplitOpenDriveLane: () => Promise<void | {
71
+ status: number;
72
+ message: string;
73
+ }>;
69
74
  showSignalControlArea: (params: any) => import("../types").IResult;
70
75
  clearSignalControlArea: () => void;
71
76
  locateSignalControlArea: (params: {
@@ -10,6 +10,7 @@ export default class OpenDriveRenderer {
10
10
  private highlightLayer;
11
11
  private flashLayer;
12
12
  private drawLayer;
13
+ private splitLaneLayer;
13
14
  private allLaneGraphics;
14
15
  private allRefLineGraphics;
15
16
  private mouseMoveHandler;
@@ -105,5 +106,7 @@ export default class OpenDriveRenderer {
105
106
  * @returns
106
107
  */
107
108
  selectSumo(params: IFindSumoParams): IResult;
109
+ geometrySearch(coordinate: number[][]): Promise<IResult>;
108
110
  splitLane(params: ISplitOpenDriveLaneParams): Promise<IResult>;
111
+ clearSplitLane(): void;
109
112
  }