@opengis/partsmap 0.0.81 → 0.0.82
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 +4 -3
- package/dist/PartsMap.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/PartsMap.js
CHANGED
@@ -18196,13 +18196,14 @@ const _l = {
|
|
18196
18196
|
!this.map.getStyle() || this.map.getStyle().layers.find((S) => S.id === I.id) || (this.layerList.find((S) => S.id === I.id) || this.layerList.push(I), (I.service === "vtile" || I.service === "vector" || (D = I.url) != null && D.includes(".vmt")) && this.addVtileLayer(I, x), I.service === "geojson" && this.addGeoJsonLayer(I, x), ((U = I.url) != null && U.includes(".png") || ["tms", "raster"].includes(I.service)) && await this.addRasterLayer(I, x));
|
18197
18197
|
},
|
18198
18198
|
async addRasterLayer(f, x = this == null ? void 0 : this.map) {
|
18199
|
+
var I;
|
18199
18200
|
x.getSource(f.id) || (typeof f.bounds == "string" && Object.assign(f, { bounds: f.bounds.split(",") }), await x.addSource(f.id, {
|
18200
18201
|
type: "raster",
|
18201
18202
|
tiles: [
|
18202
|
-
`${this.prefix ? f == null ? void 0 : f.url.replace(/(\/api[^\/]*)/, this.prefix) : f == null ? void 0 : f.url}${f != null && f.url.includes("?") ? "&" : "?"}dt=${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}`
|
18203
|
+
(I = f == null ? void 0 : f.url) != null && I.startsWith("http") ? f == null ? void 0 : f.url : `${this.prefix ? f == null ? void 0 : f.url.replace(/(\/api[^\/]*)/, this.prefix) : f == null ? void 0 : f.url}${f != null && f.url.includes("?") ? "&" : "?"}dt=${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}`
|
18203
18204
|
],
|
18204
18205
|
tileSize: 256,
|
18205
|
-
...f.bounds ? { bounds: f.bounds
|
18206
|
+
...Array.isArray(f.bounds) && f.bounds.length === 4 ? { bounds: f.bounds } : {},
|
18206
18207
|
...f != null && f.scheme ? { scheme: f == null ? void 0 : f.scheme } : {}
|
18207
18208
|
}), await x.addLayer({
|
18208
18209
|
id: f.id,
|
@@ -21451,7 +21452,7 @@ const B0 = /* @__PURE__ */ Ki(I0, [["render", R0], ["__scopeId", "data-v-3740577
|
|
21451
21452
|
},
|
21452
21453
|
async clearFilter(f) {
|
21453
21454
|
var x, I, C;
|
21454
|
-
await ((I = (x = this.$refs) == null ? void 0 : x.filter) == null ? void 0 : I.clearFilter(f)), this.filterUrl = (C = this.$refs) == null ? void 0 : C.filter.filterUrl, await this.updateTableAndMap(), await this.getData();
|
21455
|
+
await ((I = (x = this.$refs) == null ? void 0 : x.filter) == null ? void 0 : I.clearFilter(f)), this.filterUrl = (C = this.$refs) == null ? void 0 : C.filter.filterUrl, f === "katottg" && this.$emit("update:filterState", {}), await this.updateTableAndMap(), await this.getData();
|
21455
21456
|
},
|
21456
21457
|
handlePageChange(f) {
|
21457
21458
|
this.currentPage = f;
|