@delta10/atlas-sdk 0.2.0 → 0.2.2

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.
@@ -0,0 +1,7 @@
1
+ import o from "./Layers.vue2.js";
2
+ /* empty css */
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-16f7d1b3"]]);
5
+ export {
6
+ f as default
7
+ };
@@ -0,0 +1,35 @@
1
+ import { defineComponent as c, openBlock as t, createElementBlock as o, Fragment as g, renderList as d, createElementVNode as s, toDisplayString as h, createCommentVNode as y } from "vue";
2
+ const m = { class: "wrapper" }, p = { key: 0 }, _ = { class: "layer-control" }, u = ["checked", "onChange"], b = { class: "layer-title" }, v = /* @__PURE__ */ c({
3
+ __name: "Layers",
4
+ props: {
5
+ toggleableLayers: {},
6
+ visibleToggleableLayers: {}
7
+ },
8
+ emits: ["toggleLayer"],
9
+ setup(n, { emit: a }) {
10
+ const i = a, r = (l) => {
11
+ i("toggleLayer", l);
12
+ };
13
+ return (l, L) => (t(), o("div", m, [
14
+ n.toggleableLayers.length > 0 ? (t(), o("ul", p, [
15
+ (t(!0), o(g, null, d(n.toggleableLayers, (e) => (t(), o("li", {
16
+ key: "toggle-" + e.options.identifier,
17
+ class: "layer"
18
+ }, [
19
+ s("label", _, [
20
+ s("input", {
21
+ type: "checkbox",
22
+ checked: n.visibleToggleableLayers.has(e.options.identifier),
23
+ onChange: (k) => r(e.options.identifier),
24
+ class: "layer-checkbox"
25
+ }, null, 40, u),
26
+ s("span", b, h(e.options.title), 1)
27
+ ])
28
+ ]))), 128))
29
+ ])) : y("", !0)
30
+ ]));
31
+ }
32
+ });
33
+ export {
34
+ v as default
35
+ };
@@ -0,0 +1,15 @@
1
+ export declare const pandenFeatures: {
2
+ type: "Polygon";
3
+ coordinates: number[][][];
4
+ properties: {
5
+ id: string;
6
+ };
7
+ }[];
8
+ export declare const meetboutenFeatures: {
9
+ type: "Point";
10
+ coordinates: number[];
11
+ properties: {
12
+ id: string;
13
+ geplaatst: boolean;
14
+ };
15
+ }[];
@@ -0,0 +1,8 @@
1
+ import type { App } from 'vue';
2
+ import Map from './components/Map.vue';
3
+ export { Map };
4
+ export type { LayerConfig, StyleConfig, InteractionsConfig, SelectableConfig, ModifyConfig, SnapConfig, } from './components/Map.vue';
5
+ declare const _default: {
6
+ install(app: App): void;
7
+ };
8
+ export default _default;
package/dist/index.js ADDED
@@ -0,0 +1,10 @@
1
+ import a from "./components/Map.vue.js";
2
+ const n = {
3
+ install(t) {
4
+ t.component("AtlasMap", a);
5
+ }
6
+ };
7
+ export {
8
+ a as Map,
9
+ n as default
10
+ };
package/dist/main.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -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-00ea6e03]{position:relative;width:100%;height:100%}.bottom-right-panels[data-v-00ea6e03]{position:absolute;z-index:1;bottom:20px;right:20px;display:flex;flex-direction:column;gap:8px}.bottom-left-panels[data-v-00ea6e03]{position:absolute;z-index:1;bottom:20px;left:20px;display:flex;flex-direction:column;gap:8px}.zoom-panel[data-v-00ea6e03],.base-layers-control[data-v-00ea6e03],.layers-control[data-v-00ea6e03]{display:flex;flex-direction:column;background:#fff;border-radius:4px;box-shadow:0 1px 4px #0003;overflow:visible;position:relative}.iconbutton[data-v-00ea6e03]{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-00ea6e03]:hover{background:#f0f0f0}.iconbutton.isActive[data-v-00ea6e03]{background:#e6f3ff}.iconbutton[data-v-00ea6e03]:not(:last-child){border-bottom:1px solid #ddd}.fade-enter-active[data-v-00ea6e03],.fade-leave-active[data-v-00ea6e03]{transition:opacity .2s ease}.fade-enter-from[data-v-00ea6e03],.fade-leave-to[data-v-00ea6e03]{opacity:0}.modify-overlay[data-v-00ea6e03]{display:flex;flex-direction:column;align-items:stretch;gap:6px;background:#fff;padding:6px;border-radius:4px;box-shadow:0 2px 8px #0003;border:1px solid #ccc}.modify-overlay-label[data-v-00ea6e03]{max-width:220px;padding:0 6px;color:#333;font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modify-overlay-actions[data-v-00ea6e03]{display:flex;gap:4px}.modify-btn[data-v-00ea6e03]{padding:6px 12px;border:none;border-radius:3px;cursor:pointer;font-size:12px;font-weight:500;transition:background-color .2s}.modify-btn-ok[data-v-00ea6e03]{background:#4caf50;color:#fff}.modify-btn-ok[data-v-00ea6e03]:hover{background:#45a049}.modify-btn-cancel[data-v-00ea6e03]{background:#f44336;color:#fff}.modify-btn-cancel[data-v-00ea6e03]:hover{background:#da190b}body{margin:0;padding:20px;font-family:Open Sans,sans-serif;font-size:13px}.map-container{width:1000px;height:500px;border:1px solid #ccc;border-radius:4px}.example-container{width:1000px}.interaction-control{margin-top:12px;display:flex;align-items:center;gap:8px}.interaction-control select{min-width:180px;padding:4px 8px}.message-display{margin-top:12px;padding:8px 12px;background-color:#f5f5f5;border:1px solid #ddd;border-radius:4px;font-family:monospace;font-size:12px;color:#333}
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-1eba4e06]{position:relative;width:100%;height:100%}.bottom-right-panels[data-v-1eba4e06]{position:absolute;z-index:1;bottom:20px;right:20px;display:flex;flex-direction:column;gap:8px}.bottom-left-panels[data-v-1eba4e06]{position:absolute;z-index:1;bottom:20px;left:20px;display:flex;flex-direction:column;gap:8px}.zoom-panel[data-v-1eba4e06],.base-layers-control[data-v-1eba4e06],.layers-control[data-v-1eba4e06]{display:flex;flex-direction:column;background:#fff;border-radius:4px;box-shadow:0 1px 4px #0003;overflow:visible;position:relative}.iconbutton[data-v-1eba4e06]{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-1eba4e06]:hover{background:#f0f0f0}.iconbutton.isActive[data-v-1eba4e06]{background:#e6f3ff}.iconbutton[data-v-1eba4e06]:not(:last-child){border-bottom:1px solid #ddd}.fade-enter-active[data-v-1eba4e06],.fade-leave-active[data-v-1eba4e06]{transition:opacity .2s ease}.fade-enter-from[data-v-1eba4e06],.fade-leave-to[data-v-1eba4e06]{opacity:0}.modify-overlay[data-v-1eba4e06]{display:flex;flex-direction:column;align-items:stretch;gap:6px;background:#fff;padding:6px;border-radius:4px;box-shadow:0 2px 8px #0003;border:1px solid #ccc}.modify-overlay-label[data-v-1eba4e06]{max-width:220px;padding:0 6px;color:#333;font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modify-overlay-actions[data-v-1eba4e06]{display:flex;gap:4px}.modify-btn[data-v-1eba4e06]{padding:6px 12px;border:none;border-radius:3px;cursor:pointer;font-size:12px;font-weight:500;transition:background-color .2s}.modify-btn-ok[data-v-1eba4e06]{background:#4caf50;color:#fff}.modify-btn-ok[data-v-1eba4e06]:hover{background:#45a049}.modify-btn-cancel[data-v-1eba4e06]{background:#f44336;color:#fff}.modify-btn-cancel[data-v-1eba4e06]:hover{background:#da190b}
@@ -0,0 +1,5 @@
1
+ export declare const epsg28992: {
2
+ name: string;
3
+ def: string;
4
+ extent: number[];
5
+ };
@@ -0,0 +1,8 @@
1
+ const e = {
2
+ name: "EPSG:28992",
3
+ def: "+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.417,50.3319,465.552,-0.398957,0.343988,-1.8774,4.0725 +units=m +no_defs",
4
+ extent: [-285401.92, 22598.08, 595401.92, 903401.92]
5
+ };
6
+ export {
7
+ e as epsg28992
8
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@delta10/atlas-sdk",
3
3
  "private": false,
4
- "version": "0.2.0",
4
+ "version": "0.2.2",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"