chunk-MWBB6M6Y.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import {
  2. S
  3. } from "./chunk-RBZL6SRZ.js";
  4. import {
  5. n as n2
  6. } from "./chunk-CYI7KFYB.js";
  7. import {
  8. a
  9. } from "./chunk-5LXROFTA.js";
  10. import {
  11. t
  12. } from "./chunk-W72F6AS3.js";
  13. import {
  14. u
  15. } from "./chunk-N2663GRX.js";
  16. import {
  17. b
  18. } from "./chunk-4DDBH2K5.js";
  19. import {
  20. U
  21. } from "./chunk-VNFRAYHO.js";
  22. import {
  23. M2 as M
  24. } from "./chunk-ECW2QABR.js";
  25. import {
  26. k2 as k
  27. } from "./chunk-MRJEICT6.js";
  28. import {
  29. d,
  30. e,
  31. n2 as n
  32. } from "./chunk-Y3WMVFTW.js";
  33. import {
  34. s3 as s
  35. } from "./chunk-EMJ4ZSM2.js";
  36. // node_modules/@arcgis/core/layers/BaseTileLayer.js
  37. var u2 = { id: "0/0/0", level: 0, row: 0, col: 0, extent: null };
  38. var y = class extends a(t(n2(b))) {
  39. constructor() {
  40. super(...arguments), this.tileInfo = S.create({ spatialReference: k.WebMercator, size: 256 }), this.type = "base-tile", this.fullExtent = new M(-20037508342787e-6, -2003750834278e-5, 2003750834278e-5, 20037508342787e-6, k.WebMercator), this.spatialReference = k.WebMercator;
  41. }
  42. getTileBounds(e2, t2, r, o) {
  43. const s2 = o || u();
  44. return u2.level = e2, u2.row = t2, u2.col = r, u2.extent = s2, this.tileInfo.updateTileInfo(u2), u2.extent = null, s2;
  45. }
  46. fetchTile(e2, r, o, s2 = {}) {
  47. const { signal: i } = s2, l = this.getTileUrl(e2, r, o), p = { responseType: "image", signal: i, query: { ...this.refreshParameters } };
  48. return U(l, p).then((e3) => e3.data);
  49. }
  50. getTileUrl() {
  51. throw new s("basetilelayer:gettileurl-not-implemented", "getTileUrl() is not implemented");
  52. }
  53. };
  54. e([d({ type: S })], y.prototype, "tileInfo", void 0), e([d({ type: ["show", "hide"] })], y.prototype, "listMode", void 0), e([d({ readOnly: true, value: "base-tile" })], y.prototype, "type", void 0), e([d({ nonNullable: true })], y.prototype, "fullExtent", void 0), e([d()], y.prototype, "spatialReference", void 0), y = e([n("esri.layers.BaseTileLayer")], y);
  55. var d2 = y;
  56. export {
  57. d2 as d
  58. };
  59. //# sourceMappingURL=chunk-MWBB6M6Y.js.map