From 6cb46d5bf4f914b5a93d5acc75547af094b9d49b Mon Sep 17 00:00:00 2001 From: Moritz Kirmse Date: Mon, 28 Aug 2023 17:06:03 +0200 Subject: [PATCH] add libraries --- bundle/lux.dist.mjs | 35 ++++++++++++++++++----------------- bundle/lux.dist.umd.js | 35 ++++++++++++++++++----------------- 2 files changed, 36 insertions(+), 34 deletions(-) diff --git a/bundle/lux.dist.mjs b/bundle/lux.dist.mjs index b2f76218..9f315a23 100644 --- a/bundle/lux.dist.mjs +++ b/bundle/lux.dist.mjs @@ -31885,9 +31885,7 @@ function useMvtStyles() { const newVectorSources = /* @__PURE__ */ new Map(); styleStore.bgVectorSources.forEach((vectorSource, key) => { if (key === bgLayer.id) { - const newVectorSource = Object.assign({}, vectorSource, { - xyz_custom: serial - }); + const newVectorSource = { ...vectorSource, xyz_custom: serial }; newVectorSources.set(key, newVectorSource); } else { newVectorSources.set(key, vectorSource); @@ -32509,10 +32507,7 @@ function useOpenLayers() { } } function getLayerFromCache(layer) { - if (layer === null || layer === void 0) - return null; - const id = layer.id; - return layersCache.get(id); + return layer ? layersCache.get(layer.id) : null; } function applyOnBgLayer(olMap2, callbackFunction) { const mapLayers = olMap2.getLayers(); @@ -32700,7 +32695,10 @@ class StatePersistorMapService { olEvents.listen( view, "change:resolution", - debounce(fnStorageSetValueZoom, 300) + (...args) => { + debounce(fnStorageSetValueZoom, 300).apply(args); + return true; + } ); } persistXY() { @@ -32714,7 +32712,10 @@ class StatePersistorMapService { olEvents.listen( view, ObjectEventType.PROPERTYCHANGE, - debounce(fnStorageSetValueXY, 300) + (...args) => { + debounce(fnStorageSetValueXY, 300).apply(args); + return true; + } ); } persist() { @@ -43921,6 +43922,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({ } }); const StyleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/home/mkirmse/devel/gmf/luxembourg-geoportail_reb/src/components/style-selector/style-selector.vue"]]); +function traverseLayer(layer, ancestors, visitor) { + const descend = visitor(layer, ancestors); + if (descend && layer instanceof olLayerGroup) { + layer.getLayers().forEach((childLayer) => { + traverseLayer(childLayer, [...ancestors, layer], visitor); + }); + } +} const _hoisted_1 = { class: "h-screen flex flex-col overflow-hidden" }; const _hoisted_2 = { class: "flex grow" }; const _hoisted_3 = { @@ -43951,14 +43960,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({ ); onMounted(() => window.addEventListener("resize", resizeMap)); onUnmounted(() => window.removeEventListener("resize", resizeMap)); - function traverseLayer(layer, ancestors, visitor) { - const descend = visitor(layer, ancestors); - if (descend && layer instanceof olLayerGroup) { - layer.getLayers().forEach((childLayer) => { - traverseLayer(childLayer, [...ancestors, layer], visitor); - }); - } - } function resizeMap() { const map2 = useMap().getOlMap(); map2.updateSize(); diff --git a/bundle/lux.dist.umd.js b/bundle/lux.dist.umd.js index 608fc17f..d9d4d371 100644 --- a/bundle/lux.dist.umd.js +++ b/bundle/lux.dist.umd.js @@ -31899,9 +31899,7 @@ This will fail in production.`); const newVectorSources = /* @__PURE__ */ new Map(); styleStore.bgVectorSources.forEach((vectorSource, key) => { if (key === bgLayer.id) { - const newVectorSource = Object.assign({}, vectorSource, { - xyz_custom: serial - }); + const newVectorSource = { ...vectorSource, xyz_custom: serial }; newVectorSources.set(key, newVectorSource); } else { newVectorSources.set(key, vectorSource); @@ -32523,10 +32521,7 @@ This will fail in production.`); } } function getLayerFromCache(layer) { - if (layer === null || layer === void 0) - return null; - const id = layer.id; - return layersCache.get(id); + return layer ? layersCache.get(layer.id) : null; } function applyOnBgLayer(olMap2, callbackFunction) { const mapLayers = olMap2.getLayers(); @@ -32714,7 +32709,10 @@ This will fail in production.`); olEvents__namespace.listen( view, "change:resolution", - debounce(fnStorageSetValueZoom, 300) + (...args) => { + debounce(fnStorageSetValueZoom, 300).apply(args); + return true; + } ); } persistXY() { @@ -32728,7 +32726,10 @@ This will fail in production.`); olEvents__namespace.listen( view, ObjectEventType__default.default.PROPERTYCHANGE, - debounce(fnStorageSetValueXY, 300) + (...args) => { + debounce(fnStorageSetValueXY, 300).apply(args); + return true; + } ); } persist() { @@ -43935,6 +43936,14 @@ This will fail in production.`); } }); const StyleSelector = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/home/mkirmse/devel/gmf/luxembourg-geoportail_reb/src/components/style-selector/style-selector.vue"]]); + function traverseLayer(layer, ancestors, visitor) { + const descend = visitor(layer, ancestors); + if (descend && layer instanceof olLayerGroup__default.default) { + layer.getLayers().forEach((childLayer) => { + traverseLayer(childLayer, [...ancestors, layer], visitor); + }); + } + } const _hoisted_1 = { class: "h-screen flex flex-col overflow-hidden" }; const _hoisted_2 = { class: "flex grow" }; const _hoisted_3 = { @@ -43965,14 +43974,6 @@ This will fail in production.`); ); onMounted(() => window.addEventListener("resize", resizeMap)); onUnmounted(() => window.removeEventListener("resize", resizeMap)); - function traverseLayer(layer, ancestors, visitor) { - const descend = visitor(layer, ancestors); - if (descend && layer instanceof olLayerGroup__default.default) { - layer.getLayers().forEach((childLayer) => { - traverseLayer(childLayer, [...ancestors, layer], visitor); - }); - } - } function resizeMap() { const map2 = useMap().getOlMap(); map2.updateSize();