@doegis/core
Version:
DOE GIS API
3 lines (1 loc) • 1.13 kB
JavaScript
import{_ as e}from"../../../chunks/tslib.es6.js";import r from"../../../core/Error.js";import{property as o}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/accessorSupport/ensureType.js";import"../../../core/arrayUtils.js";import{subclass as s}from"../../../core/accessorSupport/decorators/subclass.js";import{LayerView3D as i}from"./LayerView3D.js";import{TiledLayerView3D as t}from"./TiledLayerView3D.js";import a from"../../layers/LayerView.js";let l=class extends(t(i(a))){constructor(){super(...arguments),this.type="elevation-3d"}get tileInfo(){return this.layer.tileInfo}initialize(){const e=this.view?.map?.allLayers,o=e&&e.includes(this.layer),s=this.view?.map?.ground?.layers,i=s&&s.includes(this.layer);if(o&&!i){const e=new r("layerview:elevation-layer-only","3D elevation layer '"+this.layer.id+"' can only be added to layers in map.ground");this.addResolvingPromise(Promise.reject(e))}this._addTilingSchemeMatchPromise()}};e([o()],l.prototype,"layer",void 0),e([o()],l.prototype,"tileInfo",null),l=e([s("esri.views.3d.layers.ElevationLayerView3D")],l);const n=l;export{n as default};