BaseElevationLayer.js 1.9 KB

12345
  1. /*
  2. All material copyright ESRI, All Rights Reserved, unless otherwise specified.
  3. See https://js.arcgis.com/4.25/esri/copyright.txt for details.
  4. */
  5. import{_ as e}from"../chunks/tslib.es6.js";import"../geometry.js";import t from"../core/Error.js";import{property as r}from"../core/accessorSupport/decorators/property.js";import"../core/arrayUtils.js";import"../core/accessorSupport/ensureType.js";import{subclass as o}from"../core/accessorSupport/decorators/subclass.js";import{ZERO as i}from"../geometry/support/aaBoundingRect.js";import s from"./Layer.js";import p from"./support/TileInfo.js";import{TileKey as a}from"./support/TileKey.js";import n from"../geometry/SpatialReference.js";import l from"../geometry/Extent.js";const m=new a("0/0/0",0,0,0,void 0);let c=class extends s{constructor(){super(...arguments),this.tileInfo=p.create({spatialReference:n.WebMercator,size:256}),this.fullExtent=new l(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,n.WebMercator),this.spatialReference=n.WebMercator,this.type="base-elevation"}getTileBounds(e,t,r,o){const s=o||i;return m.level=e,m.row=t,m.col=r,m.extent=s,this.tileInfo.updateTileInfo(m),m.extent=void 0,s}fetchTile(){throw new t("BaseElevationLayer:fetchtile-not-implemented","fetchTile() is not implemented")}queryElevation(e,t){return this._importElevationQuery().then((r=>(new r.ElevationQuery).query(this,e,t)))}createElevationSampler(e,t){return this._importElevationQuery().then((r=>(new r.ElevationQuery).createSampler(this,e,t)))}_importElevationQuery(){return import("./support/ElevationQuery.js")}};e([r({type:p})],c.prototype,"tileInfo",void 0),e([r({type:["show","hide"]})],c.prototype,"listMode",void 0),e([r()],c.prototype,"fullExtent",void 0),e([r()],c.prototype,"spatialReference",void 0),e([r({readOnly:!0,value:"base-elevation"})],c.prototype,"type",void 0),c=e([o("esri.layers.BaseElevationLayer")],c);const u=c;export{u as default};