chunk-Z2FNPC7X.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. import {
  2. j
  3. } from "./chunk-YLEVJ6UV.js";
  4. import {
  5. t as t2
  6. } from "./chunk-U2WD23Z5.js";
  7. import {
  8. p
  9. } from "./chunk-GN35O2ZO.js";
  10. import {
  11. n as n2
  12. } from "./chunk-XTVKPAWY.js";
  13. import {
  14. t
  15. } from "./chunk-PLWDAYK7.js";
  16. import {
  17. u
  18. } from "./chunk-2H5MD622.js";
  19. import {
  20. b
  21. } from "./chunk-DXVOOCG4.js";
  22. import {
  23. U
  24. } from "./chunk-DVUG3KID.js";
  25. import {
  26. w2 as w
  27. } from "./chunk-6T6G6LCQ.js";
  28. import {
  29. k2 as k
  30. } from "./chunk-PQFTYGF5.js";
  31. import {
  32. e,
  33. n5 as n,
  34. y3 as y
  35. } from "./chunk-2Z2TG5CU.js";
  36. import {
  37. s3 as s
  38. } from "./chunk-E5O6P5I2.js";
  39. // node_modules/@arcgis/core/layers/BaseTileLayer.js
  40. var u2;
  41. var h = new t2("0/0/0", 0, 0, 0, void 0);
  42. var d = u2 = class extends n2(t(p(b))) {
  43. constructor() {
  44. super(...arguments), this.tileInfo = j.create({ spatialReference: k.WebMercator, size: 256 }), this.type = "base-tile", this.fullExtent = new w(-20037508342787e-6, -2003750834278e-5, 2003750834278e-5, 20037508342787e-6, k.WebMercator), this.spatialReference = k.WebMercator;
  45. }
  46. getTileBounds(e2, t3, r, o) {
  47. const s2 = o || u();
  48. return h.level = e2, h.row = t3, h.col = r, h.extent = s2, this.tileInfo.updateTileInfo(h), h.extent = void 0, s2;
  49. }
  50. fetchTile(e2, r, o, s2 = {}) {
  51. const { signal: i } = s2, a = this.getTileUrl(e2, r, o), p2 = { responseType: "image", signal: i, query: { ...this.refreshParameters } };
  52. return U(a != null ? a : "", p2).then((e3) => e3.data);
  53. }
  54. async fetchImageBitmapTile(e2, r, o, s2 = {}) {
  55. const { signal: i } = s2;
  56. if (this.fetchTile !== u2.prototype.fetchTile)
  57. return createImageBitmap(await this.fetchTile(e2, r, o, s2));
  58. const a = this.getTileUrl(e2, r, o), p2 = { responseType: "blob", signal: i, query: { ...this.refreshParameters } }, { data: l } = await U(a != null ? a : "", p2);
  59. return createImageBitmap(l);
  60. }
  61. getTileUrl() {
  62. throw new s("basetilelayer:gettileurl-not-implemented", "getTileUrl() is not implemented");
  63. }
  64. };
  65. e([y({ type: j })], d.prototype, "tileInfo", void 0), e([y({ type: ["show", "hide"] })], d.prototype, "listMode", void 0), e([y({ readOnly: true, value: "base-tile" })], d.prototype, "type", void 0), e([y({ nonNullable: true })], d.prototype, "fullExtent", void 0), e([y()], d.prototype, "spatialReference", void 0), d = u2 = e([n("esri.layers.BaseTileLayer")], d);
  66. var g = d;
  67. export {
  68. g
  69. };
  70. //# sourceMappingURL=chunk-Z2FNPC7X.js.map