chunk-F4V56GSN.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import {
  2. r,
  3. z
  4. } from "./chunk-KTSVAGSV.js";
  5. import {
  6. o
  7. } from "./chunk-6T6G6LCQ.js";
  8. import {
  9. k2 as k
  10. } from "./chunk-PQFTYGF5.js";
  11. import {
  12. e,
  13. n5 as n,
  14. y3 as y
  15. } from "./chunk-2Z2TG5CU.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 null != r2.minLOD && null != r2.maxLOD ? e2 : 0;
  24. }
  25. readMaxScale(e2, r2) {
  26. return null != r2.minLOD && null != r2.maxLOD ? 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([y({ json: { read: { source: "copyrightText" } } })], l.prototype, "copyright", void 0), e([y()], l.prototype, "minScale", void 0), e([o("service", "minScale")], l.prototype, "readMinScale", null), e([y()], l.prototype, "maxScale", void 0), e([o("service", "maxScale")], l.prototype, "readMaxScale", null), e([y({ type: k })], l.prototype, "spatialReference", void 0), e([y({ readOnly: true })], l.prototype, "supportsBlankTile", null), e([y(r)], l.prototype, "tileInfo", void 0), e([y()], l.prototype, "tilemapCache", void 0), e([o("service", "tilemapCache", ["capabilities"])], l.prototype, "readTilemapCache", null), e([y()], l.prototype, "version", void 0), l = e([n("esri.layers.mixins.ArcGISCachedService")], l), l;
  36. };
  37. export {
  38. s
  39. };
  40. //# sourceMappingURL=chunk-F4V56GSN.js.map