12345 |
- /*
- All material copyright ESRI, All Rights Reserved, unless otherwise specified.
- See https://js.arcgis.com/4.24/esri/copyright.txt for details.
- */
- 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/has.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 a from"../geometry/SpatialReference.js";import n from"../geometry/Extent.js";const l={id:"0/0/0",level:0,row:0,col:0,extent:null};let c=class extends s{constructor(){super(...arguments),this.tileInfo=p.create({spatialReference:a.WebMercator,size:256}),this.fullExtent=new n(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,a.WebMercator),this.spatialReference=a.WebMercator,this.type="base-elevation"}getTileBounds(e,t,r,o){const s=o||i;return l.level=e,l.row=t,l.col=r,l.extent=s,this.tileInfo.updateTileInfo(l),l.extent=null,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 m=c;export{m as default};
|