@opengis/partsmap 0.0.73 → 0.0.75

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/PartsMap.js CHANGED
@@ -18215,7 +18215,7 @@ const gl = {
18215
18215
  async updateStyle(f, v = this == null ? void 0 : this.map) {
18216
18216
  const I = f.id;
18217
18217
  v.getStyle().layers.forEach(async (L) => {
18218
- L.source === I && await v.removeLayer(L.id);
18218
+ L.source === I && v.getLayer(L.id) && await v.removeLayer(L.id);
18219
18219
  }), (await qh(
18220
18220
  f.style,
18221
18221
  f.source || f.id,
@@ -18286,7 +18286,7 @@ const gl = {
18286
18286
  async removeLayer(f, v = this.map) {
18287
18287
  v.getSource(f) && (await v.getStyle().layers.forEach(async (I) => {
18288
18288
  I.source === f && await v.removeLayer(I.id);
18289
- }), await v.removeSource(f));
18289
+ }), v.getSource(f) && await v.removeSource(f));
18290
18290
  },
18291
18291
  // async setFilter(id, filter) {
18292
18292
  // const currentLayer = this.layerList.find((el) => el.id === id);
@@ -18320,7 +18320,7 @@ const gl = {
18320
18320
  async refreshLayer(f, v = this.map) {
18321
18321
  await v.getStyle().layers.forEach((I) => {
18322
18322
  I.source === f && v.removeLayer(I.id);
18323
- }), await v.removeSource(f), this.setVisible(f);
18323
+ }), v.getSource(f) && await v.removeSource(f), this.setVisible(f);
18324
18324
  }
18325
18325
  }
18326
18326
  }, Ki = (f, v) => {
@@ -20900,7 +20900,7 @@ const Jy = /* @__PURE__ */ Ki(Ny, [["render", Wy]]), Ky = {
20900
20900
  await this.addLayer({
20901
20901
  id: this.table,
20902
20902
  service: "vector",
20903
- url: `/api/vtile/${this.table}/ua/{z}/{x}/{y}.vmt?pointZoom=${this.pointZoom}&dt=${(/* @__PURE__ */ new Date()).toISOString()}&filter=${I}`,
20903
+ url: `/api/vtile/${this.table}/ua/{z}/{x}/{y}.vmt?pointZoom=${this.pointZoom}&dt=${(/* @__PURE__ */ new Date()).toISOString()}${I ? `&filter=${I}` : ""}`,
20904
20904
  layers: [
20905
20905
  {
20906
20906
  type: "fill",
@@ -20992,7 +20992,7 @@ function Qy(f, v, I, C, L, q) {
20992
20992
  Re("div", {
20993
20993
  id: "maplibre-map",
20994
20994
  ref: "maplibreMap",
20995
- class: "w-full",
20995
+ class: "w-full compare_main_map",
20996
20996
  style: Wh({ height: I.height })
20997
20997
  }, null, 4),
20998
20998
  Hs(Ji(T, {
@@ -21323,7 +21323,8 @@ const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-3740577
21323
21323
  }
21324
21324
  this.moveLayer("site.prc.parcel_object.table"), (q = this.map) == null || q.fitBounds(this.currentBbox, {
21325
21325
  zoom: this.setAtuZoom,
21326
- padding: 20
21326
+ padding: 20,
21327
+ duration: 0
21327
21328
  }), this.getData();
21328
21329
  },
21329
21330
  async addressSelectValue(f, v) {
@@ -21373,7 +21374,7 @@ const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-3740577
21373
21374
  const f = new URLSearchParams(window.location.search);
21374
21375
  f.delete("id");
21375
21376
  const I = `${window.location.pathname}?${f.toString()}`;
21376
- (C = this.map) == null || C.fitBounds(this.maxBounds, {}), window.history.pushState({}, "", I), this.isSelectObj = !1;
21377
+ (C = this.map) == null || C.fitBounds(this.maxBounds, { duration: 0 }), window.history.pushState({}, "", I), this.isSelectObj = !1;
21377
21378
  },
21378
21379
  regionFullName(f) {
21379
21380
  return f.region ? `${f.text} / ${f.region}` : f.text;
@@ -21390,8 +21391,8 @@ const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-3740577
21390
21391
  return v;
21391
21392
  },
21392
21393
  async clearFilter(f) {
21393
- var v, I;
21394
- (I = (v = this.$refs) == null ? void 0 : v.filter) == null || I.clearFilter(f), await this.updateTableAndMap(), await this.getData();
21394
+ var v, I, C;
21395
+ await ((I = (v = this.$refs) == null ? void 0 : v.filter) == null ? void 0 : I.clearFilter(f)), this.filterUrl = (C = this.$refs) == null ? void 0 : C.filter.filterUrl, await this.updateTableAndMap(), await this.getData();
21395
21396
  },
21396
21397
  handlePageChange(f) {
21397
21398
  this.currentPage = f;
@@ -21420,18 +21421,21 @@ const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-3740577
21420
21421
  f.delete("id"), this.deletePulsePoint(), this.deleteHighlighPolygon();
21421
21422
  const I = `${window.location.pathname}?${f.toString()}`;
21422
21423
  (this.currentBbox || this.center) && ((C = this.map) == null || C.fitBounds(this.currentBbox || [this.center, this.center], {
21423
- maxZoom: this.zoom
21424
+ maxZoom: this.zoom,
21425
+ duration: 0
21424
21426
  })), window.history.pushState({}, "", I), this.isSelectObj = !1, this.selectedRow = null, this.getData();
21425
21427
  },
21426
21428
  async handleSearchRegionValue(f) {
21427
21429
  var I;
21428
21430
  const v = this.map.getLayer("region-search-id");
21429
- this.searchRegion = f, f === "" && v ? ((I = this.map) == null || I.fitBounds(this.maxBounds, {}), this.currentBbox = null, this.polyline = null, this.map.removeLayer("region-search-id"), this.getData()) : f === "" && this.getData();
21431
+ this.searchRegion = f, f === "" && v ? ((I = this.map) == null || I.fitBounds(this.maxBounds, {
21432
+ duration: 0
21433
+ }), this.currentBbox = null, this.polyline = null, this.map.removeLayer("region-search-id"), this.getData()) : f === "" && this.getData();
21430
21434
  },
21431
21435
  async handleSearchAddressValue(f) {
21432
21436
  var I;
21433
21437
  const v = this.map.getLayer("address-search-id");
21434
- this.searchAddress = f, f === "" && v ? ((I = this.map) == null || I.fitBounds(this.maxBounds, {}), this.currentBbox = null, this.polyline = null, this.map.removeLayer("address-search-id"), this.getData()) : f === "" && this.getData();
21438
+ this.searchAddress = f, f === "" && v ? ((I = this.map) == null || I.fitBounds(this.maxBounds, { duration: 0 }), this.currentBbox = null, this.polyline = null, this.map.removeLayer("address-search-id"), this.getData()) : f === "" && this.getData();
21435
21439
  },
21436
21440
  handleFilterChange(f) {
21437
21441
  this.$emit("update:filterState", f), this.currentPage = f.state.page || 1, this.filterUrl = f.url === "no-url" ? null : f.url.split("|").filter((v) => !v.includes("page=")).join("|");
@@ -21442,7 +21446,7 @@ const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-3740577
21442
21446
  },
21443
21447
  handleFilterSubmit() {
21444
21448
  var f;
21445
- this.isSelectObj = "", this.selectedId = "", this.selectedId = !1, (f = this.map) == null || f.fitBounds(this.maxBounds, {}), this.isFilterVisible = !1;
21449
+ this.isSelectObj = "", this.selectedId = "", this.selectedId = !1, (f = this.map) == null || f.fitBounds(this.maxBounds, { duration: 0 }), this.isFilterVisible = !1;
21446
21450
  },
21447
21451
  toggleMapVisible() {
21448
21452
  this.isMapVisible = !this.isMapVisible;
@@ -21478,7 +21482,7 @@ const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-3740577
21478
21482
  [(pe = f.lngLat) == null ? void 0 : pe.lng, (fe = f.lngLat) == null ? void 0 : fe.lat],
21479
21483
  [(xe = f.lngLat) == null ? void 0 : xe.lng, (ae = f.lngLat) == null ? void 0 : ae.lat]
21480
21484
  ],
21481
- { padding: 30 }
21485
+ { padding: 30, duration: 0 }
21482
21486
  )), this.checkUrl();
21483
21487
  },
21484
21488
  async getObjectData(f) {
@@ -21624,7 +21628,7 @@ const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-3740577
21624
21628
  return;
21625
21629
  this.marker && this.marker.remove();
21626
21630
  let v;
21627
- (f == null ? void 0 : f.type) === "Point" ? v = f.coordinates : v = B_(f).geometry.coordinates, this.marker = new as.Marker({ color: "green" }).setLngLat(v).addTo(this.map), this.map.setCenter(v);
21631
+ (f == null ? void 0 : f.type) === "Point" ? v = f.coordinates : v = B_(f).geometry.coordinates, this.marker = new as.Marker({ color: "green" }).setLngLat(v).addTo(this.map);
21628
21632
  }
21629
21633
  }
21630
21634
  }), O0 = { class: "ml-3 pt-[20px]" }, V0 = { class: "w-full gap-5 flex justify-between mb-[6px] pr-3" }, N0 = { class: "flex items-center gap-2 max-h-[38px] pt-[4px]" }, $0 = { class: "custom-filter-list" }, j0 = {