@edugis-org/webmapx 0.1.15 → 0.2.0
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-lib/{alert-C_G5X6J8.js → alert-CM5EIQzP.js} +28 -30
- package/dist-lib/{attribution-format-B4f05_u0.js → attribution-format-CZg2WjHO.js} +1 -1
- package/dist-lib/{button-BlZd3WPH.js → button-B_8TR-jN.js} +34 -38
- package/dist-lib/{checkbox-DB4oPyyw.js → checkbox-DOopjfpt.js} +25 -29
- package/dist-lib/{chunk.36O46B5H-km1dakSW.js → chunk.36O46B5H-EYkf8iaY.js} +8 -8
- package/dist-lib/{chunk.3RPBFEDE-Cxq6VVR6.js → chunk.3RPBFEDE-DC091CnT.js} +1 -1
- package/dist-lib/{chunk.5JY5FUCG-CYkzbQXS.js → chunk.5JY5FUCG-BmZ-LXEt.js} +324 -306
- package/dist-lib/{chunk.AJ3ENQ5C-DXVGX5Dn.js → chunk.AJ3ENQ5C-BhSO747I.js} +22 -25
- package/dist-lib/chunk.NYIIDP5N-DoNij0Gf.js +99 -0
- package/dist-lib/{chunk.SI4ACBFK-CLb9VfMG.js → chunk.SI4ACBFK-CdJVQctt.js} +1 -1
- package/dist-lib/{chunk.YHLNUJ7P-ByKy0MKm.js → chunk.YHLNUJ7P-DINaI4pI.js} +22 -24
- package/dist-lib/{decorate-CKr8yG1g.js → decorate-DNmmPsJp.js} +1 -1
- package/dist-lib/decorators-d8E4nZJy.js +624 -0
- package/dist-lib/{divider-BOFbR_Ny.js → divider-Ly2UhLd1.js} +6 -7
- package/dist-lib/{icon-CBNpO1lq.js → icon-DIjRqLFJ.js} +1 -1
- package/dist-lib/{icon-button-B5rXu3Gg.js → icon-button-C5K3NZWf.js} +39 -42
- package/dist-lib/{input-B212BH6L.js → input-DUaeAHt8.js} +63 -49
- package/dist-lib/{option-BQN9Zz_8.js → option-LnK7BxuV.js} +56 -59
- package/dist-lib/{spinner-DdcBaa3z.js → spinner-D_cltutw.js} +2 -2
- package/dist-lib/{toast-Bq2PmEpm.js → toast-DDqkINxT.js} +1 -1
- package/dist-lib/{tooltip-CBGOiZwJ.js → tooltip-C86FhPFx.js} +26 -27
- package/dist-lib/{webmapx-3d-tool-CKoLGMpk.js → webmapx-3d-tool-DXzN9Tha.js} +6 -7
- package/dist-lib/{webmapx-base-tool-Bc9Wz0yA.js → webmapx-base-tool-idjVnrFA.js} +8 -8
- package/dist-lib/{webmapx-config-edit-tool-7265_DNz.js → webmapx-config-edit-tool-B14KD1ak.js} +21 -22
- package/dist-lib/{webmapx-coordinates-tool-CSwh6fBU.js → webmapx-coordinates-tool-D57LfNy6.js} +25 -26
- package/dist-lib/{webmapx-core-bundle-Q6mWOib1.js → webmapx-core-bundle-C4M7AiLh.js} +726 -723
- package/dist-lib/{webmapx-draw-tool-6QRr5Gip.js → webmapx-draw-tool-utv2v3LN.js} +345 -325
- package/dist-lib/{webmapx-geolocation-tool-qxN5aaVB.js → webmapx-geolocation-tool-BIEqZkMX.js} +27 -28
- package/dist-lib/{webmapx-import-layer-tool-tJ374qHR.js → webmapx-import-layer-tool-DcFxtRJN.js} +18 -19
- package/dist-lib/{webmapx-info-tool-C3txgv3v.js → webmapx-info-tool-DDrllfth.js} +69 -70
- package/dist-lib/{webmapx-language-osmvector-jQzTOPU1.js → webmapx-language-osmvector-D_OP-fC3.js} +8 -9
- package/dist-lib/{webmapx-measure-tool-Cxxrzgdf.js → webmapx-measure-tool-D-6STy8v.js} +33 -34
- package/dist-lib/{webmapx-modal-tool-DQVHNXqX.js → webmapx-modal-tool-CftNio2w.js} +10 -10
- package/dist-lib/{webmapx-plugin-tool-BNZ61x6s.js → webmapx-plugin-tool-CGwliIUs.js} +5 -6
- package/dist-lib/{webmapx-print-tool-BDOTbS6u.js → webmapx-print-tool-DVL_0Hqz.js} +55 -56
- package/dist-lib/{webmapx-search-tool-CHlsE2Wx.js → webmapx-search-tool-D6y6WT8q.js} +13 -14
- package/dist-lib/{webmapx-settings-B0AT9Vjn.js → webmapx-settings--mFVPZsD.js} +41 -45
- package/dist-lib/{webmapx-truearea-tool-dxSgcbOj.js → webmapx-truearea-tool-nQzVCTAC.js} +31 -32
- package/dist-lib/{webmapx-view-mode-tool-DVSMakdh.js → webmapx-view-mode-tool-CQI54rFj.js} +11 -12
- package/dist-lib/webmapx.css +1 -1
- package/dist-lib/webmapx.js +22 -19
- package/package.json +1 -1
- package/dist-lib/chunk.NYIIDP5N-B4UCI-rQ.js +0 -34
package/dist-lib/{webmapx-coordinates-tool-CSwh6fBU.js → webmapx-coordinates-tool-D57LfNy6.js}
RENAMED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "./
|
|
3
|
-
import {
|
|
4
|
-
import { customElement as a, query as o, state as s } from "lit/decorators.js";
|
|
1
|
+
import { c as e, h as t, i as n, n as r, o as i, p as a } from "./decorators-d8E4nZJy.js";
|
|
2
|
+
import { t as o } from "./decorate-DNmmPsJp.js";
|
|
3
|
+
import { t as s } from "./webmapx-base-tool-idjVnrFA.js";
|
|
5
4
|
//#region src/utils/epsg-lookup-manager.ts
|
|
6
|
-
var c = "https://cdn.jsdelivr.net/npm/@edugis-org/webmapx@0.
|
|
5
|
+
var c = "https://cdn.jsdelivr.net/npm/@edugis-org/webmapx@0.2.0/public", l = 6e4, u = new class {
|
|
7
6
|
constructor() {
|
|
8
7
|
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
8
|
}
|
|
@@ -126,7 +125,7 @@ var c = "https://cdn.jsdelivr.net/npm/@edugis-org/webmapx@0.1.15/public", l = 6e
|
|
|
126
125
|
S: "S",
|
|
127
126
|
W: "O"
|
|
128
127
|
}
|
|
129
|
-
}, p = null, m = null, h = class extends
|
|
128
|
+
}, p = null, m = null, h = class extends s {
|
|
130
129
|
constructor(...e) {
|
|
131
130
|
super(...e), this.cursorCoords = null, this.pinnedCoords = null, this.resolution = null, this.pinnedResolution = null, this.showPopup = !1, this.popupDirection = "up", this.localCRS = [], this.loadingCRS = !1, this.handleOutsideClick = (e) => {
|
|
132
131
|
if (this.showPopup) {
|
|
@@ -136,7 +135,7 @@ var c = "https://cdn.jsdelivr.net/npm/@edugis-org/webmapx@0.1.15/public", l = 6e
|
|
|
136
135
|
};
|
|
137
136
|
}
|
|
138
137
|
static {
|
|
139
|
-
this.styles =
|
|
138
|
+
this.styles = t`
|
|
140
139
|
:host {
|
|
141
140
|
display: inline-flex;
|
|
142
141
|
pointer-events: auto;
|
|
@@ -332,18 +331,18 @@ var c = "https://cdn.jsdelivr.net/npm/@edugis-org/webmapx@0.1.15/public", l = 6e
|
|
|
332
331
|
return `${this.formatCoordinate(r, "lat", t, "en")} ${this.formatCoordinate(n, "lng", t, "en")}`;
|
|
333
332
|
}
|
|
334
333
|
renderClickRow() {
|
|
335
|
-
return this.pinnedCoords ?
|
|
334
|
+
return this.pinnedCoords ? a`
|
|
336
335
|
<div class="value-line click-row" @click=${this.handleClickRowClick}>
|
|
337
336
|
<span class="click-label">Click</span>
|
|
338
337
|
<span class="value">${this.formatPair(this.pinnedCoords, this.pinnedResolution)}</span>
|
|
339
338
|
</div>
|
|
340
339
|
${this.renderPopup()}
|
|
341
|
-
` :
|
|
340
|
+
` : e;
|
|
342
341
|
}
|
|
343
342
|
renderPopup() {
|
|
344
|
-
if (!this.showPopup || !this.pinnedCoords) return
|
|
345
|
-
let [
|
|
346
|
-
return
|
|
343
|
+
if (!this.showPopup || !this.pinnedCoords) return e;
|
|
344
|
+
let [t, n] = this.pinnedCoords;
|
|
345
|
+
return a`
|
|
347
346
|
<div class="popup-container direction-${this.popupDirection}" @click=${(e) => e.stopPropagation()}>
|
|
348
347
|
<div class="format-line">
|
|
349
348
|
<div class="format-content">
|
|
@@ -396,7 +395,7 @@ var c = "https://cdn.jsdelivr.net/npm/@edugis-org/webmapx@0.1.15/public", l = 6e
|
|
|
396
395
|
</button>
|
|
397
396
|
</div>
|
|
398
397
|
|
|
399
|
-
${this.shouldShowLocalizedFormat() ?
|
|
398
|
+
${this.shouldShowLocalizedFormat() ? a`
|
|
400
399
|
<div class="format-line">
|
|
401
400
|
<div class="format-content">
|
|
402
401
|
<div class="format-label">Geographic (${this.getLanguageName(this.getBrowserLanguage())})</div>
|
|
@@ -413,25 +412,25 @@ var c = "https://cdn.jsdelivr.net/npm/@edugis-org/webmapx@0.1.15/public", l = 6e
|
|
|
413
412
|
</svg>
|
|
414
413
|
</button>
|
|
415
414
|
</div>
|
|
416
|
-
` :
|
|
415
|
+
` : e}
|
|
417
416
|
|
|
418
|
-
${this.loadingCRS ?
|
|
417
|
+
${this.loadingCRS ? a`
|
|
419
418
|
<div class="loading-indicator">Loading local coordinate systems...</div>
|
|
420
|
-
` :
|
|
419
|
+
` : e}
|
|
421
420
|
|
|
422
|
-
${this.localCRS.length > 0 ?
|
|
421
|
+
${this.localCRS.length > 0 ? a`
|
|
423
422
|
<div class="crs-section-header">Local Coordinate Systems</div>
|
|
424
|
-
${this.localCRS.map((
|
|
423
|
+
${this.localCRS.map((t) => a`
|
|
425
424
|
<div class="format-line">
|
|
426
425
|
<div class="format-content">
|
|
427
|
-
<div class="format-label">${
|
|
428
|
-
<div class="format-value">${
|
|
429
|
-
${
|
|
426
|
+
<div class="format-label">${t.name} (${t.code})</div>
|
|
427
|
+
<div class="format-value">${t.coords || "Transforming..."}</div>
|
|
428
|
+
${t.accuracy ? a`<div class="accuracy-note">Accuracy: ${t.accuracy}</div>` : e}
|
|
430
429
|
</div>
|
|
431
430
|
<button
|
|
432
431
|
class="copy-button"
|
|
433
|
-
?disabled=${!
|
|
434
|
-
@click=${(
|
|
432
|
+
?disabled=${!t.coords}
|
|
433
|
+
@click=${(e) => t.coords && this.copyToClipboard(t.coords, e)}
|
|
435
434
|
title="Copy to clipboard"
|
|
436
435
|
>
|
|
437
436
|
<svg class="copy-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
@@ -441,12 +440,12 @@ var c = "https://cdn.jsdelivr.net/npm/@edugis-org/webmapx@0.1.15/public", l = 6e
|
|
|
441
440
|
</button>
|
|
442
441
|
</div>
|
|
443
442
|
`)}
|
|
444
|
-
` :
|
|
443
|
+
` : e}
|
|
445
444
|
</div>
|
|
446
445
|
`;
|
|
447
446
|
}
|
|
448
447
|
render() {
|
|
449
|
-
return
|
|
448
|
+
return a`
|
|
450
449
|
<div class="coordinates-shell" role="status" aria-live="polite" tabindex="0" aria-label="Cursor coordinates">
|
|
451
450
|
<div class="value-line">
|
|
452
451
|
<span class="value">${this.formatPair(this.cursorCoords, this.resolution)}</span>
|
|
@@ -643,6 +642,6 @@ var c = "https://cdn.jsdelivr.net/npm/@edugis-org/webmapx@0.1.15/public", l = 6e
|
|
|
643
642
|
super.disconnectedCallback(), document.removeEventListener("click", this.handleOutsideClick);
|
|
644
643
|
}
|
|
645
644
|
};
|
|
646
|
-
|
|
645
|
+
o([n()], h.prototype, "cursorCoords", void 0), o([n()], h.prototype, "pinnedCoords", void 0), o([n()], h.prototype, "resolution", void 0), o([n()], h.prototype, "pinnedResolution", void 0), o([n()], h.prototype, "showPopup", void 0), o([n()], h.prototype, "popupDirection", void 0), o([n()], h.prototype, "localCRS", void 0), o([n()], h.prototype, "loadingCRS", void 0), o([r(".click-row")], h.prototype, "clickRowElement", void 0), h = o([i("webmapx-coordinates-tool")], h);
|
|
647
646
|
//#endregion
|
|
648
647
|
export { h as WebmapxCoordinatesTool };
|