chunk-L372ZBYB.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import {
  2. r,
  3. z
  4. } from "./chunk-VZFBPND4.js";
  5. import {
  6. o
  7. } from "./chunk-ECW2QABR.js";
  8. import {
  9. k2 as k
  10. } from "./chunk-MRJEICT6.js";
  11. import {
  12. d,
  13. e,
  14. n2 as n
  15. } from "./chunk-Y3WMVFTW.js";
  16. // node_modules/@arcgis/core/layers/mixins/ArcGISCachedService.js
  17. var s = (s2) => {
  18. let l = class extends s2 {
  19. constructor() {
  20. super(...arguments), this.copyright = null, this.minScale = 0, this.maxScale = 0, this.spatialReference = null, this.tileInfo = null, this.tilemapCache = null;
  21. }
  22. readMinScale(e2, r2) {
  23. return r2.minLOD != null && r2.maxLOD != null ? e2 : 0;
  24. }
  25. readMaxScale(e2, r2) {
  26. return r2.minLOD != null && r2.maxLOD != null ? e2 : 0;
  27. }
  28. get supportsBlankTile() {
  29. return this.version >= 10.2;
  30. }
  31. readTilemapCache(e2, r2) {
  32. return r2.capabilities && r2.capabilities.includes("Tilemap") ? new z({ layer: this }) : null;
  33. }
  34. };
  35. return e([d({ json: { read: { source: "copyrightText" } } })], l.prototype, "copyright", void 0), e([d()], l.prototype, "minScale", void 0), e([o("service", "minScale")], l.prototype, "readMinScale", null), e([d()], l.prototype, "maxScale", void 0), e([o("service", "maxScale")], l.prototype, "readMaxScale", null), e([d({ type: k })], l.prototype, "spatialReference", void 0), e([d({ readOnly: true })], l.prototype, "supportsBlankTile", null), e([d(r)], l.prototype, "tileInfo", void 0), e([d()], l.prototype, "tilemapCache", void 0), e([o("service", "tilemapCache", ["capabilities"])], l.prototype, "readTilemapCache", null), e([d()], l.prototype, "version", void 0), l = e([n("esri.layers.mixins.ArcGISCachedService")], l), l;
  36. };
  37. export {
  38. s
  39. };
  40. //# sourceMappingURL=chunk-L372ZBYB.js.map