@delta10/atlas-sdk 0.1.9 → 0.1.10

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.
@@ -1,7 +1,7 @@
1
1
  import o from "./Map.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-843b95b9"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1a5237bc"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,23 +1,27 @@
1
- import { defineComponent as pe, ref as u, computed as v, onMounted as me, openBlock as s, createElementBlock as L, createVNode as a, unref as r, withCtx as d, createBlock as l, normalizeStyle as Z, createCommentVNode as c, Fragment as x, renderList as D, mergeProps as ye, createElementVNode as g, normalizeClass as $, Transition as V } from "vue";
2
- import { Map as T, Interactions as _, Layers as B, Sources as j, Geometries as R } from "vue3-openlayers";
3
- import { epsg28992 as z } from "../utils/projections.js";
4
- import { optionsFromCapabilities as ve } from "ol/source/WMTS";
5
- import ge from "ol/format/WMTSCapabilities";
6
- import { Style as W, Fill as G, Stroke as A, Circle as we } from "ol/style";
7
- import { boundingExtent as be } from "ol/extent";
8
- import Le from "../assets/icons/map.svg.js";
9
- import he from "../assets/icons/layers.svg.js";
10
- import ke from "../assets/icons/plus.svg.js";
11
- import Se from "../assets/icons/minus.svg.js";
12
- import Ie from "./panels/BaseLayers.vue.js";
13
- import Oe from "./panels/Layers.vue.js";
14
- const Te = { class: "map-container" }, _e = { class: "bottom-left-panels" }, ze = {
1
+ import { defineComponent as ce, ref as f, computed as v, onMounted as fe, openBlock as s, createElementBlock as L, createVNode as a, unref as r, withCtx as d, createBlock as l, normalizeStyle as B, createCommentVNode as c, Fragment as C, renderList as j, mergeProps as ue, createElementVNode as g, normalizeClass as F, Transition as N } from "vue";
2
+ import { OlMap as de, OlProjectionRegister as pe, OlView as me, OlFeature as ye } from "vue3-openlayers/map";
3
+ import { OlTileLayer as Z, OlVectorLayer as ve } from "vue3-openlayers/layers";
4
+ import { OlSourceTileWMS as ge, OlSourceWMTS as we, OlSourceVector as be } from "vue3-openlayers/sources";
5
+ import { OlGeomPoint as Le, OlGeomPolygon as he } from "vue3-openlayers/geometries";
6
+ import { OlInteractionSelect as ke, OlInteractionSnap as Se, OlInteractionModify as _e, OlInteractionDraw as ze } from "vue3-openlayers/interactions";
7
+ import { epsg28992 as I } from "../utils/projections.js";
8
+ import { optionsFromCapabilities as Ie } from "ol/source/WMTS";
9
+ import Oe from "ol/format/WMTSCapabilities";
10
+ import { Style as D, Fill as $, Stroke as V, Circle as Te } from "ol/style";
11
+ import { boundingExtent as Me } from "ol/extent";
12
+ import Ce from "../assets/icons/map.svg.js";
13
+ import Pe from "../assets/icons/layers.svg.js";
14
+ import xe from "../assets/icons/plus.svg.js";
15
+ import Be from "../assets/icons/minus.svg.js";
16
+ import je from "./panels/BaseLayers.vue.js";
17
+ import Fe from "./panels/Layers.vue.js";
18
+ const Ne = { class: "map-container" }, Ze = { class: "bottom-left-panels" }, De = {
15
19
  key: 0,
16
20
  class: "layers-control"
17
- }, Me = ["aria-expanded"], Ce = { class: "bottom-right-panels" }, Pe = {
21
+ }, $e = ["aria-expanded"], Ve = { class: "bottom-right-panels" }, Re = {
18
22
  key: 0,
19
23
  class: "base-layers-control"
20
- }, xe = ["aria-expanded"], Be = { class: "zoom-panel" }, qe = /* @__PURE__ */ pe({
24
+ }, We = ["aria-expanded"], Ae = { class: "zoom-panel" }, at = /* @__PURE__ */ ce({
21
25
  __name: "Map",
22
26
  props: {
23
27
  layers: { default: () => [] },
@@ -28,26 +32,26 @@ const Te = { class: "map-container" }, _e = { class: "bottom-left-panels" }, ze
28
32
  center: { default: () => [12e4, 487e3] }
29
33
  },
30
34
  emits: ["featureSelected", "featureDeselected", "featureModified", "featureDrawn"],
31
- setup(w, { expose: U, emit: Y }) {
32
- const i = w, M = Y, F = u(), f = u(), q = u({}), p = u({}), h = u(!1), k = u(!1), b = u(null), S = u(/* @__PURE__ */ new Set()), m = u(
35
+ setup(w, { expose: R, emit: W }) {
36
+ const i = w, O = W, P = f(), u = f(), A = f({}), p = f({}), h = f(!1), k = f(!1), b = f(null), S = f(/* @__PURE__ */ new Set()), m = f(
33
37
  new globalThis.Map()
34
- ), H = (e) => {
38
+ ), G = (e) => {
35
39
  if (!e) return;
36
- if (e instanceof W || typeof e == "function")
40
+ if (e instanceof D || typeof e == "function")
37
41
  return e;
38
42
  const o = {};
39
- return e["fill-color"] && (o.fill = new G({ color: e["fill-color"] })), (e["stroke-color"] || e["stroke-width"]) && (o.stroke = new A({
43
+ return e["fill-color"] && (o.fill = new $({ color: e["fill-color"] })), (e["stroke-color"] || e["stroke-width"]) && (o.stroke = new V({
40
44
  color: e["stroke-color"] || "#3399CC",
41
45
  width: e["stroke-width"] || 1.25
42
- })), (e["circle-radius"] || e["circle-fill-color"] || e["circle-stroke-color"]) && (o.image = new we({
46
+ })), (e["circle-radius"] || e["circle-fill-color"] || e["circle-stroke-color"]) && (o.image = new Te({
43
47
  radius: e["circle-radius"] || 5,
44
- fill: e["circle-fill-color"] ? new G({ color: e["circle-fill-color"] }) : void 0,
45
- stroke: e["circle-stroke-color"] || e["circle-stroke-width"] ? new A({
48
+ fill: e["circle-fill-color"] ? new $({ color: e["circle-fill-color"] }) : void 0,
49
+ stroke: e["circle-stroke-color"] || e["circle-stroke-width"] ? new V({
46
50
  color: e["circle-stroke-color"] || "#3399CC",
47
51
  width: e["circle-stroke-width"] || 1.25
48
52
  }) : void 0
49
- })), new W(o);
50
- }, J = v(() => i.layers.map((e) => {
53
+ })), new D(o);
54
+ }, U = v(() => i.layers.map((e) => {
51
55
  if (e.type === "wmts") {
52
56
  const o = m.value.get(e.options.identifier);
53
57
  return {
@@ -66,14 +70,14 @@ const Te = { class: "map-container" }, _e = { class: "bottom-left-panels" }, ze
66
70
  options: e.options,
67
71
  style: e.options.style
68
72
  };
69
- })), O = v(() => {
73
+ })), z = v(() => {
70
74
  if (!b.value || !i.baseLayers)
71
75
  return null;
72
76
  const e = i.baseLayers.find(
73
77
  (o) => o.options.identifier === b.value
74
78
  );
75
79
  return !e || e.type === "wmts" && !m.value.get(e.options.identifier) ? null : e;
76
- }), K = v(() => O.value && m.value.get(O.value.options.identifier) || null), Q = v(() => (i.toggleableLayers || []).filter(
80
+ }), Y = v(() => z.value && m.value.get(z.value.options.identifier) || null), q = v(() => (i.toggleableLayers || []).filter(
77
81
  (e) => S.value.has(e.options.identifier)
78
82
  ).map((e) => e.type === "wms" ? {
79
83
  type: "wms",
@@ -92,14 +96,14 @@ const Te = { class: "map-container" }, _e = { class: "bottom-left-panels" }, ze
92
96
  } : {
93
97
  ...e,
94
98
  identifier: e.options.identifier
95
- })), X = v(() => {
99
+ })), H = v(() => {
96
100
  const e = [];
97
- if (O.value) {
98
- const n = O.value;
101
+ if (z.value) {
102
+ const n = z.value;
99
103
  n.type === "wmts" ? e.push({
100
104
  type: "wmts",
101
105
  identifier: n.options.identifier,
102
- wmtsOptions: K.value,
106
+ wmtsOptions: Y.value,
103
107
  zIndex: 0
104
108
  }) : n.type === "wms" ? e.push({
105
109
  type: "wms",
@@ -115,55 +119,55 @@ const Te = { class: "map-container" }, _e = { class: "bottom-left-panels" }, ze
115
119
  zIndex: 0
116
120
  });
117
121
  }
118
- const o = Q.value.map((n, y) => ({
122
+ const o = q.value.map((n, y) => ({
119
123
  ...n,
120
124
  zIndex: y + 10
121
- })), t = J.value.map((n, y) => ({
125
+ })), t = U.value.map((n, y) => ({
122
126
  ...n,
123
127
  zIndex: o.length + y + 20
124
128
  }));
125
129
  return [...e, ...o, ...t];
126
- }), E = () => {
130
+ }), J = () => {
127
131
  h.value = !h.value;
128
- }, ee = () => {
132
+ }, K = () => {
129
133
  k.value = !k.value;
130
- }, te = (e) => {
134
+ }, Q = (e) => {
131
135
  S.value.has(e) ? S.value.delete(e) : S.value.add(e);
132
- }, oe = (e) => {
136
+ }, X = (e) => {
133
137
  b.value = e;
134
- }, ie = () => {
135
- if (f.value?.view) {
136
- const e = f.value.view, o = e.getZoom(), t = e.getMaxZoom();
138
+ }, E = () => {
139
+ if (u.value?.view) {
140
+ const e = u.value.view, o = e.getZoom(), t = e.getMaxZoom();
137
141
  typeof o == "number" && o < t && e.animate({ zoom: o + 1, duration: 250 });
138
142
  }
139
- }, ne = () => {
140
- if (f.value?.view) {
141
- const e = f.value.view, o = e.getZoom(), t = e.getMinZoom();
143
+ }, ee = () => {
144
+ if (u.value?.view) {
145
+ const e = u.value.view, o = e.getZoom(), t = e.getMinZoom();
142
146
  typeof o == "number" && o > t && e.animate({ zoom: o - 1, duration: 250 });
143
147
  }
144
- }, C = async (e, o, t) => {
148
+ }, T = async (e, o, t) => {
145
149
  try {
146
- const y = await (await fetch(e)).text(), P = new ge().read(y), fe = t ? [t, "image/jpeg", "image/png"] : ["image/png", "image/jpeg"];
147
- let I = null;
148
- for (const N of fe)
150
+ const y = await (await fetch(e)).text(), M = new Oe().read(y), ae = t ? [t, "image/jpeg", "image/png"] : ["image/png", "image/jpeg"];
151
+ let _ = null;
152
+ for (const x of ae)
149
153
  try {
150
- if (I = ve(P, {
154
+ if (_ = Ie(M, {
151
155
  layer: o,
152
156
  matrixSet: "EPSG:28992",
153
157
  projection: "EPSG:28992",
154
- format: N,
158
+ format: x,
155
159
  crossOrigin: "anonymous",
156
160
  style: "default"
157
- }), I) break;
158
- } catch (de) {
159
- console.warn(`Format ${N} failed for layer ${o}:`, de);
161
+ }), _) break;
162
+ } catch (le) {
163
+ console.warn(`Format ${x} failed for layer ${o}:`, le);
160
164
  }
161
- return I && (I.style = "default"), I;
165
+ return _ && (_.style = "default"), _;
162
166
  } catch (n) {
163
167
  return console.error("Failed to fetch WMTS capabilities:", n), null;
164
168
  }
165
- }, re = (e) => {
166
- if (!e || e.length === 0 || !f.value?.view) return;
169
+ }, te = (e) => {
170
+ if (!e || e.length === 0 || !u.value?.view) return;
167
171
  const o = [];
168
172
  for (const t of e)
169
173
  if (t.type === "Point")
@@ -171,24 +175,24 @@ const Te = { class: "map-container" }, _e = { class: "bottom-left-panels" }, ze
171
175
  else if (t.type === "Polygon") {
172
176
  const n = t.coordinates;
173
177
  for (const y of n)
174
- for (const P of y)
175
- o.push(P);
178
+ for (const M of y)
179
+ o.push(M);
176
180
  }
177
181
  if (o.length > 0) {
178
- const t = be(o);
179
- f.value.view.fit(t, {
182
+ const t = Me(o);
183
+ u.value.view.fit(t, {
180
184
  padding: [50, 50, 50, 50]
181
185
  });
182
186
  }
183
187
  };
184
- me(async () => {
188
+ fe(async () => {
185
189
  if (!b.value && i.baseLayers && i.baseLayers.length > 0) {
186
190
  const e = i.baseLayers[0];
187
191
  e?.options.identifier && (b.value = e.options.identifier);
188
192
  }
189
193
  for (const e of i.layers.filter((o) => o.type === "wmts"))
190
194
  if (e.options.url) {
191
- const o = await C(
195
+ const o = await T(
192
196
  e.options.url,
193
197
  e.options.identifier,
194
198
  e.options.format
@@ -198,7 +202,7 @@ const Te = { class: "map-container" }, _e = { class: "bottom-left-panels" }, ze
198
202
  if (i.baseLayers) {
199
203
  for (const e of i.baseLayers.filter((o) => o.type === "wmts"))
200
204
  if (e.options.url) {
201
- const o = await C(
205
+ const o = await T(
202
206
  e.options.url,
203
207
  e.options.identifier,
204
208
  e.options.format
@@ -211,7 +215,7 @@ const Te = { class: "map-container" }, _e = { class: "bottom-left-panels" }, ze
211
215
  (o) => o.type === "wmts"
212
216
  ))
213
217
  if (e.options.url) {
214
- const o = await C(
218
+ const o = await T(
215
219
  e.options.url,
216
220
  e.options.identifier,
217
221
  e.options.format
@@ -220,7 +224,7 @@ const Te = { class: "map-container" }, _e = { class: "bottom-left-panels" }, ze
220
224
  }
221
225
  }
222
226
  });
223
- const se = v(() => {
227
+ const oe = v(() => {
224
228
  if (!i.interactions?.selectable?.layers || i.interactions.selectable.layers.length === 0)
225
229
  return;
226
230
  const e = i.interactions.selectable.layers;
@@ -229,49 +233,49 @@ const Te = { class: "map-container" }, _e = { class: "bottom-left-panels" }, ze
229
233
  const n = t.get("name");
230
234
  return e.includes(n);
231
235
  };
232
- }), ae = v(() => H(i.interactions?.selectable?.style)), le = (e) => {
233
- M("featureSelected", e);
234
- }, ce = (e) => {
235
- M("featureModified", { features: e.features.getArray() });
236
- }, ue = (e) => {
237
- M("featureDrawn", { feature: e.feature });
236
+ }), ie = v(() => G(i.interactions?.selectable?.style)), ne = (e) => {
237
+ O("featureSelected", e);
238
+ }, re = (e) => {
239
+ O("featureModified", { features: e.features.getArray() });
240
+ }, se = (e) => {
241
+ O("featureDrawn", { feature: e.feature });
238
242
  };
239
- return U({ map: F, view: f, fitToFeatures: re }), (e, o) => (s(), L("div", Te, [
240
- a(r(T).OlMap, {
243
+ return R({ map: P, view: u, fitToFeatures: te }), (e, o) => (s(), L("div", Ne, [
244
+ a(r(de), {
241
245
  ref_key: "mapRef",
242
- ref: F,
246
+ ref: P,
243
247
  style: { width: "100%", height: "100%" },
244
248
  controls: []
245
249
  }, {
246
250
  default: d(() => [
247
- a(r(T).OlProjectionRegister, {
248
- projectionName: r(z).name,
249
- projectionDef: r(z).def,
250
- extent: r(z).extent
251
+ a(r(pe), {
252
+ projectionName: r(I).name,
253
+ projectionDef: r(I).def,
254
+ extent: r(I).extent
251
255
  }, null, 8, ["projectionName", "projectionDef", "extent"]),
252
- a(r(T).OlView, {
256
+ a(r(me), {
253
257
  ref_key: "viewRef",
254
- ref: f,
258
+ ref: u,
255
259
  center: w.center,
256
260
  zoom: w.zoom,
257
- projection: r(z).name
261
+ projection: r(I).name
258
262
  }, null, 8, ["center", "zoom", "projection"]),
259
- i.interactions?.selectable?.enabled ? (s(), l(r(_).OlInteractionSelect, {
263
+ i.interactions?.selectable?.enabled ? (s(), l(r(ke), {
260
264
  key: 0,
261
265
  multi: !1,
262
- filter: se.value,
263
- style: Z(ae.value),
264
- onSelect: le
266
+ filter: oe.value,
267
+ style: B(ie.value),
268
+ onSelect: ne
265
269
  }, null, 8, ["filter", "style"])) : c("", !0),
266
- (s(!0), L(x, null, D(X.value, (t) => (s(), L(x, {
270
+ (s(!0), L(C, null, j(H.value, (t) => (s(), L(C, {
267
271
  key: t.identifier
268
272
  }, [
269
- t.type === "wms" ? (s(), l(r(B).OlTileLayer, {
273
+ t.type === "wms" ? (s(), l(r(Z), {
270
274
  key: 0,
271
275
  zIndex: t.zIndex
272
276
  }, {
273
277
  default: d(() => [
274
- a(r(j).OlSourceTileWMS, {
278
+ a(r(ge), {
275
279
  url: t.wmsUrl,
276
280
  layers: t.layerName || "",
277
281
  params: { LAYERS: t.layerName || "", TILED: !0 },
@@ -280,67 +284,67 @@ const Te = { class: "map-container" }, _e = { class: "bottom-left-panels" }, ze
280
284
  }, null, 8, ["url", "layers", "params"])
281
285
  ]),
282
286
  _: 2
283
- }, 1032, ["zIndex"])) : t.type === "wmts" && (t.wmtsOptions || t.options) ? (s(), l(r(B).OlTileLayer, {
287
+ }, 1032, ["zIndex"])) : t.type === "wmts" && (t.wmtsOptions || t.options) ? (s(), l(r(Z), {
284
288
  key: 1,
285
289
  zIndex: t.zIndex
286
290
  }, {
287
291
  default: d(() => [
288
- a(r(j).OlSourceWMTS, ye(
292
+ a(r(we), ue(
289
293
  { ref_for: !0 },
290
294
  t.wmtsOptions || t.options,
291
295
  { styles: "default" }
292
296
  ), null, 16)
293
297
  ]),
294
298
  _: 2
295
- }, 1032, ["zIndex"])) : t.type === "vector" ? (s(), l(r(B).OlVectorLayer, {
299
+ }, 1032, ["zIndex"])) : t.type === "vector" ? (s(), l(r(ve), {
296
300
  key: 2,
297
301
  zIndex: t.zIndex,
298
- style: Z(t.style),
302
+ style: B(t.style),
299
303
  properties: { name: t.identifier },
300
304
  ref_for: !0,
301
305
  ref: (n) => {
302
- n && (q.value[t.identifier] = n);
306
+ n && (A.value[t.identifier] = n);
303
307
  }
304
308
  }, {
305
309
  default: d(() => [
306
- a(r(j).OlSourceVector, {
310
+ a(r(be), {
307
311
  ref_for: !0,
308
312
  ref: (n) => {
309
313
  n && (p.value[t.identifier] = n);
310
314
  }
311
315
  }, {
312
316
  default: d(() => [
313
- (s(!0), L(x, null, D(t.options?.features, (n) => (s(), l(r(T).OlFeature, {
317
+ (s(!0), L(C, null, j(t.options?.features, (n) => (s(), l(r(ye), {
314
318
  key: `${t.identifier}-${n.coordinates}`,
315
319
  properties: n.properties || {}
316
320
  }, {
317
321
  default: d(() => [
318
- n.type === "Point" ? (s(), l(r(R).OlGeomPoint, {
322
+ n.type === "Point" ? (s(), l(r(Le), {
319
323
  key: 0,
320
324
  coordinates: n.coordinates
321
325
  }, null, 8, ["coordinates"])) : c("", !0),
322
- n.type === "Polygon" ? (s(), l(r(R).OlGeomPolygon, {
326
+ n.type === "Polygon" ? (s(), l(r(he), {
323
327
  key: 1,
324
328
  coordinates: n.coordinates
325
329
  }, null, 8, ["coordinates"])) : c("", !0)
326
330
  ]),
327
331
  _: 2
328
332
  }, 1032, ["properties"]))), 128)),
329
- i.interactions?.snap?.enabled && (i.interactions.draw?.enabled || i.interactions.modify?.enabled) && (i.interactions.draw?.layer === t.identifier || i.interactions.modify?.layer === t.identifier) && p.value[i.interactions.snap.targetLayer]?.source ? (s(), l(r(_).OlInteractionSnap, {
333
+ i.interactions?.snap?.enabled && (i.interactions.draw?.enabled || i.interactions.modify?.enabled) && (i.interactions.draw?.layer === t.identifier || i.interactions.modify?.layer === t.identifier) && p.value[i.interactions.snap.targetLayer]?.source ? (s(), l(r(Se), {
330
334
  key: `snap-${i.interactions?.snap?.enabled}-${i.interactions?.draw?.enabled}-${i.interactions?.draw?.layer}-${i.interactions?.modify?.enabled}-${i.interactions?.modify?.layer}`,
331
335
  source: p.value[i.interactions.snap.targetLayer]?.source,
332
336
  pixelTolerance: i.interactions?.snap?.pixelTolerance || 8
333
337
  }, null, 8, ["source", "pixelTolerance"])) : c("", !0),
334
- i.interactions?.modify?.enabled && i.interactions.modify.layer === t.identifier && p.value[t.identifier]?.source ? (s(), l(r(_).OlInteractionModify, {
338
+ i.interactions?.modify?.enabled && i.interactions.modify.layer === t.identifier && p.value[t.identifier]?.source ? (s(), l(r(_e), {
335
339
  key: 1,
336
340
  source: p.value[t.identifier]?.source,
337
- onModifyend: ce
341
+ onModifyend: re
338
342
  }, null, 8, ["source"])) : c("", !0),
339
- i.interactions?.draw?.enabled && i.interactions.draw.layer === t.identifier && p.value[t.identifier]?.source ? (s(), l(r(_).OlInteractionDraw, {
343
+ i.interactions?.draw?.enabled && i.interactions.draw.layer === t.identifier && p.value[t.identifier]?.source ? (s(), l(r(ze), {
340
344
  key: 2,
341
345
  source: p.value[t.identifier]?.source,
342
346
  type: i.interactions.draw.type || "Point",
343
- onDrawend: ue
347
+ onDrawend: se
344
348
  }, null, 8, ["source", "type"])) : c("", !0)
345
349
  ]),
346
350
  _: 2
@@ -352,65 +356,65 @@ const Te = { class: "map-container" }, _e = { class: "bottom-left-panels" }, ze
352
356
  ]),
353
357
  _: 1
354
358
  }, 512),
355
- g("div", _e, [
356
- w.toggleableLayers && w.toggleableLayers.length > 0 ? (s(), L("div", ze, [
359
+ g("div", Ze, [
360
+ w.toggleableLayers && w.toggleableLayers.length > 0 ? (s(), L("div", De, [
357
361
  g("button", {
358
- class: $(["iconbutton", { isActive: k.value }]),
362
+ class: F(["iconbutton", { isActive: k.value }]),
359
363
  "aria-label": "Toon lagen",
360
364
  "aria-expanded": k.value,
361
- onClick: ee
365
+ onClick: K
362
366
  }, [
363
- a(r(he))
364
- ], 10, Me),
365
- a(V, { name: "fade" }, {
367
+ a(r(Pe))
368
+ ], 10, $e),
369
+ a(N, { name: "fade" }, {
366
370
  default: d(() => [
367
- k.value ? (s(), l(Oe, {
371
+ k.value ? (s(), l(Fe, {
368
372
  key: 0,
369
373
  toggleableLayers: w.toggleableLayers || [],
370
374
  visibleToggleableLayers: S.value,
371
- onToggleLayer: te
375
+ onToggleLayer: Q
372
376
  }, null, 8, ["toggleableLayers", "visibleToggleableLayers"])) : c("", !0)
373
377
  ]),
374
378
  _: 1
375
379
  })
376
380
  ])) : c("", !0)
377
381
  ]),
378
- g("div", Ce, [
379
- i.baseLayers && i.baseLayers.length > 0 ? (s(), L("div", Pe, [
382
+ g("div", Ve, [
383
+ i.baseLayers && i.baseLayers.length > 0 ? (s(), L("div", Re, [
380
384
  g("button", {
381
- class: $(["iconbutton", { isActive: h.value }]),
385
+ class: F(["iconbutton", { isActive: h.value }]),
382
386
  "aria-label": "Toon basislagen",
383
387
  "aria-expanded": h.value,
384
- onClick: E
388
+ onClick: J
385
389
  }, [
386
- a(r(Le))
387
- ], 10, xe),
388
- a(V, { name: "fade" }, {
390
+ a(r(Ce))
391
+ ], 10, We),
392
+ a(N, { name: "fade" }, {
389
393
  default: d(() => [
390
- h.value ? (s(), l(Ie, {
394
+ h.value ? (s(), l(je, {
391
395
  key: 0,
392
396
  baseLayers: i.baseLayers,
393
397
  selectedBaseLayerId: b.value,
394
- onSelectBaseLayer: oe
398
+ onSelectBaseLayer: X
395
399
  }, null, 8, ["baseLayers", "selectedBaseLayerId"])) : c("", !0)
396
400
  ]),
397
401
  _: 1
398
402
  })
399
403
  ])) : c("", !0),
400
- g("div", Be, [
404
+ g("div", Ae, [
401
405
  g("button", {
402
406
  class: "iconbutton",
403
407
  "aria-label": "Zoom in",
404
- onClick: ie
408
+ onClick: E
405
409
  }, [
406
- a(r(ke))
410
+ a(r(xe))
407
411
  ]),
408
412
  g("button", {
409
413
  class: "iconbutton",
410
414
  "aria-label": "Zoom out",
411
- onClick: ne
415
+ onClick: ee
412
416
  }, [
413
- a(r(Se))
417
+ a(r(Be))
414
418
  ])
415
419
  ])
416
420
  ])
@@ -418,5 +422,5 @@ const Te = { class: "map-container" }, _e = { class: "bottom-left-panels" }, ze
418
422
  }
419
423
  });
420
424
  export {
421
- qe as default
425
+ at as default
422
426
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .wrapper[data-v-7a503b81]{position:absolute;bottom:100%;right:0;padding:8px 12px;background:#fff;border-radius:4px 4px 0;box-shadow:0 2px 8px #00000026;min-width:150px;z-index:1000;margin-bottom:8px}ul[data-v-7a503b81]{list-style:none;margin:0;padding:0}.layer[data-v-7a503b81]{position:relative;display:flex;margin-bottom:4px}.layer[data-v-7a503b81]:last-child{margin-bottom:0}.layer>input[data-v-7a503b81]{position:absolute;top:6px;left:0;width:12px;height:12px;margin:0;cursor:pointer}.layer>label[data-v-7a503b81]{display:block;position:relative;width:100%;cursor:pointer;padding:3px 0 3px 18px;-webkit-user-select:none;user-select:none;font-size:14px;white-space:nowrap}.wrapper[data-v-16f7d1b3]{position:absolute;bottom:100%;left:0;padding:12px;background:#fff;border-radius:4px 4px 4px 0;box-shadow:0 2px 8px #00000026;min-width:200px;z-index:1000;margin-bottom:8px}ul[data-v-16f7d1b3]{list-style:none;margin:0;padding:0}.layer[data-v-16f7d1b3]{margin-bottom:8px}.layer[data-v-16f7d1b3]:last-child{margin-bottom:0}.layer-control[data-v-16f7d1b3]{display:flex;align-items:center;cursor:pointer;gap:8px}.layer-checkbox[data-v-16f7d1b3]{flex-shrink:0}.layer-title[data-v-16f7d1b3]{font-size:14px;font-weight:500;color:#333;line-height:1.3}.map-container[data-v-843b95b9]{position:relative;width:100%;height:100%}.bottom-right-panels[data-v-843b95b9]{position:absolute;z-index:1;bottom:20px;right:20px;display:flex;flex-direction:column;gap:8px}.bottom-left-panels[data-v-843b95b9]{position:absolute;z-index:1;bottom:20px;left:20px;display:flex;flex-direction:column;gap:8px}.zoom-panel[data-v-843b95b9],.base-layers-control[data-v-843b95b9],.layers-control[data-v-843b95b9]{display:flex;flex-direction:column;background:#fff;border-radius:4px;box-shadow:0 1px 4px #0003;overflow:visible;position:relative}.iconbutton[data-v-843b95b9]{width:30px;height:30px;border:none;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .2s;padding:0}.iconbutton[data-v-843b95b9]:hover{background:#f0f0f0}.iconbutton.isActive[data-v-843b95b9]{background:#e6f3ff}.iconbutton[data-v-843b95b9]:not(:last-child){border-bottom:1px solid #ddd}.fade-enter-active[data-v-843b95b9],.fade-leave-active[data-v-843b95b9]{transition:opacity .2s ease}.fade-enter-from[data-v-843b95b9],.fade-leave-to[data-v-843b95b9]{opacity:0}
1
+ .wrapper[data-v-7a503b81]{position:absolute;bottom:100%;right:0;padding:8px 12px;background:#fff;border-radius:4px 4px 0;box-shadow:0 2px 8px #00000026;min-width:150px;z-index:1000;margin-bottom:8px}ul[data-v-7a503b81]{list-style:none;margin:0;padding:0}.layer[data-v-7a503b81]{position:relative;display:flex;margin-bottom:4px}.layer[data-v-7a503b81]:last-child{margin-bottom:0}.layer>input[data-v-7a503b81]{position:absolute;top:6px;left:0;width:12px;height:12px;margin:0;cursor:pointer}.layer>label[data-v-7a503b81]{display:block;position:relative;width:100%;cursor:pointer;padding:3px 0 3px 18px;-webkit-user-select:none;user-select:none;font-size:14px;white-space:nowrap}.wrapper[data-v-16f7d1b3]{position:absolute;bottom:100%;left:0;padding:12px;background:#fff;border-radius:4px 4px 4px 0;box-shadow:0 2px 8px #00000026;min-width:200px;z-index:1000;margin-bottom:8px}ul[data-v-16f7d1b3]{list-style:none;margin:0;padding:0}.layer[data-v-16f7d1b3]{margin-bottom:8px}.layer[data-v-16f7d1b3]:last-child{margin-bottom:0}.layer-control[data-v-16f7d1b3]{display:flex;align-items:center;cursor:pointer;gap:8px}.layer-checkbox[data-v-16f7d1b3]{flex-shrink:0}.layer-title[data-v-16f7d1b3]{font-size:14px;font-weight:500;color:#333;line-height:1.3}.map-container[data-v-1a5237bc]{position:relative;width:100%;height:100%}.bottom-right-panels[data-v-1a5237bc]{position:absolute;z-index:1;bottom:20px;right:20px;display:flex;flex-direction:column;gap:8px}.bottom-left-panels[data-v-1a5237bc]{position:absolute;z-index:1;bottom:20px;left:20px;display:flex;flex-direction:column;gap:8px}.zoom-panel[data-v-1a5237bc],.base-layers-control[data-v-1a5237bc],.layers-control[data-v-1a5237bc]{display:flex;flex-direction:column;background:#fff;border-radius:4px;box-shadow:0 1px 4px #0003;overflow:visible;position:relative}.iconbutton[data-v-1a5237bc]{width:30px;height:30px;border:none;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .2s;padding:0}.iconbutton[data-v-1a5237bc]:hover{background:#f0f0f0}.iconbutton.isActive[data-v-1a5237bc]{background:#e6f3ff}.iconbutton[data-v-1a5237bc]:not(:last-child){border-bottom:1px solid #ddd}.fade-enter-active[data-v-1a5237bc],.fade-leave-active[data-v-1a5237bc]{transition:opacity .2s ease}.fade-enter-from[data-v-1a5237bc],.fade-leave-to[data-v-1a5237bc]{opacity:0}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@delta10/atlas-sdk",
3
3
  "private": false,
4
- "version": "0.1.9",
4
+ "version": "0.1.10",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -32,8 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "ol": "10.7.0",
35
- "vue3-openlayers": "12.2.2",
36
- "proj4": "2.20.2"
35
+ "vue3-openlayers": "12.2.2"
37
36
  },
38
37
  "devDependencies": {
39
38
  "@types/node": "24.10.1",