gisviewer-vue3-arcgis 1.0.143 → 1.0.144
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 +0 -17
- package/es/src/gis-map/gis-map.vue.mjs +110 -115
- package/es/src/gis-map/index.d.ts +0 -17
- package/es/src/gis-map/stores/appData.d.ts +1 -0
- package/es/src/gis-map/stores/appData.mjs +2 -1
- package/es/src/gis-map/utils/open-drive-renderer/index.mjs +231 -215
- package/es/src/gis-map/utils/sketchView.mjs +16 -11
- package/es/style.css +1 -1
- package/lib/src/gis-map/gis-map.vue.d.ts +0 -17
- package/lib/src/gis-map/gis-map.vue.js +1 -1
- package/lib/src/gis-map/index.d.ts +0 -17
- package/lib/src/gis-map/stores/appData.d.ts +1 -0
- package/lib/src/gis-map/stores/appData.js +1 -1
- package/lib/src/gis-map/utils/open-drive-renderer/index.js +1 -1
- package/lib/src/gis-map/utils/sketchView.js +1 -1
- package/package.json +1 -1
- package/es/_virtual/_plugin-vue_export-helper.mjs +0 -9
- package/es/src/gis-map/utils/components/sketch-tool.vue.d.ts +0 -18
- package/es/src/gis-map/utils/components/sketch-tool.vue.mjs +0 -7
- package/es/src/gis-map/utils/components/sketch-tool.vue2.mjs +0 -48
- package/es/src/gis-map/utils/components/sketch-tool.vue3.mjs +0 -4
- package/lib/_virtual/_plugin-vue_export-helper.js +0 -1
- package/lib/src/gis-map/utils/components/sketch-tool.vue.d.ts +0 -18
- package/lib/src/gis-map/utils/components/sketch-tool.vue.js +0 -1
- package/lib/src/gis-map/utils/components/sketch-tool.vue2.js +0 -1
- package/lib/src/gis-map/utils/components/sketch-tool.vue3.js +0 -1
|
@@ -30,7 +30,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
30
30
|
openDriveRenderer: OpenDriveRenderer;
|
|
31
31
|
signalControlAreaController: SignalControlAreaController;
|
|
32
32
|
showLogDiv: import("vue").Ref<boolean>;
|
|
33
|
-
showGroupSelect: import("vue").Ref<boolean>;
|
|
34
33
|
mapViewer: import("vue").ComputedRef<MapView | SceneView>;
|
|
35
34
|
startSaveTrackLog: () => void;
|
|
36
35
|
downloadTrackLog: () => void;
|
|
@@ -89,22 +88,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
89
88
|
resetHighlightSignalControlArea: () => import("../types").IResult;
|
|
90
89
|
props: any;
|
|
91
90
|
emit: (event: "mapLoaded" | "markerClick" | "mapClick", ...args: any[]) => void;
|
|
92
|
-
sketchTool: import("vue").DefineComponent<{
|
|
93
|
-
view: {
|
|
94
|
-
type: null;
|
|
95
|
-
required: true;
|
|
96
|
-
};
|
|
97
|
-
}, {
|
|
98
|
-
props: any;
|
|
99
|
-
sketchVM: __esri.SketchViewModel;
|
|
100
|
-
resetButtonHandler: () => void;
|
|
101
|
-
geometrySelectionHandler: (event: any) => void;
|
|
102
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
103
|
-
view: {
|
|
104
|
-
type: null;
|
|
105
|
-
required: true;
|
|
106
|
-
};
|
|
107
|
-
}>>, {}, {}>;
|
|
108
91
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("mapLoaded" | "markerClick" | "mapClick")[], "mapLoaded" | "markerClick" | "mapClick", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
109
92
|
config: {
|
|
110
93
|
type: StringConstructor;
|
|
@@ -1,173 +1,168 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
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";
|
|
3
3
|
import "./style/index.css";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
const Fe = { class: "gis-viewer" }, Re = { style: { position: "absolute", bottom: "10px", left: "10px" } }, at = /* @__PURE__ */ ke({
|
|
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";
|
|
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({
|
|
14
13
|
__name: "gis-map",
|
|
15
14
|
props: {
|
|
16
15
|
config: {},
|
|
17
16
|
assetsRoot: {}
|
|
18
17
|
},
|
|
19
18
|
emits: ["mapLoaded", "markerClick", "mapClick"],
|
|
20
|
-
setup(
|
|
21
|
-
const g =
|
|
22
|
-
let
|
|
23
|
-
const f =
|
|
24
|
-
|
|
25
|
-
if (
|
|
19
|
+
setup(T, { expose: A, emit: D }) {
|
|
20
|
+
const g = S(null);
|
|
21
|
+
let i, c, s, n, a, r, u, t, o;
|
|
22
|
+
const f = S(!1);
|
|
23
|
+
Oe(async () => {
|
|
24
|
+
if (_e(), !g.value)
|
|
26
25
|
return;
|
|
27
26
|
document.addEventListener("keydown", (m) => {
|
|
28
27
|
m.ctrlKey && m.key === "i" && (f.value = !f.value);
|
|
29
28
|
});
|
|
30
|
-
const e =
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
|
|
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({
|
|
34
33
|
container: g.value,
|
|
35
|
-
markerClickCallback: (m, d,
|
|
36
|
-
|
|
34
|
+
markerClickCallback: (m, d, v, Se) => {
|
|
35
|
+
w("markerClick", m, d, v, Se);
|
|
37
36
|
},
|
|
38
|
-
mapClickCallback: (m, d,
|
|
39
|
-
|
|
37
|
+
mapClickCallback: (m, d, v) => {
|
|
38
|
+
w("mapClick", m, d, v);
|
|
40
39
|
}
|
|
41
|
-
}), a = new
|
|
42
|
-
}),
|
|
40
|
+
}), a = new He(i), await a.init(), w("mapLoaded");
|
|
41
|
+
}), Te(() => {
|
|
43
42
|
o == null || o.clearSignalControlArea(), t == null || t.clearOpenDrive(), a == null || a.clearHoloTrace(), a == null || a.clearHoloSignal(), n == null || n.disconnectTrafficFlow();
|
|
44
43
|
});
|
|
45
|
-
const
|
|
46
|
-
const e =
|
|
44
|
+
const I = Ae(() => i), L = () => {
|
|
45
|
+
const e = C.useAppDataStore;
|
|
47
46
|
e.saveTrackLog = !0;
|
|
48
|
-
},
|
|
47
|
+
}, b = () => {
|
|
49
48
|
a.downloadTrackLog();
|
|
50
|
-
},
|
|
49
|
+
}, _ = async (e) => await c.setMapCenter(e), H = async (e) => await c.setMapCamera(e), x = async (e) => await c.lookAt(e), M = (e) => c.setLayerVisibility(e), V = (e, l) => c.requestCoordinateTransform(e, l), B = (e) => {
|
|
51
50
|
c.cancelCoordinateTransform(e);
|
|
52
|
-
},
|
|
51
|
+
}, z = (e) => {
|
|
53
52
|
c.setMapZoomRange(e);
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
n || (n = new
|
|
59
|
-
},
|
|
53
|
+
}, N = (e) => (s || (s = new k(i)), s.showLaneNumber(e)), Q = () => {
|
|
54
|
+
s == null || s.clearLaneNumber();
|
|
55
|
+
}, j = async (e) => (s || (s = new k(i)), await s.initializeSearch(e)), P = async () => s == null ? void 0 : s.calCrossIndicatorArea(), E = async () => {
|
|
56
|
+
}, F = async (e, l) => {
|
|
57
|
+
n || (n = new ze(i)), n.connectTrafficFlow(e, l);
|
|
58
|
+
}, R = () => {
|
|
60
59
|
n == null || n.disconnectTrafficFlow();
|
|
61
|
-
},
|
|
60
|
+
}, Z = (e) => {
|
|
62
61
|
a.handleVehicleTraceData(e);
|
|
63
|
-
},
|
|
62
|
+
}, q = () => {
|
|
64
63
|
a.clearHoloTrace();
|
|
65
|
-
},
|
|
64
|
+
}, K = (e) => {
|
|
66
65
|
a.setInterpolate(e);
|
|
67
|
-
},
|
|
66
|
+
}, U = async (e) => {
|
|
68
67
|
await a.handleSignalData(e);
|
|
69
|
-
},
|
|
68
|
+
}, $ = () => {
|
|
70
69
|
a.clearHoloSignal();
|
|
71
|
-
},
|
|
70
|
+
}, G = (e) => {
|
|
72
71
|
n == null || n.toggleTrafficInfo(e), a.toggleTrafficInfo(e);
|
|
73
|
-
},
|
|
72
|
+
}, J = (e) => {
|
|
74
73
|
a.togglePause(e);
|
|
75
|
-
},
|
|
74
|
+
}, W = (e) => {
|
|
76
75
|
n == null || n.toggleTrafficObject(e), a.toggleTrafficObject(e);
|
|
77
|
-
},
|
|
76
|
+
}, X = (e) => {
|
|
78
77
|
a.updatePanelContent(e);
|
|
79
|
-
},
|
|
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 = () => {
|
|
80
79
|
r == null || r.showAllOverlays();
|
|
81
|
-
},
|
|
82
|
-
u || (u = new
|
|
83
|
-
},
|
|
80
|
+
}, re = (e) => {
|
|
81
|
+
u || (u = new Ve(i)), u.updateQueueLength(e);
|
|
82
|
+
}, oe = () => {
|
|
84
83
|
u == null || u.removeQueueLength();
|
|
85
|
-
},
|
|
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)) : {
|
|
86
85
|
status: -1,
|
|
87
86
|
message: "未加载OpenDrive地图"
|
|
88
|
-
},
|
|
87
|
+
}, ue = async (e) => t ? t.selectSumo(e) : {
|
|
89
88
|
status: -1,
|
|
90
89
|
message: "未加载OpenDrive地图"
|
|
91
|
-
},
|
|
90
|
+
}, me = async (e) => t ? t.unselectSumo(e) : {
|
|
92
91
|
status: -1,
|
|
93
92
|
message: "未加载OpenDrive地图"
|
|
94
|
-
},
|
|
93
|
+
}, pe = async (e) => t ? await t.getSumoInfo(e) : {
|
|
95
94
|
status: -1,
|
|
96
95
|
message: "未加载OpenDrive地图"
|
|
97
|
-
},
|
|
96
|
+
}, ge = async (e) => t ? await (t == null ? void 0 : t.splitLane(e)) : {
|
|
98
97
|
status: -1,
|
|
99
98
|
message: "未加载OpenDrive地图"
|
|
100
|
-
},
|
|
99
|
+
}, fe = (e) => (o || (o = new Be(i)), o.showSignalControlArea(e)), we = () => {
|
|
101
100
|
o == null || o.clearSignalControlArea();
|
|
102
|
-
},
|
|
103
|
-
return
|
|
104
|
-
mapViewer:
|
|
105
|
-
setLayerVisibility:
|
|
106
|
-
setMapCenter:
|
|
107
|
-
lookAt:
|
|
108
|
-
setMapCamera:
|
|
109
|
-
setMapZoomRange:
|
|
110
|
-
requestCoordinateTransform:
|
|
111
|
-
cancelCoordinateTransform:
|
|
112
|
-
addOverlays:
|
|
113
|
-
showAllOverlays:
|
|
114
|
-
removeOverlaysByType:
|
|
115
|
-
removeOverlaysById:
|
|
116
|
-
removeAllOverlays:
|
|
117
|
-
showLaneNumber:
|
|
118
|
-
clearLaneNumber:
|
|
119
|
-
initializeAreaTool:
|
|
120
|
-
calCrossIndicatorArea:
|
|
121
|
-
calRoadIndicatorArea:
|
|
122
|
-
connectCarFlow:
|
|
123
|
-
disconnectCarFlow:
|
|
124
|
-
handleHoloVehicleTraceData:
|
|
125
|
-
clearHoloTrace:
|
|
126
|
-
handleHoloSignalData:
|
|
127
|
-
clearHoloSignal:
|
|
128
|
-
setInterpolate:
|
|
129
|
-
toggleTrafficInfo:
|
|
130
|
-
toggleTrafficObject:
|
|
131
|
-
toggleVehicleInfo:
|
|
132
|
-
togglePause:
|
|
133
|
-
updateQueueLength:
|
|
134
|
-
removeQueueLength:
|
|
135
|
-
showOpenDriveFromServer:
|
|
136
|
-
showOpenDriveFromFile:
|
|
137
|
-
clearOpenDrive:
|
|
138
|
-
findSumoInOpenDrive:
|
|
139
|
-
selectSumoInOpenDrive:
|
|
140
|
-
unselectSumoInOpenDrive:
|
|
141
|
-
getSumoInfo:
|
|
142
|
-
splitOpenDriveLane:
|
|
143
|
-
showSignalControlArea:
|
|
144
|
-
clearSignalControlArea:
|
|
145
|
-
locateSignalControlArea:
|
|
146
|
-
highlightSignalControlArea:
|
|
147
|
-
resetHighlightSignalControlArea:
|
|
148
|
-
}), (e, l) => (
|
|
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,
|
|
104
|
+
setLayerVisibility: M,
|
|
105
|
+
setMapCenter: _,
|
|
106
|
+
lookAt: x,
|
|
107
|
+
setMapCamera: H,
|
|
108
|
+
setMapZoomRange: z,
|
|
109
|
+
requestCoordinateTransform: V,
|
|
110
|
+
cancelCoordinateTransform: B,
|
|
111
|
+
addOverlays: Y,
|
|
112
|
+
showAllOverlays: ne,
|
|
113
|
+
removeOverlaysByType: ee,
|
|
114
|
+
removeOverlaysById: te,
|
|
115
|
+
removeAllOverlays: ae,
|
|
116
|
+
showLaneNumber: N,
|
|
117
|
+
clearLaneNumber: Q,
|
|
118
|
+
initializeAreaTool: j,
|
|
119
|
+
calCrossIndicatorArea: P,
|
|
120
|
+
calRoadIndicatorArea: E,
|
|
121
|
+
connectCarFlow: F,
|
|
122
|
+
disconnectCarFlow: R,
|
|
123
|
+
handleHoloVehicleTraceData: Z,
|
|
124
|
+
clearHoloTrace: q,
|
|
125
|
+
handleHoloSignalData: U,
|
|
126
|
+
clearHoloSignal: $,
|
|
127
|
+
setInterpolate: K,
|
|
128
|
+
toggleTrafficInfo: G,
|
|
129
|
+
toggleTrafficObject: W,
|
|
130
|
+
toggleVehicleInfo: X,
|
|
131
|
+
togglePause: J,
|
|
132
|
+
updateQueueLength: re,
|
|
133
|
+
removeQueueLength: oe,
|
|
134
|
+
showOpenDriveFromServer: se,
|
|
135
|
+
showOpenDriveFromFile: ie,
|
|
136
|
+
clearOpenDrive: ce,
|
|
137
|
+
findSumoInOpenDrive: le,
|
|
138
|
+
selectSumoInOpenDrive: ue,
|
|
139
|
+
unselectSumoInOpenDrive: me,
|
|
140
|
+
getSumoInfo: pe,
|
|
141
|
+
splitOpenDriveLane: ge,
|
|
142
|
+
showSignalControlArea: fe,
|
|
143
|
+
clearSignalControlArea: we,
|
|
144
|
+
locateSignalControlArea: de,
|
|
145
|
+
highlightSignalControlArea: ve,
|
|
146
|
+
resetHighlightSignalControlArea: ye
|
|
147
|
+
}), (e, l) => (De(), Ie("div", Ne, [
|
|
149
148
|
p("div", {
|
|
150
149
|
class: "gis-viewer-main",
|
|
151
150
|
ref_key: "mapContainer",
|
|
152
151
|
ref: g
|
|
153
152
|
}, [
|
|
154
|
-
|
|
153
|
+
Le(p("div", Qe, [
|
|
155
154
|
p("button", {
|
|
156
155
|
style: { "margin-right": "10px" },
|
|
157
|
-
onClick:
|
|
156
|
+
onClick: L
|
|
158
157
|
}, " 开始记录 "),
|
|
159
|
-
p("button", { onClick:
|
|
158
|
+
p("button", { onClick: b }, "下载日志")
|
|
160
159
|
], 512), [
|
|
161
|
-
[
|
|
162
|
-
])
|
|
163
|
-
w.value ? (O(), He(Be, {
|
|
164
|
-
key: 0,
|
|
165
|
-
view: xe(s)
|
|
166
|
-
}, null, 8, ["view"])) : Me("", !0)
|
|
160
|
+
[be, f.value]
|
|
161
|
+
])
|
|
167
162
|
], 512)
|
|
168
163
|
]));
|
|
169
164
|
}
|
|
170
165
|
});
|
|
171
166
|
export {
|
|
172
|
-
|
|
167
|
+
Je as default
|
|
173
168
|
};
|
|
@@ -19,7 +19,6 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
19
19
|
openDriveRenderer: import("./utils/open-drive-renderer").default;
|
|
20
20
|
signalControlAreaController: import("./utils/signal-control-area-controller").default;
|
|
21
21
|
showLogDiv: import("vue").Ref<boolean>;
|
|
22
|
-
showGroupSelect: import("vue").Ref<boolean>;
|
|
23
22
|
mapViewer: import("vue").ComputedRef<__esri.MapView | __esri.SceneView>;
|
|
24
23
|
startSaveTrackLog: () => void;
|
|
25
24
|
downloadTrackLog: () => void;
|
|
@@ -78,22 +77,6 @@ export declare const GisMap: import("@easyest/utils/dist/lib/withinstall").SFCWi
|
|
|
78
77
|
resetHighlightSignalControlArea: () => import("../types").IResult;
|
|
79
78
|
props: any;
|
|
80
79
|
emit: (event: "mapLoaded" | "markerClick" | "mapClick", ...args: any[]) => void;
|
|
81
|
-
sketchTool: import("vue").DefineComponent<{
|
|
82
|
-
view: {
|
|
83
|
-
type: null;
|
|
84
|
-
required: true;
|
|
85
|
-
};
|
|
86
|
-
}, {
|
|
87
|
-
props: any;
|
|
88
|
-
sketchVM: __esri.SketchViewModel;
|
|
89
|
-
resetButtonHandler: () => void;
|
|
90
|
-
geometrySelectionHandler: (event: any) => void;
|
|
91
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
92
|
-
view: {
|
|
93
|
-
type: null;
|
|
94
|
-
required: true;
|
|
95
|
-
};
|
|
96
|
-
}>>, {}, {}>;
|
|
97
80
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("mapLoaded" | "markerClick" | "mapClick")[], "mapLoaded" | "markerClick" | "mapClick", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
98
81
|
config: {
|
|
99
82
|
type: StringConstructor;
|