UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 1.86 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{_ as e}from"../../chunks/tslib.es6.js";import o from"../../core/Identifiable.js";import{MultiOriginJSONSupport as r}from"../../core/MultiOriginJSONSupport.js";import{property as t}from"../../core/accessorSupport/decorators/property.js";import{Integer as i}from"../../core/accessorSupport/ensureType.js";import"../../core/has.js";import"../../core/RandomLCG.js";import{reader as s}from"../../core/accessorSupport/decorators/reader.js";import{subclass as p}from"../../core/accessorSupport/decorators/subclass.js";import{readOnlyService as l}from"../support/commonProperties.js";let n=class extends(o.IdentifiableMixin(r)){constructor(e){super(e),this.title="",this.id=-1,this.modelName=null,this.isEmpty=null,this.legendEnabled=!0,this.visible=!0,this.opacity=1}readTitle(e,o){return"string"==typeof o.alias?o.alias:"string"==typeof o.name?o.name:""}readIdOnlyOnce(e){return-1!==this.id?this.id:"number"==typeof e?e:-1}};e([t({type:String,json:{origins:{"web-scene":{write:!0},"portal-item":{write:!0}}}})],n.prototype,"title",void 0),e([s("service","title",["alias","name"])],n.prototype,"readTitle",null),e([t()],n.prototype,"layer",void 0),e([t({type:i,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,isRequired:!0}}})],n.prototype,"id",void 0),e([s("service","id")],n.prototype,"readIdOnlyOnce",null),e([t(l(String))],n.prototype,"modelName",void 0),e([t(l(Boolean))],n.prototype,"isEmpty",void 0),e([t({type:Boolean,nonNullable:!0})],n.prototype,"legendEnabled",void 0),e([t({type:Boolean,json:{name:"visibility",write:!0}})],n.prototype,"visible",void 0),e([t({type:Number,json:{write:!0}})],n.prototype,"opacity",void 0),n=e([p("esri.layers.buildingSublayers.BuildingSublayer")],n);export{n as default};