@edugis-org/webmapx 0.1.14 → 0.1.16

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.
@@ -3,7 +3,7 @@ import { t } from "./webmapx-base-tool-Bc9Wz0yA.js";
3
3
  import { css as n, html as r, nothing as i } from "lit";
4
4
  import { customElement as a, query as o, state as s } from "lit/decorators.js";
5
5
  //#region src/utils/epsg-lookup-manager.ts
6
- var c = "https://cdn.jsdelivr.net/npm/@edugis-org/webmapx@0.1.14/public", l = 6e4, u = new class {
6
+ var c = "https://cdn.jsdelivr.net/npm/@edugis-org/webmapx@0.1.16/public", l = 6e4, u = new class {
7
7
  constructor() {
8
8
  this.worker = null, this.isReady = !1, this.isInitializing = !1, this.initPromise = null, this.pendingRequests = /* @__PURE__ */ new Map(), this.requestCounter = 0, this.idleTimeout = null, this.idleTimeoutMs = l;
9
9
  }
@@ -27,7 +27,7 @@ var a = {
27
27
  "3d": () => import("./webmapx-3d-tool-CKoLGMpk.js"),
28
28
  truearea: () => import("./webmapx-truearea-tool-dxSgcbOj.js"),
29
29
  "view-mode": () => import("./webmapx-view-mode-tool-DVSMakdh.js"),
30
- coordinates: () => import("./webmapx-coordinates-tool-BJd6idRr.js"),
30
+ coordinates: () => import("./webmapx-coordinates-tool-CI6NSE3t.js"),
31
31
  settings: () => import("./webmapx-settings-B0AT9Vjn.js"),
32
32
  "config-edit": () => import("./webmapx-config-edit-tool-7265_DNz.js")
33
33
  };
@@ -1299,7 +1299,7 @@ function _e(e, t) {
1299
1299
  }
1300
1300
  //#endregion
1301
1301
  //#region src/bootstrap/locale-loader.ts
1302
- var ve = "https://cdn.jsdelivr.net/npm/@edugis-org/webmapx@0.1.14/src/locales";
1302
+ var ve = "https://cdn.jsdelivr.net/npm/@edugis-org/webmapx@0.1.16/src/locales";
1303
1303
  async function ye(e) {
1304
1304
  if (W.hasResourceBundle(e, "webmapx")) {
1305
1305
  await W.changeLanguage(e);
@@ -2543,7 +2543,10 @@ function Ye(e) {
2543
2543
  type: "toolbar",
2544
2544
  enabled: !0,
2545
2545
  position: "top-left",
2546
- items: e.map((e) => ({ type: e }))
2546
+ items: e.map((e) => ({
2547
+ type: e,
2548
+ id: e
2549
+ }))
2547
2550
  } };
2548
2551
  }
2549
2552
  var Xe = class {
@@ -2561,7 +2564,7 @@ var Xe = class {
2561
2564
  ]), r.locale && r.locale !== "en" && await ye(r.locale);
2562
2565
  let l = document.querySelector(t);
2563
2566
  if (!l) throw Error(`[webmapx] Mount target not found: "${t}"`);
2564
- let u = t.replace(/^#/, "").replace(/[^a-zA-Z0-9_-]/g, "-") || "webmapx-map";
2567
+ let u = `${t.replace(/^#/, "").replace(/[^a-zA-Z0-9_-]/g, "-") || "map"}-webmapx`;
2565
2568
  l.innerHTML = `<webmapx-map id="${u}" adapter="${a}"></webmapx-map>`;
2566
2569
  let d = l.querySelector("webmapx-map"), f = r.map, { engine: p, tools: m, locale: h, plugins: g, ..._ } = r, v = s.length > 0 ? Ye(s) : typeof m == "object" && !Array.isArray(m) ? m : void 0, y = Ke({
2567
2570
  ..._,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edugis-org/webmapx",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "A modular web map UI with built-in adapters for MapLibre, OpenLayers, Leaflet, and Cesium.",
5
5
  "license": "ISC",
6
6
  "author": "Anne Blankert",