UNPKG

@doegis/core

Version:

DOE GIS API

3 lines (1 loc) 2.02 kB
import{_ as r}from"../../../chunks/tslib.es6.js";import e from"../../../core/Error.js";import{watch as t}from"../../../core/reactiveUtils.js";import{property as s}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/accessorSupport/ensureType.js";import"../../../core/arrayUtils.js";import{subclass as o}from"../../../core/accessorSupport/decorators/subclass.js";import{StreamController as i}from"../../../layers/graphics/controllers/StreamController.js";import a from"../../../rest/support/Query.js";import{FeatureLikeLayerView3D as l}from"./FeatureLikeLayerView3D.js";import{LayerView3D as n}from"./LayerView3D.js";import{UpdatePolicy as p}from"../webgl-engine/lib/UpdatePolicy.js";import c from"../../layers/LayerView.js";import u from"../../layers/StreamLayerView.js";let m=class extends(u(l(n(c)))){constructor(){super(...arguments),this.type="stream-3d",this.updatePolicy=p.ASYNC,this.hasZ=!0,this.hasM=!1,this._isUserPaused=!1}initialize(){this.handles.add(t((()=>this.suspended),(r=>{this.controller&&(r?this.controller.pauseStream():this._isUserPaused||this.controller.resumeStream())})))}get connectionError(){const r=this.get("controller.connection.errorString");if(r)return new e("stream-controller",r)}pause(){this._isUserPaused=!0,this.controller.pauseStream()}resume(){this._isUserPaused=!1,this.controller.resumeStream()}createQuery(){return new a({outFields:["*"],returnGeometry:!0,outSpatialReference:this.view.spatialReference})}queryLatestObservations(r,e){return this.queryEngine.executeQueryForLatestObservations(this._ensureQuery(r),e?.signal)}createController(){return new i({layer:this.layer,layerView:this})}beforeSetController(){}};r([s({readOnly:!0})],m.prototype,"updatePolicy",void 0),r([s({readOnly:!0})],m.prototype,"connectionError",null),r([s()],m.prototype,"controller",void 0),r([s({readOnly:!0})],m.prototype,"hasZ",void 0),r([s({readOnly:!0})],m.prototype,"hasM",void 0),m=r([o("esri.views.3d.layers.StreamLayerView3D")],m);const y=m;export{y as default};