@edugis-org/webmapx 0.1.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.
Files changed (84) hide show
  1. package/README.md +149 -0
  2. package/dist-lib/WMTS-DCN4zX0-.js +1169 -0
  3. package/dist-lib/alert-GeHlqlN8.js +310 -0
  4. package/dist-lib/assets/epsg-lookup.worker-J7TVnHDq.js +1 -0
  5. package/dist-lib/assets/shapefile.worker-kQfZj6G2.js +4 -0
  6. package/dist-lib/attribution-format-B4f05_u0.js +62 -0
  7. package/dist-lib/button-DFdGkRPQ.js +741 -0
  8. package/dist-lib/cesium-adapter-BHXNytkU.js +1488 -0
  9. package/dist-lib/checkbox-QoR4S8tV.js +284 -0
  10. package/dist-lib/chunk-HEgqtunE.js +20 -0
  11. package/dist-lib/chunk.36O46B5H-B6ZL7Sm1.js +77 -0
  12. package/dist-lib/chunk.3RPBFEDE-BFO1fHVm.js +138 -0
  13. package/dist-lib/chunk.5JY5FUCG-DTXsslmx.js +1090 -0
  14. package/dist-lib/chunk.6CTB5ZDJ-DjZrBd6Y.js +99 -0
  15. package/dist-lib/chunk.AJ3ENQ5C-Ci7Gm2b6.js +175 -0
  16. package/dist-lib/chunk.LD4M4QGE-CiCfhE8r.js +8 -0
  17. package/dist-lib/chunk.NYIIDP5N-BikXIStD.js +99 -0
  18. package/dist-lib/chunk.RWUUFNUL-DFztA4uV.js +43 -0
  19. package/dist-lib/chunk.SI4ACBFK-CLb9VfMG.js +61 -0
  20. package/dist-lib/chunk.YHLNUJ7P-D-kanrCf.js +503 -0
  21. package/dist-lib/core-CMAlSR68.js +22 -0
  22. package/dist-lib/decorate-CWgUV1hU.js +1139 -0
  23. package/dist-lib/decorators-B35AgiCU.js +351 -0
  24. package/dist-lib/deferred-query-service-BJDcngw6.js +386 -0
  25. package/dist-lib/dist-Dm6b7XCs.js +12318 -0
  26. package/dist-lib/dist-Ha9LQCut.js +244 -0
  27. package/dist-lib/dist-c1PlDAd1.js +2359 -0
  28. package/dist-lib/dist-kKlmcBXq.js +50 -0
  29. package/dist-lib/divider-CPm675yY.js +41 -0
  30. package/dist-lib/dropped-config-C_GyVa8o.js +17 -0
  31. package/dist-lib/dropped-layer-builder-DAaYgUPk.js +396 -0
  32. package/dist-lib/epsg-definitions-BZLZWa8Q.js +668 -0
  33. package/dist-lib/esm-CTuscnN5.js +46 -0
  34. package/dist-lib/file-sniff-Dhxj3KTF.js +251 -0
  35. package/dist-lib/geo-calculations-DbFJAUoI.js +30 -0
  36. package/dist-lib/icon-CEOgWlro.js +9 -0
  37. package/dist-lib/icon-button-Da_nBTy3.js +408 -0
  38. package/dist-lib/input-CeGntPlT.js +590 -0
  39. package/dist-lib/layer-discovery-afWzu5hY.js +2825 -0
  40. package/dist-lib/leaflet-adapter-D9djjrKv.js +1227 -0
  41. package/dist-lib/lib-CdHVicAE.js +4074 -0
  42. package/dist-lib/map-layer-registry-2cmkiRDK.js +62 -0
  43. package/dist-lib/maplibre-adapter-TFc3e0G9.js +1190 -0
  44. package/dist-lib/maplibre-expression-evaluator-DCWUcpwf.js +7233 -0
  45. package/dist-lib/marker-utils-DztWXeop.js +12 -0
  46. package/dist-lib/ol-tilegrid-9VtyxaLG.js +64 -0
  47. package/dist-lib/openlayers-adapter-DVW1KCRv.js +13307 -0
  48. package/dist-lib/option-CBxl1mZP.js +1106 -0
  49. package/dist-lib/papaparse.min-B7v3c0D7.js +501 -0
  50. package/dist-lib/rbush-C8k41T4z.js +254 -0
  51. package/dist-lib/shapefile-SawVY6xg.js +207 -0
  52. package/dist-lib/spinner-DysxdNG9.js +6 -0
  53. package/dist-lib/src-CL94RDe3.js +111 -0
  54. package/dist-lib/throttle-BeneRNYK.js +16 -0
  55. package/dist-lib/toast-Cm28o9U6.js +15 -0
  56. package/dist-lib/togeojson.es-DAgiTBvg.js +579 -0
  57. package/dist-lib/tooltip-Cucn1SiD.js +197 -0
  58. package/dist-lib/webmapx-3d-tool-D4CTD2gB.js +176 -0
  59. package/dist-lib/webmapx-base-tool-Dm9NAWLD.js +75 -0
  60. package/dist-lib/webmapx-config-edit-tool-DCTyxqTk.js +389 -0
  61. package/dist-lib/webmapx-coordinates-tool-jeWohup9.js +648 -0
  62. package/dist-lib/webmapx-core-bundle-BDImi1RE.js +8203 -0
  63. package/dist-lib/webmapx-draw-tool-DooAV8cF.js +4336 -0
  64. package/dist-lib/webmapx-geolocation-tool-Rw3-Iad1.js +788 -0
  65. package/dist-lib/webmapx-import-layer-tool-DRYviHd5.js +250 -0
  66. package/dist-lib/webmapx-info-tool-BJA157cy.js +412 -0
  67. package/dist-lib/webmapx-language-osmvector-M5y_lwOg.js +489 -0
  68. package/dist-lib/webmapx-measure-tool-BXhMJFC6.js +590 -0
  69. package/dist-lib/webmapx-modal-tool-eF6Naluv.js +84 -0
  70. package/dist-lib/webmapx-plugin-tool-D2Hghf9n.js +45 -0
  71. package/dist-lib/webmapx-print-tool-ob1bOsR5.js +348 -0
  72. package/dist-lib/webmapx-search-tool-Cv8BrYvY.js +437 -0
  73. package/dist-lib/webmapx-settings-DDEJ8aoV.js +479 -0
  74. package/dist-lib/webmapx-truearea-tool-CMB4Orm-.js +615 -0
  75. package/dist-lib/webmapx-view-mode-tool-CUpLNjOj.js +106 -0
  76. package/dist-lib/webmapx.css +2 -0
  77. package/dist-lib/webmapx.js +1321 -0
  78. package/dist-lib/wms-feature-info-C0RVMEQC.js +145 -0
  79. package/dist-lib/wms-url-builder-DIJLQ1v2.js +54 -0
  80. package/dist-lib/zip.js-DVhmtjxZ.js +3615 -0
  81. package/package.json +107 -0
  82. package/public/data/country-epsg-codes.json +297 -0
  83. package/public/data/world-countries-simplified.topojson +1 -0
  84. package/src/locales/en/core.json +20 -0
@@ -0,0 +1,12 @@
1
+ //#region src/map/marker-utils.ts
2
+ function e(e = "#e63946") {
3
+ return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 36" width="24" height="36">
4
+ <path d="M12 0C5.373 0 0 5.373 0 12c0 9 12 24 12 24S24 21 24 12C24 5.373 18.627 0 12 0z" fill="${e}" stroke="rgba(0,0,0,0.25)" stroke-width="1"/>
5
+ <circle cx="12" cy="12" r="5" fill="white" opacity="0.9"/>
6
+ </svg>`;
7
+ }
8
+ function t(t = "#e63946") {
9
+ return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(e(t))}`;
10
+ }
11
+ //#endregion
12
+ export { e as n, t };
@@ -0,0 +1,64 @@
1
+ import { n as e } from "./lib-CdHVicAE.js";
2
+ import { A as t, B as n, N as r, Z as i, et as a, j as o, k as s, t as c, tt as l } from "./WMTS-DCN4zX0-.js";
3
+ //#region node_modules/ol/proj/proj4.js
4
+ var u = null;
5
+ function d(e) {
6
+ u = e;
7
+ let n = Object.keys(e.defs), c = n.length, d, f;
8
+ for (d = 0; d < c; ++d) {
9
+ let t = n[d];
10
+ if (!a(t)) {
11
+ let n = e.defs(t), r = n.units;
12
+ !r && n.projName === "longlat" && (r = "degrees"), o(new l({
13
+ code: t,
14
+ axisOrientation: n.axis,
15
+ metersPerUnit: n.to_meter,
16
+ units: r
17
+ }));
18
+ }
19
+ }
20
+ for (d = 0; d < c; ++d) {
21
+ let o = n[d], l = a(o);
22
+ for (f = 0; f < c; ++f) {
23
+ let c = n[f], u = a(c);
24
+ if (!i(o, c)) if (e.defs[o] === e.defs[c]) t([l, u]);
25
+ else {
26
+ let t = e(o, c);
27
+ s(l, u, r(l, u, t.forward), r(u, l, t.inverse));
28
+ }
29
+ }
30
+ }
31
+ }
32
+ var f = async function(e) {
33
+ let t = await fetch(`https://epsg.io/${e}.proj4`);
34
+ if (!t.ok) throw Error(`Unexpected response from epsg.io: ${t.status}`);
35
+ return t.text();
36
+ };
37
+ async function p(e) {
38
+ typeof e == "string" && (e = parseInt(e.split(":").pop(), 10));
39
+ let t = u;
40
+ if (!t) throw Error("Proj4 must be registered first with register(proj4)");
41
+ let n = "EPSG:" + e;
42
+ return t.defs(n) ? a(n) : (t.defs(n, await f(e)), d(t), a(n));
43
+ }
44
+ //#endregion
45
+ //#region node_modules/@camptocamp/ogc-client/dist/wmts/ol-tilegrid.js
46
+ d(e);
47
+ async function m(e, t) {
48
+ let r = n(e.crs);
49
+ if (r ||= await p(e.crs), !r) throw Error(`[ogc-client] could not create OpenLayers tile grid, the following projection is unknown: ${e.crs}`);
50
+ return c({
51
+ SupportedCRS: r,
52
+ TileMatrix: e.tileMatrices.map((e) => ({
53
+ Identifier: e.identifier,
54
+ ScaleDenominator: e.scaleDenominator,
55
+ TopLeftCorner: e.topLeft,
56
+ TileWidth: e.tileWidth,
57
+ TileHeight: e.tileHeight,
58
+ MatrixWidth: e.matrixWidth,
59
+ MatrixHeight: e.matrixHeight
60
+ }))
61
+ }, null, t.map((e) => ({ TileMatrix: e.tileMatrix })));
62
+ }
63
+ //#endregion
64
+ export { m as buildOpenLayersTileGrid };