@doegis/core
Version:
DOE GIS API
3 lines (1 loc) • 834 B
JavaScript
import{getJsonType as r}from"../../../../../geometry/support/jsonUtils.js";import{convertFromGraphics as t}from"../../../../../layers/graphics/featureConversionUtils.js";import{FeatureSetReader as e}from"./FeatureSetReader.js";import{FeatureSetReaderJSON as s}from"./FeatureSetReaderJSON.js";class o extends s{static from(s,n,i){const c=e.createInstance(),u=[],a=s.filter((r=>!!r.geometry));for(const e of a){const s=r(e.geometry);t(u,[e],s,!1,!1,n)}return new o(c,u,i)}constructor(r,t,e){super(r,t,null),this._transform=e}get geometryType(){const r=this._current;return r?r.geometryType:null}get insertAfter(){return this._current.insertAfter}readGraphic(){return this._current}getCursor(){return this.copy()}copy(){const r=new o(this.instance,this._features,this._transform);return this.copyInto(r),r}}export{o as GraphicsReader};