UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

3 lines (2 loc) 1.43 kB
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ import{__decorate as e}from"tslib";import{property as r,subclass as t}from"../core/accessorSupport/decorators.js";import{owningCollectionProperty as o}from"../core/support/OwningCollection.js";import i from"./Layer.js";import{BlendLayer as s}from"./mixins/BlendLayer.js";import{ScaleRangeLayer as p}from"./mixins/ScaleRangeLayer.js";import{GraphicsCollection as a}from"../support/GraphicsCollection.js";import n from"../symbols/support/ElevationInfo.js";let h=class extends(s(p(i))){constructor(e){super(e),this.elevationInfo=null,this.graphics=new a,this.screenSizePerspectiveEnabled=!0,this.type="graphics",this.internal=!1}destroy(){this.removeAll(),this.graphics.destroy()}get loaded(){return super.loaded}add(e){return this.graphics.add(e),this}addMany(e){return this.graphics.addMany(e),this}removeAll(){return this.graphics.removeAll(),this}remove(e){this.graphics.remove(e)}removeMany(e){this.graphics.removeMany(e)}graphicChanged(e){this.emit("graphic-update",e)}};e([r({type:n})],h.prototype,"elevationInfo",void 0),e([r(o(a,"graphics"))],h.prototype,"graphics",void 0),e([r({type:["show","hide"]})],h.prototype,"listMode",void 0),e([r()],h.prototype,"screenSizePerspectiveEnabled",void 0),e([r({readOnly:!0})],h.prototype,"type",void 0),e([r({constructOnly:!0})],h.prototype,"internal",void 0),h=e([t("esri.layers.GraphicsLayer")],h);export{h as default};