/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{__decorate as e}from"tslib";import r from"../../../core/Error.js";import{property as i,subclass as t}from"../../../core/accessorSupport/decorators.js";import{FeatureLikeLayerView3D as a}from"./FeatureLikeLayerView3D.js";import s from"../../layers/OGCFeatureLayerView.js";let l=class extends(a(s)){constructor(){super(...arguments),this.type="ogc-feature-3d"}get availableFields(){return this.layer.fieldsIndex.fields.map(e=>e.name)}get graphicOrigin(){return this.layer.graphicOrigin}initialize(){this.layer.serviceSupportsSpatialReference(this.view.spatialReference)||this.addResolvingPromise(Promise.reject(new r("layerview:spatial-reference-incompatible","The spatial references supported by this OGC layer are incompatible with the spatial reference of the view",{layer:this.layer})))}};e([i({readOnly:!0})],l.prototype,"availableFields",null),e([i()],l.prototype,"graphicOrigin",null),l=e([t("esri.views.3d.layers.OGCFeatureLayerView3D")],l);const o=l;export{o as default};
