Custom Gis Application with Arcgis Javascript API with modern layouting
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

7 lines
2.0 KiB

// All material copyright Esri, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.30/esri/copyright.txt for details.
//>>built
define("../chunks/tslib.es6 ../core/Accessor ../core/Collection ../core/reactiveUtils ../core/accessorSupport/decorators/property ../core/has ../core/Logger ../core/RandomLCG ../core/accessorSupport/decorators/subclass ./3d/support/cameraUtils ./support/GroundViewElevationSampler".split(" "),function(c,b,f,e,d,l,m,n,g,h,k){b=class extends b{constructor(a){super(a);this.view=null;this.layerViews=new f}initialize(){this.addHandles(e.when(()=>this.view?.map?.ground,a=>a.load()));this.addHandles(this.layerViews.on("after-changes",
()=>this._layerViewsAfterChangesHandler()))}destroy(){this._set("view",null);for(const a of this.layerViews)a.destroy();this.layerViews.length=0}get elevationSampler(){return this.view&&"2d"!==this.view.type&&this.view.ready&&this.view.basemapTerrain&&this.view.basemapTerrain.ready?new k({view:this.view}):null}get extent(){const a=this.view;return a&&"2d"!==a.type&&a.ready?h.toExtent(a,a.state.camera,a.pointsOfInterest.centerOnSurfaceFrequent.renderLocation):null}get updating(){return this.suspended?
!1:this.layerViews.some(a=>a.updating)}get suspended(){return!this.view||this.view.suspended}_layerViewsAfterChangesHandler(){this.removeHandles("updating");this.addHandles(this.layerViews.map(a=>e.watch(()=>a.updating,()=>this._updateUpdating(),e.sync)).toArray(),"updating");this._updateUpdating()}_updateUpdating(){this.notifyChange("updating")}};c.__decorate([d.property({readOnly:!0})],b.prototype,"elevationSampler",null);c.__decorate([d.property({readOnly:!0})],b.prototype,"extent",null);c.__decorate([d.property({type:Boolean,
readOnly:!0})],b.prototype,"updating",null);c.__decorate([d.property({constructOnly:!0})],b.prototype,"view",void 0);c.__decorate([d.property({type:f,readOnly:!0})],b.prototype,"layerViews",void 0);c.__decorate([d.property({readOnly:!0})],b.prototype,"suspended",null);return b=c.__decorate([g.subclass("esri.views.GroundView")],b)});