UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 9.02 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 t from"../../PopupTemplate.js";import{clone as r}from"../../core/lang.js";import{MultiOriginJSONMixin as i}from"../../core/MultiOriginJSONSupport.js";import{property as n}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import{subclass as o}from"../../core/accessorSupport/decorators/subclass.js";import{OriginId as l}from"../../core/accessorSupport/PropertyOrigin.js";import s from"../../form/FormTemplate.js";import p from"../Layer.js";import{BlendLayer as a}from"../mixins/BlendLayer.js";import{FeatureEffectLayer as d}from"../mixins/FeatureEffectLayer.js";import{ScaleRangeLayer as u}from"../mixins/ScaleRangeLayer.js";import{attributeTableTemplate as y,elevationInfo as m,labelsVisible as h,legendEnabled as g,maxScale as f,minScale as c,opacity as b,popupEnabled as O}from"../support/commonProperties.js";import{fixRendererFields as I}from"../support/fieldUtils.js";import j from"../support/LabelClass.js";import{reader as F}from"../support/labelingInfo.js";import v from"../../renderers/SimpleRenderer.js";import{webSceneRendererTypes as w,rendererTypes as T}from"../../renderers/support/typeUtils.js";import{createPopupTemplate as E}from"../../support/popupUtils.js";import x from"../../symbols/SimpleFillSymbol.js";function S(){const e=new x({style:"solid",color:[0,0,0,0],outline:{style:"solid",color:[96,96,96,.75],width:.75}});return new v({symbol:e})}let P=class extends(u(d(a(i(p))))){constructor(e){super(e),this.attributeTableTemplate=null,this.charts=null,this.editingEnabled=!0,this.elevationInfo=null,this.formTemplate=null,this.labelingInfo=null,this.labelsVisible=!0,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.opacity=1,this.parent=null,this.persistenceEnabled=!0,this.popupEnabled=!0,this.popupTemplate=null,this.title="Footprints",this.type="catalog-footprint",this.visible=!0}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){await this.parent.load(e),I(this.renderer,this.fieldsIndex),this.addHandles([this.parent.on("apply-edits",(e=>this.emit("apply-edits",e))),this.parent.on("edits",(e=>this.emit("edits",e))),this.parent.on("refresh",(e=>this.emit("refresh",e)))])}get apiKey(){return this.parent?.apiKey}get capabilities(){return this.parent?.capabilities}get customParameters(){return this.parent?.customParameters}get dateFieldsTimeZone(){return this.parent?.dateFieldsTimeZone??null}get datesInUnknownTimezone(){return this.parent?.datesInUnknownTimezone??!1}get definitionExpression(){return this.parent?.definitionExpression}get editingInfo(){return this.parent?.editingInfo}get effectiveCapabilities(){return this.parent?.effectiveCapabilities}get createQueryVersion(){return this.parent?.createQueryVersion}get defaultPopupTemplate(){return this.createPopupTemplate()}get displayField(){return this.parent?.displayField}get displayFilterEnabled(){return this.parent?.displayFilterEnabled??!0}get displayFilterInfo(){return this.parent?.displayFilterInfo??null}get effectiveEditingEnabled(){return!1}get fields(){return this.parent?.fields}get fieldsIndex(){return this.parent?.fieldsIndex}get fullExtent(){return this.parent?.fullExtent}get geometryFieldsInfo(){return this.parent?.geometryFieldsInfo}get geometryType(){return this.parent?.geometryType}get globalIdField(){return this.parent?.globalIdField}get hasM(){return this.parent?.hasM??!1}get hasZ(){return this.parent?.hasZ??!1}get objectIdField(){return this.parent?.objectIdField}get orderBy(){return this.parent?.orderBy??null}get outFields(){return this.parent?.outFields}get parsedUrl(){return this.parent?.parsedUrl??null}get preferredTimeZone(){return this.parent?.preferredTimeZone??null}set renderer(e){I(e,this.fieldsIndex),this._set("renderer",e)}get renderer(){return this._isOverridden("renderer")?this._get("renderer"):S()}get returnM(){return this.parent?.returnM}get returnZ(){return this.parent?.returnZ}get source(){return this.parent?.source}get timeExtent(){return this.parent?.timeExtent}get timeInfo(){return this.parent?.timeInfo}get timeOffset(){return this.parent?.timeOffset}get typeIdField(){return this.parent?.typeIdField}get types(){return this.parent?.types}get useViewTime(){return this.parent?.useViewTime??!0}get version(){return this.parent?.version}async applyEdits(e,t){return await this.load(),this.parent.applyEdits(e,t)}createPopupTemplate(e){const t={fields:this.fields,objectIdField:this.objectIdField,title:this.title};return E(t,e)}createQuery(){return this.parent?.createQuery()}getField(e){return this.parent?.getField(e)}getFieldDomain(e,t){return this.parent?.getFieldDomain(e,t)}async queryExtent(e,t){return await this.load(),this.parent.queryExtent(e,t)}async queryFeatures(e,t){return await this.load(),this.parent.queryFeatures(e,t)}async queryFeatureCount(e,t){return await this.load(),this.parent.queryFeatureCount(e,t)}async queryObjectIds(e,t){return await this.load(),this.parent.queryObjectIds(e,t)}async queryAttributeBins(e,t){return await this.load(),this.parent.queryAttributeBins(e,t)}};e([n(y)],P.prototype,"attributeTableTemplate",void 0),e([n({readOnly:!0})],P.prototype,"apiKey",null),e([n({readOnly:!0})],P.prototype,"capabilities",null),e([n({readOnly:!0})],P.prototype,"customParameters",null),e([n()],P.prototype,"dateFieldsTimeZone",null),e([n({readOnly:!0})],P.prototype,"datesInUnknownTimezone",null),e([n({readOnly:!0})],P.prototype,"definitionExpression",null),e([n({readOnly:!0})],P.prototype,"editingInfo",null),e([n({readOnly:!0})],P.prototype,"effectiveCapabilities",null),e([n({json:{origins:{"web-scene":{write:!1}},write:!0}})],P.prototype,"charts",void 0),e([n({readOnly:!0})],P.prototype,"createQueryVersion",null),e([n({readOnly:!0})],P.prototype,"defaultPopupTemplate",null),e([n({readOnly:!0})],P.prototype,"displayField",null),e([n({type:Boolean,nonNullable:!0,json:{name:"enableEditing",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],P.prototype,"editingEnabled",void 0),e([n({readOnly:!0})],P.prototype,"effectiveEditingEnabled",null),e([n((()=>{const e=r(m);return e.json.origins["web-map"]={read:!1,write:!1},e})())],P.prototype,"elevationInfo",void 0),e([n({readOnly:!0})],P.prototype,"fields",null),e([n({readOnly:!0})],P.prototype,"fieldsIndex",null),e([n({type:s,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],P.prototype,"formTemplate",void 0),e([n({readOnly:!0})],P.prototype,"fullExtent",null),e([n({readOnly:!0})],P.prototype,"geometryFieldsInfo",null),e([n({readOnly:!0})],P.prototype,"geometryType",null),e([n({readOnly:!0})],P.prototype,"globalIdField",null),e([n({readOnly:!0})],P.prototype,"hasM",null),e([n({readOnly:!0})],P.prototype,"hasZ",null),e([n({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0,isRequired:!0}}})],P.prototype,"id",void 0),e([n({type:[j],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:F,write:!0}})],P.prototype,"labelingInfo",void 0),e([n(h)],P.prototype,"labelsVisible",void 0),e([n(g)],P.prototype,"legendEnabled",void 0),e([n({type:["show","hide"],json:{write:!0}})],P.prototype,"listMode",void 0),e([n((()=>{const e=r(f);return e.json.origins.service.read=!1,e})())],P.prototype,"maxScale",void 0),e([n((()=>{const e=r(c);return e.json.origins.service.read=!1,e})())],P.prototype,"minScale",void 0),e([n({readOnly:!0})],P.prototype,"objectIdField",null),e([n(b)],P.prototype,"opacity",void 0),e([n({readOnly:!0})],P.prototype,"orderBy",null),e([n({readOnly:!0})],P.prototype,"outFields",null),e([n({clonable:!1})],P.prototype,"parent",void 0),e([n({readOnly:!0})],P.prototype,"parsedUrl",null),e([n(O)],P.prototype,"popupEnabled",void 0),e([n({type:t,json:{name:"popupInfo",write:!0}})],P.prototype,"popupTemplate",void 0),e([n({readOnly:!0})],P.prototype,"preferredTimeZone",null),e([n({types:T,json:{origins:{"web-scene":{types:w}},name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy(e,t){return{ignoreOrigin:this.originIdOf(t)<l.PORTAL_ITEM}}}}})],P.prototype,"renderer",null),e([n({readOnly:!0})],P.prototype,"returnM",null),e([n({readOnly:!0})],P.prototype,"returnZ",null),e([n({readOnly:!0})],P.prototype,"source",null),e([n({readOnly:!0})],P.prototype,"timeExtent",null),e([n({readOnly:!0})],P.prototype,"timeInfo",null),e([n({readOnly:!0})],P.prototype,"timeOffset",null),e([n({type:String,nonNullable:!0,json:{write:{ignoreOrigin:!0,isRequired:!0}}})],P.prototype,"title",void 0),e([n({json:{read:!1}})],P.prototype,"type",void 0),e([n({readOnly:!0})],P.prototype,"typeIdField",null),e([n({readOnly:!0})],P.prototype,"types",null),e([n({readOnly:!0})],P.prototype,"useViewTime",null),e([n({type:Boolean,json:{name:"visibility",write:!0}})],P.prototype,"visible",void 0),P=e([o("esri.layers.catalog.CatalogFootprintLayer")],P);export{P as default};