// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("require ../chunks/tslib.es6 ../geometry ../core/Error ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/subclass ../geometry/support/aaBoundingRect ./Layer ./support/TileInfo ./support/TileKey ../geometry/SpatialReference ../geometry/Extent".split(" "),function(m,d,a,n,f,v,w,x,p,q,r,l,t,k,u){const e=new t.TileKey("0/0/0",0,0,0,void 0);a=class extends r{constructor(){super(...arguments);this.tileInfo=l.create({spatialReference:k.WebMercator, size:256});this.fullExtent=new u(-2.0037508342787E7,-2.003750834278E7,2.003750834278E7,2.0037508342787E7,k.WebMercator);this.spatialReference=k.WebMercator;this.type="base-elevation"}getTileBounds(b,c,g,h){h=h||q.zero;e.level=b;e.row=c;e.col=g;e.extent=h;this.tileInfo.updateTileInfo(e);e.extent=void 0;return h}fetchTile(){throw new n("BaseElevationLayer:fetchTile-not-implemented","fetchTile() is not implemented");}queryElevation(b,c){return this._importElevationQuery().then(g=>(new g.ElevationQuery).query(this, b,c))}createElevationSampler(b,c){return this._importElevationQuery().then(g=>(new g.ElevationQuery).createSampler(this,b,c))}_importElevationQuery(){return new Promise((b,c)=>m(["./support/ElevationQuery"],b,c))}};d.__decorate([f.property({type:l})],a.prototype,"tileInfo",void 0);d.__decorate([f.property({type:["show","hide"]})],a.prototype,"listMode",void 0);d.__decorate([f.property()],a.prototype,"fullExtent",void 0);d.__decorate([f.property()],a.prototype,"spatialReference",void 0);d.__decorate([f.property({readOnly:!0, value:"base-elevation"})],a.prototype,"type",void 0);return a=d.__decorate([p.subclass("esri.layers.BaseElevationLayer")],a)});