command-center-v3-common 0.0.47 → 0.0.48
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/dist/{command-center-v3-common-DRvpg7mY.js → command-center-v3-common-DaTPGXyQ.js} +62 -40
- package/dist/command-center-v3-common.js +1 -1
- package/dist/command-center-v3-common.umd.cjs +1 -1
- package/dist/{hy-test-lq66U7Zv-79qBxs-J.js → hy-test-lq66U7Zv-CDYxJl50.js} +1 -1
- package/dist/index.d.ts +17 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
@@ -78314,7 +78314,7 @@ const Elt = blt({
|
|
78314
78314
|
{
|
78315
78315
|
path: "/hy-test",
|
78316
78316
|
name: "hy-test",
|
78317
|
-
component: () => import("./hy-test-lq66U7Zv-
|
78317
|
+
component: () => import("./hy-test-lq66U7Zv-CDYxJl50.js")
|
78318
78318
|
}
|
78319
78319
|
]
|
78320
78320
|
});
|
@@ -101742,13 +101742,13 @@ function A_t({ emit: e, props: t }) {
|
|
101742
101742
|
const n = on(), o = on(), s = H(), { H: r, POI: i, isShowMap: a, layersUrlList: l, mapConfig: c } = RN();
|
101743
101743
|
function d() {
|
101744
101744
|
a && Ke(async () => {
|
101745
|
-
const
|
101746
|
-
let
|
101747
|
-
|
101745
|
+
const w = da.getCache("userInfo");
|
101746
|
+
let b = null;
|
101747
|
+
w != null && w.lng && (w != null && w.lat) && (b = [w.lat, w.lng]), b.length === 0 && (b = null), n.value = await r.map("selectMapLocation", {
|
101748
101748
|
maxZoom: c.maxZoom || 18,
|
101749
101749
|
minZoom: c.minZoom || 13,
|
101750
101750
|
zoom: c.zoom || 13,
|
101751
|
-
center:
|
101751
|
+
center: b,
|
101752
101752
|
zoomControl: !1,
|
101753
101753
|
doubleClickZoom: !0,
|
101754
101754
|
attributionControl: !1,
|
@@ -101758,62 +101758,78 @@ function A_t({ emit: e, props: t }) {
|
|
101758
101758
|
urlTemplates: l,
|
101759
101759
|
layerType: c.satelliteMap
|
101760
101760
|
}), n.value.on("complete", () => {
|
101761
|
-
e("on-map-ready");
|
101762
|
-
}), n.value.on("left-click", (
|
101763
|
-
s.value = null, p({ lng:
|
101761
|
+
e("on-map-ready"), t.latlng && m(t.latlng);
|
101762
|
+
}), n.value.on("left-click", (E) => {
|
101763
|
+
s.value = null, p({ lng: E.latlng.lng, lat: E.latlng.lat });
|
101764
101764
|
});
|
101765
101765
|
});
|
101766
101766
|
}
|
101767
|
-
async function u(
|
101768
|
-
const
|
101769
|
-
if (
|
101770
|
-
const
|
101771
|
-
p({ lng:
|
101767
|
+
async function u(w) {
|
101768
|
+
const b = await i.placeSearch({ keywords: w, offset: 10, page: 1 });
|
101769
|
+
if (b) {
|
101770
|
+
const E = b[0];
|
101771
|
+
p({ lng: E.lng, lat: E.lat });
|
101772
101772
|
} else
|
101773
101773
|
e("on-geographical-position", {});
|
101774
101774
|
}
|
101775
|
-
async function p(
|
101776
|
-
const
|
101777
|
-
if (!
|
101778
|
-
|
101779
|
-
|
101780
|
-
|
101781
|
-
|
101782
|
-
|
101783
|
-
|
101784
|
-
|
101775
|
+
async function p(w) {
|
101776
|
+
const b = await i.reverseGeocoder(w);
|
101777
|
+
if (!(b && b.address.length)) {
|
101778
|
+
h(w), Ht({ type: "warning", message: "未获取到地址信息" });
|
101779
|
+
return;
|
101780
|
+
}
|
101781
|
+
v({
|
101782
|
+
lng: w.lng,
|
101783
|
+
lat: w.lat,
|
101784
|
+
address: b.formatted_address,
|
101785
|
+
name: b.formatted_address,
|
101786
|
+
...b
|
101785
101787
|
});
|
101786
101788
|
}
|
101787
|
-
function h(
|
101788
|
-
s.value =
|
101789
|
+
function h(w) {
|
101790
|
+
s.value = {
|
101791
|
+
lng: w.lng,
|
101792
|
+
lat: w.lat,
|
101793
|
+
address: "",
|
101794
|
+
name: ""
|
101795
|
+
}, e("on-geographical-position", s.value), m();
|
101796
|
+
}
|
101797
|
+
function v(w) {
|
101798
|
+
s.value = w, e("on-geographical-position", w), m();
|
101789
101799
|
}
|
101790
|
-
function
|
101800
|
+
function m(w) {
|
101791
101801
|
o.value && r.removeMarker(n.value, o.value);
|
101792
|
-
|
101793
|
-
|
101802
|
+
let b, E;
|
101803
|
+
w ? (b = w.lat, E = w.lng) : (b = s.value.lat, E = s.value.lng);
|
101804
|
+
let T = {
|
101794
101805
|
icon: '<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAgCAYAAAASYli2AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAFKADAAQAAAABAAAAIAAAAADmfO67AAAEgklEQVRIDbVVXWhcVRCeuXuT3SSmmzQEhFYfRBEapGgfYuiPqYkI/rQBjQo+iK1JLdqKtD6IL3kv9CFBitsKCqYPaRHRVokhJoRKVRQpEsGXPpTkqZifxmw22XvO+M25e9Z7N6lPepa7M2fmmzkzc+acw7TFGBIJbl+nZyzRiyzUKUQ7FMZM8+B/DIgut3fR10PMgKQHp6dEb30vB4ylYRHZrUo4IA/yvKPMNzIBnfxwL88kfXiskw1Oy3EhGSGRTBJ0d54NM58odPM5j6k6HJiUAUu24BWOCmJBnlggFivah6mSCo8SDJ7vCc+ryDk8OiGPijXXhSXrQaqM1QkPmxaIF2MO1vF1ffwU/xqqmYnMGaSarS7pvKpGRyW6eFIz9zqbZZIzUPby6+MbnVGZfnD4mpRY2EogF8gG40FADVZsL6J+DSVwmbn8EgkgusfDjXXpqwaRcMjE1oocGX2u/tNqcESjr34ZjSGaK8gIpUsYABSR9AViqMeim9xn/qFGaHj0cMqZ8zt6KPzGWnvOAmAibGOFKm8M9wSRsfep0CkSFFl9nogsxQJ21WJx3SNPlY+s3RmS4TaL4+AGiKsOqLFSTHlJTDjKLEc2qkkYAOa2AIVaMJGGjyiRuqeYdCV8pNiyNZ2iWITqqfLW2IUAkczBKezhFGfO0ygyH7wwWnoo5QmT/jFpl8i+ryVSZ5463tJ8iMinEPseZ6iZVzYO7L2W7VTfZ6UjdfXZyVyJcn/J+sFyaW0Eu98eL5QwUNMg+I4PfVLcK2KvKaD2IMRG+s8RTiCWkozHqDTtjijgYJ/GQ89eWJmBcn+6qzYvgIsAiwpq78zgEDx+jjLNXD3a/ASaU7PMnBbDZVdktINSV+RK4X2fxjVWvfacJfRwhXKZJfOe+nIOr7zR+BMuh9PaU84I1PWXbhZ4AY0/zyuNF3ZU5JT6iIPT/8roHblzllne1TptPWqqFhf27MTb+VMeHxfDz0CfHF4q4FIYUFGyRglIlYVxYfKdlmNVARiXclJw4ET+TfTWRZ+6p5q69pynqN/F/Sfzx5O2ym+KUIXdUxLan5cuQ3u42ksVsCYdMH9Bj+X7pw9ypPjk2BShKhXYlG15GdFMuB3WY6nHU09HJN821OVf2cqZ2m4ZoSp0PP+RNC4sLI7jZOzTOSK7tn1769NfHeO7XxwKTA/cN0PE3bC/PUvBjg5qWalbGlNMczl8aX72nqX2DrLTKClwqIC/qhRRE+GeQalrbqSmKEvbgg3K53LUiHszizxwu2MIRWFA66USFW09LYfrdGelSKu/FLjs9PiLgTrrl0xLG21Doz6M1+oRaB5A/VrxQOMtiXEoOO5QWqsLaREWN/Gs/dbSQH/AdokuMfog4bC7A0d0kZoyObofh2A3otqFrw1NjheN3MOP/AxkeDLpT9g2Q7hsizQH2+XpS+ou4XB6lqTnQVpFirfg4AbSW0F1WsE3YAGXiUaIBdbwLcLxTfTMLW6kVbWN3f0PNdyibdK7vGsnZUp5xIORWyb5fY7Mv+2yj/Q/o38DhqCjJovBnOsAAAAASUVORK5CYII=" style="width: 20px; height: 32px;" />',
|
101795
101806
|
zIndexOffset: 10,
|
101796
101807
|
iconAnchor: [-20, -16]
|
101797
101808
|
};
|
101798
|
-
t.markerItemFn && (
|
101809
|
+
t.markerItemFn && (T = t.markerItemFn()), n.value.setZoom(18), n.value.panTo([E, b]), o.value = r.marker(
|
101799
101810
|
n.value,
|
101800
|
-
[
|
101801
|
-
|
101811
|
+
[b, E],
|
101812
|
+
T
|
101802
101813
|
);
|
101803
101814
|
}
|
101804
|
-
function
|
101805
|
-
o.value && r.
|
101815
|
+
function y() {
|
101816
|
+
o.value && r.removeMarker(n.value, o.value);
|
101817
|
+
}
|
101818
|
+
function _(w) {
|
101819
|
+
o.value && r.updateMarkerIcon(o.value, w);
|
101806
101820
|
}
|
101807
101821
|
return {
|
101808
101822
|
H: r,
|
101809
101823
|
map: n,
|
101824
|
+
POI: i,
|
101810
101825
|
marker: o,
|
101811
101826
|
isShowMap: a,
|
101812
101827
|
initMap: d,
|
101813
|
-
geographicalPositionFn:
|
101828
|
+
geographicalPositionFn: v,
|
101814
101829
|
throughCoordinatePosition: p,
|
101815
101830
|
placeSearchFn: u,
|
101816
|
-
setContentFn:
|
101831
|
+
setContentFn: _,
|
101832
|
+
removeMarker: y
|
101817
101833
|
};
|
101818
101834
|
}
|
101819
101835
|
const M_t = { class: "w-full h-full relative" }, D_t = {
|
@@ -101824,11 +101840,12 @@ const M_t = { class: "w-full h-full relative" }, D_t = {
|
|
101824
101840
|
}, R_t = /* @__PURE__ */ me({
|
101825
101841
|
__name: "select-map-location",
|
101826
101842
|
props: {
|
101827
|
-
markerItemFn: { type: Function, default: null }
|
101843
|
+
markerItemFn: { type: Function, default: null },
|
101844
|
+
latlng: { default: null }
|
101828
101845
|
},
|
101829
101846
|
emits: ["on-geographical-position", "on-map-ready"],
|
101830
101847
|
setup(e, { expose: t, emit: n }) {
|
101831
|
-
const o = e, s = n, { isShowMap: r, initMap: i, throughCoordinatePosition: a, placeSearchFn: l, setContentFn: c } = A_t({ emit: s, props: o });
|
101848
|
+
const o = e, s = n, { isShowMap: r, initMap: i, throughCoordinatePosition: a, placeSearchFn: l, setContentFn: c, removeMarker: d, H: u, map: p, POI: h } = A_t({ emit: s, props: o });
|
101832
101849
|
return ut(() => {
|
101833
101850
|
i();
|
101834
101851
|
}), t({
|
@@ -101836,16 +101853,21 @@ const M_t = { class: "w-full h-full relative" }, D_t = {
|
|
101836
101853
|
// 根据经纬度查询地址名称
|
101837
101854
|
placeSearchFn: l,
|
101838
101855
|
// 根据地名查询经纬度
|
101839
|
-
setContentFn: c
|
101856
|
+
setContentFn: c,
|
101840
101857
|
// 已有marker更新marker样式
|
101841
|
-
|
101858
|
+
removeMarker: d,
|
101859
|
+
// 删除marker
|
101860
|
+
H: u,
|
101861
|
+
map: p,
|
101862
|
+
POI: h
|
101863
|
+
}), (v, m) => (F(), X("div", M_t, [
|
101842
101864
|
f(r) ? (F(), X("div", D_t, null, 512)) : (F(), ke(YL, {
|
101843
101865
|
key: 0,
|
101844
101866
|
class: "absolute top-0 left-0 z-[2]"
|
101845
101867
|
}))
|
101846
101868
|
]));
|
101847
101869
|
}
|
101848
|
-
}), sTt = /* @__PURE__ */ Nr(R_t, [["__scopeId", "data-v-
|
101870
|
+
}), sTt = /* @__PURE__ */ Nr(R_t, [["__scopeId", "data-v-e69b3725"]]), F_t = {
|
101849
101871
|
viewBox: "0 0 1024 1024",
|
101850
101872
|
width: "1.2em",
|
101851
101873
|
height: "1.2em"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { D as s, _ as y, i as H, j as r, k as o, l as t, m as i, n as c, p as l, q as n, t as p, v as d, w as T, x as u, y as m, z as S, A as D, B as C, C as g, E as M, F as h, G as v, I as A, J as B, K as E, L as F, N as O, O as P, Q as k, R as x } from "./command-center-v3-common-
|
1
|
+
import { D as s, _ as y, i as H, j as r, k as o, l as t, m as i, n as c, p as l, q as n, t as p, v as d, w as T, x as u, y as m, z as S, A as D, B as C, C as g, E as M, F as h, G as v, I as A, J as B, K as E, L as F, N as O, O as P, Q as k, R as x } from "./command-center-v3-common-DaTPGXyQ.js";
|
2
2
|
export {
|
3
3
|
s as DeviceEnum,
|
4
4
|
y as HyAcquisitionStationTree,
|