Skip to content

Commit

Permalink
add libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
mki-c2c committed Aug 28, 2023
1 parent e07c0e7 commit 6cb46d5
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 34 deletions.
35 changes: 18 additions & 17 deletions bundle/lux.dist.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -32700,7 +32695,10 @@ class StatePersistorMapService {
olEvents.listen(
view,
"change:resolution",
debounce(fnStorageSetValueZoom, 300)
(...args) => {
debounce(fnStorageSetValueZoom, 300).apply(args);
return true;
}
);
}
persistXY() {
Expand All @@ -32714,7 +32712,10 @@ class StatePersistorMapService {
olEvents.listen(
view,
ObjectEventType.PROPERTYCHANGE,
debounce(fnStorageSetValueXY, 300)
(...args) => {
debounce(fnStorageSetValueXY, 300).apply(args);
return true;
}
);
}
persist() {
Expand Down Expand Up @@ -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 = {
Expand Down Expand Up @@ -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();
Expand Down
35 changes: 18 additions & 17 deletions bundle/lux.dist.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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() {
Expand All @@ -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() {
Expand Down Expand Up @@ -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 = {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 6cb46d5

Please sign in to comment.