@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.
- package/dist/components/Map.vue.js +1 -1
- package/dist/components/Map.vue2.js +130 -126
- package/dist/style.css +1 -1
- package/package.json +2 -3
|
@@ -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-
|
|
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
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
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
|
-
},
|
|
21
|
+
}, $e = ["aria-expanded"], Ve = { class: "bottom-right-panels" }, Re = {
|
|
18
22
|
key: 0,
|
|
19
23
|
class: "base-layers-control"
|
|
20
|
-
},
|
|
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:
|
|
32
|
-
const i = w,
|
|
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
|
-
),
|
|
38
|
+
), G = (e) => {
|
|
35
39
|
if (!e) return;
|
|
36
|
-
if (e instanceof
|
|
40
|
+
if (e instanceof D || typeof e == "function")
|
|
37
41
|
return e;
|
|
38
42
|
const o = {};
|
|
39
|
-
return e["fill-color"] && (o.fill = new
|
|
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
|
|
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
|
|
45
|
-
stroke: e["circle-stroke-color"] || e["circle-stroke-width"] ? new
|
|
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
|
|
50
|
-
},
|
|
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
|
-
})),
|
|
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
|
-
}),
|
|
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
|
-
})),
|
|
99
|
+
})), H = v(() => {
|
|
96
100
|
const e = [];
|
|
97
|
-
if (
|
|
98
|
-
const n =
|
|
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:
|
|
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 =
|
|
122
|
+
const o = q.value.map((n, y) => ({
|
|
119
123
|
...n,
|
|
120
124
|
zIndex: y + 10
|
|
121
|
-
})), t =
|
|
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
|
-
}),
|
|
130
|
+
}), J = () => {
|
|
127
131
|
h.value = !h.value;
|
|
128
|
-
},
|
|
132
|
+
}, K = () => {
|
|
129
133
|
k.value = !k.value;
|
|
130
|
-
},
|
|
134
|
+
}, Q = (e) => {
|
|
131
135
|
S.value.has(e) ? S.value.delete(e) : S.value.add(e);
|
|
132
|
-
},
|
|
136
|
+
}, X = (e) => {
|
|
133
137
|
b.value = e;
|
|
134
|
-
},
|
|
135
|
-
if (
|
|
136
|
-
const e =
|
|
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
|
-
},
|
|
140
|
-
if (
|
|
141
|
-
const e =
|
|
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
|
-
},
|
|
148
|
+
}, T = async (e, o, t) => {
|
|
145
149
|
try {
|
|
146
|
-
const y = await (await fetch(e)).text(),
|
|
147
|
-
let
|
|
148
|
-
for (const
|
|
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 (
|
|
154
|
+
if (_ = Ie(M, {
|
|
151
155
|
layer: o,
|
|
152
156
|
matrixSet: "EPSG:28992",
|
|
153
157
|
projection: "EPSG:28992",
|
|
154
|
-
format:
|
|
158
|
+
format: x,
|
|
155
159
|
crossOrigin: "anonymous",
|
|
156
160
|
style: "default"
|
|
157
|
-
}),
|
|
158
|
-
} catch (
|
|
159
|
-
console.warn(`Format ${
|
|
161
|
+
}), _) break;
|
|
162
|
+
} catch (le) {
|
|
163
|
+
console.warn(`Format ${x} failed for layer ${o}:`, le);
|
|
160
164
|
}
|
|
161
|
-
return
|
|
165
|
+
return _ && (_.style = "default"), _;
|
|
162
166
|
} catch (n) {
|
|
163
167
|
return console.error("Failed to fetch WMTS capabilities:", n), null;
|
|
164
168
|
}
|
|
165
|
-
},
|
|
166
|
-
if (!e || e.length === 0 || !
|
|
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
|
|
175
|
-
o.push(
|
|
178
|
+
for (const M of y)
|
|
179
|
+
o.push(M);
|
|
176
180
|
}
|
|
177
181
|
if (o.length > 0) {
|
|
178
|
-
const t =
|
|
179
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
}),
|
|
233
|
-
|
|
234
|
-
},
|
|
235
|
-
|
|
236
|
-
},
|
|
237
|
-
|
|
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
|
|
240
|
-
a(r(
|
|
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:
|
|
246
|
+
ref: P,
|
|
243
247
|
style: { width: "100%", height: "100%" },
|
|
244
248
|
controls: []
|
|
245
249
|
}, {
|
|
246
250
|
default: d(() => [
|
|
247
|
-
a(r(
|
|
248
|
-
projectionName: r(
|
|
249
|
-
projectionDef: r(
|
|
250
|
-
extent: r(
|
|
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(
|
|
256
|
+
a(r(me), {
|
|
253
257
|
ref_key: "viewRef",
|
|
254
|
-
ref:
|
|
258
|
+
ref: u,
|
|
255
259
|
center: w.center,
|
|
256
260
|
zoom: w.zoom,
|
|
257
|
-
projection: r(
|
|
261
|
+
projection: r(I).name
|
|
258
262
|
}, null, 8, ["center", "zoom", "projection"]),
|
|
259
|
-
i.interactions?.selectable?.enabled ? (s(), l(r(
|
|
263
|
+
i.interactions?.selectable?.enabled ? (s(), l(r(ke), {
|
|
260
264
|
key: 0,
|
|
261
265
|
multi: !1,
|
|
262
|
-
filter:
|
|
263
|
-
style:
|
|
264
|
-
onSelect:
|
|
266
|
+
filter: oe.value,
|
|
267
|
+
style: B(ie.value),
|
|
268
|
+
onSelect: ne
|
|
265
269
|
}, null, 8, ["filter", "style"])) : c("", !0),
|
|
266
|
-
(s(!0), L(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
299
|
+
}, 1032, ["zIndex"])) : t.type === "vector" ? (s(), l(r(ve), {
|
|
296
300
|
key: 2,
|
|
297
301
|
zIndex: t.zIndex,
|
|
298
|
-
style:
|
|
302
|
+
style: B(t.style),
|
|
299
303
|
properties: { name: t.identifier },
|
|
300
304
|
ref_for: !0,
|
|
301
305
|
ref: (n) => {
|
|
302
|
-
n && (
|
|
306
|
+
n && (A.value[t.identifier] = n);
|
|
303
307
|
}
|
|
304
308
|
}, {
|
|
305
309
|
default: d(() => [
|
|
306
|
-
a(r(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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:
|
|
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(
|
|
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:
|
|
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",
|
|
356
|
-
w.toggleableLayers && w.toggleableLayers.length > 0 ? (s(), L("div",
|
|
359
|
+
g("div", Ze, [
|
|
360
|
+
w.toggleableLayers && w.toggleableLayers.length > 0 ? (s(), L("div", De, [
|
|
357
361
|
g("button", {
|
|
358
|
-
class:
|
|
362
|
+
class: F(["iconbutton", { isActive: k.value }]),
|
|
359
363
|
"aria-label": "Toon lagen",
|
|
360
364
|
"aria-expanded": k.value,
|
|
361
|
-
onClick:
|
|
365
|
+
onClick: K
|
|
362
366
|
}, [
|
|
363
|
-
a(r(
|
|
364
|
-
], 10,
|
|
365
|
-
a(
|
|
367
|
+
a(r(Pe))
|
|
368
|
+
], 10, $e),
|
|
369
|
+
a(N, { name: "fade" }, {
|
|
366
370
|
default: d(() => [
|
|
367
|
-
k.value ? (s(), l(
|
|
371
|
+
k.value ? (s(), l(Fe, {
|
|
368
372
|
key: 0,
|
|
369
373
|
toggleableLayers: w.toggleableLayers || [],
|
|
370
374
|
visibleToggleableLayers: S.value,
|
|
371
|
-
onToggleLayer:
|
|
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",
|
|
379
|
-
i.baseLayers && i.baseLayers.length > 0 ? (s(), L("div",
|
|
382
|
+
g("div", Ve, [
|
|
383
|
+
i.baseLayers && i.baseLayers.length > 0 ? (s(), L("div", Re, [
|
|
380
384
|
g("button", {
|
|
381
|
-
class:
|
|
385
|
+
class: F(["iconbutton", { isActive: h.value }]),
|
|
382
386
|
"aria-label": "Toon basislagen",
|
|
383
387
|
"aria-expanded": h.value,
|
|
384
|
-
onClick:
|
|
388
|
+
onClick: J
|
|
385
389
|
}, [
|
|
386
|
-
a(r(
|
|
387
|
-
], 10,
|
|
388
|
-
a(
|
|
390
|
+
a(r(Ce))
|
|
391
|
+
], 10, We),
|
|
392
|
+
a(N, { name: "fade" }, {
|
|
389
393
|
default: d(() => [
|
|
390
|
-
h.value ? (s(), l(
|
|
394
|
+
h.value ? (s(), l(je, {
|
|
391
395
|
key: 0,
|
|
392
396
|
baseLayers: i.baseLayers,
|
|
393
397
|
selectedBaseLayerId: b.value,
|
|
394
|
-
onSelectBaseLayer:
|
|
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",
|
|
404
|
+
g("div", Ae, [
|
|
401
405
|
g("button", {
|
|
402
406
|
class: "iconbutton",
|
|
403
407
|
"aria-label": "Zoom in",
|
|
404
|
-
onClick:
|
|
408
|
+
onClick: E
|
|
405
409
|
}, [
|
|
406
|
-
a(r(
|
|
410
|
+
a(r(xe))
|
|
407
411
|
]),
|
|
408
412
|
g("button", {
|
|
409
413
|
class: "iconbutton",
|
|
410
414
|
"aria-label": "Zoom out",
|
|
411
|
-
onClick:
|
|
415
|
+
onClick: ee
|
|
412
416
|
}, [
|
|
413
|
-
a(r(
|
|
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
|
-
|
|
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-
|
|
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.
|
|
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",
|