@pusdn/pgz-comp-elep 0.2.7 → 0.2.9

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.
@@ -17595,19 +17595,19 @@ const TS = /* @__PURE__ */ rr(CS, [["__scopeId", "data-v-b6ef6fb1"]]), xS = xt(T
17595
17595
  var R;
17596
17596
  switch (n.value.loading = !1, n.value.map = new window.rawWindow.T.Map("map__container"), t.mapType) {
17597
17597
  case 1:
17598
- n.value.map.setMapType(window.rawWindow.TMAP_SATELLITE_MAP);
17598
+ n.value.map.setMapType(window.TMAP_SATELLITE_MAP);
17599
17599
  break;
17600
17600
  case 2:
17601
- n.value.map.setMapType(window.rawWindow.TMAP_HYBRID_MAP);
17601
+ n.value.map.setMapType(window.TMAP_HYBRID_MAP);
17602
17602
  break;
17603
17603
  case 3:
17604
- n.value.map.setMapType(window.rawWindow.TMAP_TERRAIN_MAP);
17604
+ n.value.map.setMapType(window.TMAP_TERRAIN_MAP);
17605
17605
  break;
17606
17606
  case 4:
17607
- n.value.map.setMapType(window.rawWindow.TMAP_TERRAIN_HYBRID_MAP);
17607
+ n.value.map.setMapType(window.TMAP_TERRAIN_HYBRID_MAP);
17608
17608
  break;
17609
17609
  default:
17610
- n.value.map.setMapType(window.rawWindow.TMAP_NORMAL_MAP);
17610
+ n.value.map.setMapType(window.TMAP_NORMAL_MAP);
17611
17611
  }
17612
17612
  let F = new window.rawWindow.T.LngLat(116.40969, 39.89945);
17613
17613
  s.value && l.value && (F = new window.rawWindow.T.LngLat(s.value, l.value)), n.value.map.centerAndZoom(F, t.zoom);
@@ -17619,9 +17619,9 @@ const TS = /* @__PURE__ */ rr(CS, [["__scopeId", "data-v-b6ef6fb1"]]), xS = xt(T
17619
17619
  M.preventDefault(), (M.deltaY > 0 ? "up" : "down") === "up" ? n.value.map.zoomOut() : n.value.map.zoomIn();
17620
17620
  });
17621
17621
  const D = new window.rawWindow.T.Control.Scale();
17622
- D.setPosition(window.rawWindow.T_ANCHOR_BOTTOM_RIGHT), n.value.map.addControl(D);
17622
+ D.setPosition(window.T_ANCHOR_BOTTOM_RIGHT), n.value.map.addControl(D);
17623
17623
  const k = new window.rawWindow.T.Control.Zoom();
17624
- k.setPosition(window.rawWindow.T_ANCHOR_BOTTOM_RIGHT), n.value.map.addControl(k), n.value.geocode = new window.rawWindow.T.Geocoder(), n.value.map.addEventListener("click", (M) => {
17624
+ k.setPosition(window.T_ANCHOR_BOTTOM_RIGHT), n.value.map.addControl(k), n.value.geocode = new window.rawWindow.T.Geocoder(), n.value.map.addEventListener("click", (M) => {
17625
17625
  y();
17626
17626
  const V = M.lnglat, H = V.getLng(), j = V.getLat();
17627
17627
  P(H, j), n.value.geocode.getLocation(M.lnglat, I);
@@ -17761,7 +17761,7 @@ const TS = /* @__PURE__ */ rr(CS, [["__scopeId", "data-v-b6ef6fb1"]]), xS = xt(T
17761
17761
  };
17762
17762
  }
17763
17763
  });
17764
- const LS = /* @__PURE__ */ rr(IS, [["__scopeId", "data-v-5a72d187"]]), MS = xt(LS), RS = {
17764
+ const LS = /* @__PURE__ */ rr(IS, [["__scopeId", "data-v-c01fddf3"]]), MS = xt(LS), RS = {
17765
17765
  closable: {
17766
17766
  type: Boolean,
17767
17767
  default: !1
@@ -17845,8 +17845,8 @@ const LS = /* @__PURE__ */ rr(IS, [["__scopeId", "data-v-5a72d187"]]), MS = xt(L
17845
17845
  var R;
17846
17846
  n.value.loading = !0;
17847
17847
  try {
17848
- n.value.map = new window.T.Map("map__container");
17849
- const M = Number(t.mapType), V = new window.T.Control.MapType();
17848
+ n.value.map = new window.rawWindow.T.Map("map__container");
17849
+ const M = Number(t.mapType), V = new window.rawWindow.T.Control.MapType();
17850
17850
  switch (n.value.map.addControl(V), M) {
17851
17851
  case 1:
17852
17852
  n.value.map.setMapType(window.TMAP_SATELLITE_MAP);
@@ -17863,7 +17863,7 @@ const LS = /* @__PURE__ */ rr(IS, [["__scopeId", "data-v-5a72d187"]]), MS = xt(L
17863
17863
  default:
17864
17864
  n.value.map.setMapType(window.TMAP_NORMAL_MAP);
17865
17865
  }
17866
- const H = new window.T.LngLat(116.40969, 39.89945);
17866
+ const H = new window.rawWindow.T.LngLat(116.40969, 39.89945);
17867
17867
  n.value.map.centerAndZoom(H, t.zoom);
17868
17868
  const j = document.getElementsByClassName("tdt-control-copyright tdt-control");
17869
17869
  j.length > 0 && (j[0].style.display = "none"), n.value.map.disableScrollWheelZoom(), (R = document.getElementById("map__container")) == null || R.addEventListener("wheel", (ie) => {
@@ -17873,7 +17873,7 @@ const LS = /* @__PURE__ */ rr(IS, [["__scopeId", "data-v-5a72d187"]]), MS = xt(L
17873
17873
  pageCapacity: 10,
17874
17874
  onSearchComplete: p
17875
17875
  };
17876
- n.value.localsearch = new window.T.LocalSearch(n.value.map, J);
17876
+ n.value.localsearch = new window.rawWindow.T.LocalSearch(n.value.map, J);
17877
17877
  const W = {
17878
17878
  showLabel: !1,
17879
17879
  color: "blue",
@@ -17887,9 +17887,9 @@ const LS = /* @__PURE__ */ rr(IS, [["__scopeId", "data-v-5a72d187"]]), MS = xt(L
17887
17887
  const Fe = ie.currentPolygon;
17888
17888
  console.log("\u591A\u8FB9\u5F62\u5750\u6807:", Fe), console.log("\u591A\u8FB9\u5F62\u5750\u6807:", JSON.stringify(ie.currentLnglats)), ie.currentPolygon.addEventListener("click", k);
17889
17889
  });
17890
- const ye = new window.T.Control.Scale();
17890
+ const ye = new window.rawWindow.T.Control.Scale();
17891
17891
  ye.setPosition(window.T_ANCHOR_BOTTOM_RIGHT), n.value.map.addControl(ye);
17892
- const fe = new window.T.Control.Zoom();
17892
+ const fe = new window.rawWindow.T.Control.Zoom();
17893
17893
  fe.setPosition(window.T_ANCHOR_BOTTOM_RIGHT), n.value.map.addControl(fe), n.value.loading = !1;
17894
17894
  } catch (M) {
17895
17895
  console.error("\u521D\u59CB\u5316\u5730\u56FE\u5931\u8D25:", M), n.value.loading = !1, Gt.error("\u521D\u59CB\u5316\u5730\u56FE\u5931\u8D25");
@@ -17925,9 +17925,9 @@ const LS = /* @__PURE__ */ rr(IS, [["__scopeId", "data-v-5a72d187"]]), MS = xt(L
17925
17925
  const M = [];
17926
17926
  let V = "";
17927
17927
  R.forEach((H, j) => {
17928
- const J = H.lonlat.split(","), W = new window.T.LngLat(J[0], J[1]), ye = new window.T.Marker(W);
17928
+ const J = H.lonlat.split(","), W = new window.rawWindow.T.LngLat(J[0], J[1]), ye = new window.rawWindow.T.Marker(W);
17929
17929
  n.value.map.addOverLay(ye);
17930
- const fe = `\u540D\u79F0: ${H.name}<br/>\u5730\u5740: ${H.address}`, ie = new window.T.InfoWindow(fe, { autoPan: !0 });
17930
+ const fe = `\u540D\u79F0: ${H.name}<br/>\u5730\u5740: ${H.address}`, ie = new window.rawWindow.T.InfoWindow(fe, { autoPan: !0 });
17931
17931
  ye.addEventListener("click", () => {
17932
17932
  ye.openInfoWindow(ie);
17933
17933
  }), V += `<p>${j + 1}. <a href="javascript:void(0);" @click="() => showPosition(marker, infoHtml)">${H.name}</a></p>`, M.push(W);
@@ -17942,10 +17942,10 @@ const LS = /* @__PURE__ */ rr(IS, [["__scopeId", "data-v-5a72d187"]]), MS = xt(L
17942
17942
  for (let H = 0; H < V.length; H++) {
17943
17943
  const j = [], J = V[H].region.split(",");
17944
17944
  for (let ye = 0; ye < J.length; ye++) {
17945
- const fe = J[ye].split(" "), ie = new window.T.LngLat(fe[0], fe[1]);
17945
+ const fe = J[ye].split(" "), ie = new window.rawWindow.T.LngLat(fe[0], fe[1]);
17946
17946
  j.push(ie), M.push(ie);
17947
17947
  }
17948
- const W = new window.T.Polyline(j, {
17948
+ const W = new window.rawWindow.T.Polyline(j, {
17949
17949
  color: "blue",
17950
17950
  weight: 3,
17951
17951
  opacity: 1,
@@ -17957,7 +17957,7 @@ const LS = /* @__PURE__ */ rr(IS, [["__scopeId", "data-v-5a72d187"]]), MS = xt(L
17957
17957
  }
17958
17958
  if (R.lonlat) {
17959
17959
  const M = R.lonlat.split(",");
17960
- n.value.map.panTo(new window.T.LngLat(M[0], M[1]));
17960
+ n.value.map.panTo(new window.rawWindow.T.LngLat(M[0], M[1]));
17961
17961
  }
17962
17962
  }
17963
17963
  }, w = (R) => {
@@ -17972,7 +17972,7 @@ const LS = /* @__PURE__ */ rr(IS, [["__scopeId", "data-v-5a72d187"]]), MS = xt(L
17972
17972
  if (M)
17973
17973
  for (let H = 0; H < M.length; H++) {
17974
17974
  const j = M[H];
17975
- if (j instanceof window.T.Polygon) {
17975
+ if (j instanceof window.rawWindow.T.Polygon) {
17976
17976
  const W = j.getLngLats().map(
17977
17977
  (ye) => ye.map((fe) => [fe.lng, fe.lat])
17978
17978
  );
@@ -18031,7 +18031,7 @@ const LS = /* @__PURE__ */ rr(IS, [["__scopeId", "data-v-5a72d187"]]), MS = xt(L
18031
18031
  if (c(), console.log(JSON.stringify(n.value.allData)), n.value.allData && n.value.allData.allPolygonArr) {
18032
18032
  const R = [];
18033
18033
  for (let M = 0; M < n.value.allData.allPolygonArr.length; M++) {
18034
- const V = [], H = n.value.allData.allPolygonArr[M].map((J) => (V.push({ lng: J[0], lat: J[1] }), new window.T.LngLat(J[0], J[1]))), j = new window.T.Polygon(H, {
18034
+ const V = [], H = n.value.allData.allPolygonArr[M].map((J) => (V.push({ lng: J[0], lat: J[1] }), new window.rawWindow.T.LngLat(J[0], J[1]))), j = new window.rawWindow.T.Polygon(H, {
18035
18035
  color: "blue",
18036
18036
  weight: 3,
18037
18037
  opacity: 0.7,
@@ -18042,8 +18042,8 @@ const LS = /* @__PURE__ */ rr(IS, [["__scopeId", "data-v-5a72d187"]]), MS = xt(L
18042
18042
  }
18043
18043
  R.length > 0 && n.value.map.setViewport(R);
18044
18044
  } else
18045
- console.log("\u65E0\u6570\u636E\uFF0C\u663E\u793A\u9ED8\u8BA4\u5B9A\u4F4D"), new window.T.LocalCity().location((M) => {
18046
- const V = new window.T.Marker(M.lnglat);
18045
+ console.log("\u65E0\u6570\u636E\uFF0C\u663E\u793A\u9ED8\u8BA4\u5B9A\u4F4D"), new window.rawWindow.T.LocalCity().location((M) => {
18046
+ const V = new window.rawWindow.T.Marker(M.lnglat);
18047
18047
  n.value.map.addOverLay(V);
18048
18048
  });
18049
18049
  }));
@@ -18264,7 +18264,7 @@ const LS = /* @__PURE__ */ rr(IS, [["__scopeId", "data-v-5a72d187"]]), MS = xt(L
18264
18264
  };
18265
18265
  }
18266
18266
  });
18267
- const US = /* @__PURE__ */ rr(zS, [["__scopeId", "data-v-6289d9ff"]]), $S = xt(US);
18267
+ const US = /* @__PURE__ */ rr(zS, [["__scopeId", "data-v-a2e7e2c8"]]), $S = xt(US);
18268
18268
  function Fc(i, a) {
18269
18269
  var r = Object.keys(i);
18270
18270
  if (Object.getOwnPropertySymbols) {
Binary file