UNPKG

@arcgis/core

Version:

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

3 lines (2 loc) 8.87 kB
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ import{__decorate as e}from"tslib";import t from"../../PopupTemplate.js";import{clone as r}from"../../core/lang.js";import{MultiOriginJSONSupportMixin as i}from"../../core/MultiOriginJSONSupport.js";import{property as n,subclass as o}from"../../core/accessorSupport/decorators.js";import l from"../../form/FormTemplate.js";import p from"../../graphic/CatalogGraphicOrigin.js";import s 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 F from"../support/LabelClass.js";import{reader as j}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 q=class extends(u(d(a(i(s))))){constructor(e){super(e),this.attributeTableTemplate=null,this.charts=null,this.editingEnabled=!0,this.elevationInfo=null,this.formTemplate=null,this.graphicOrigin=new p(this),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)],q.prototype,"attributeTableTemplate",void 0),e([n({readOnly:!0})],q.prototype,"apiKey",null),e([n({readOnly:!0})],q.prototype,"capabilities",null),e([n({readOnly:!0})],q.prototype,"customParameters",null),e([n()],q.prototype,"dateFieldsTimeZone",null),e([n({readOnly:!0})],q.prototype,"datesInUnknownTimezone",null),e([n({readOnly:!0})],q.prototype,"definitionExpression",null),e([n({readOnly:!0})],q.prototype,"editingInfo",null),e([n({readOnly:!0})],q.prototype,"effectiveCapabilities",null),e([n({json:{origins:{"web-scene":{write:!1}},write:!0}})],q.prototype,"charts",void 0),e([n({readOnly:!0})],q.prototype,"createQueryVersion",null),e([n({readOnly:!0})],q.prototype,"defaultPopupTemplate",null),e([n({readOnly:!0})],q.prototype,"displayField",null),e([n({type:Boolean,nonNullable:!0,json:{name:"enableEditing",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],q.prototype,"editingEnabled",void 0),e([n({readOnly:!0})],q.prototype,"effectiveEditingEnabled",null),e([n((()=>{const e=r(m);return e.json.origins["web-map"]={read:!1,write:!1},e})())],q.prototype,"elevationInfo",void 0),e([n({readOnly:!0})],q.prototype,"fields",null),e([n({readOnly:!0})],q.prototype,"fieldsIndex",null),e([n({type:l,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],q.prototype,"formTemplate",void 0),e([n({readOnly:!0})],q.prototype,"fullExtent",null),e([n({readOnly:!0})],q.prototype,"geometryFieldsInfo",null),e([n({readOnly:!0})],q.prototype,"geometryType",null),e([n({readOnly:!0})],q.prototype,"globalIdField",null),e([n({readOnly:!0,clonable:!1})],q.prototype,"graphicOrigin",void 0),e([n({readOnly:!0})],q.prototype,"hasM",null),e([n({readOnly:!0})],q.prototype,"hasZ",null),e([n({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0,isRequired:!0}}})],q.prototype,"id",void 0),e([n({type:[F],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:j,write:!0}})],q.prototype,"labelingInfo",void 0),e([n(h)],q.prototype,"labelsVisible",void 0),e([n(g)],q.prototype,"legendEnabled",void 0),e([n({type:["show","hide"],json:{write:!0}})],q.prototype,"listMode",void 0),e([n((()=>{const e=r(f);return e.json.origins.service.read=!1,e})())],q.prototype,"maxScale",void 0),e([n((()=>{const e=r(c);return e.json.origins.service.read=!1,e})())],q.prototype,"minScale",void 0),e([n({readOnly:!0})],q.prototype,"objectIdField",null),e([n(b)],q.prototype,"opacity",void 0),e([n({readOnly:!0})],q.prototype,"orderBy",null),e([n({readOnly:!0})],q.prototype,"outFields",null),e([n({clonable:!1})],q.prototype,"parent",void 0),e([n({readOnly:!0})],q.prototype,"parsedUrl",null),e([n(O)],q.prototype,"popupEnabled",void 0),e([n({type:t,json:{name:"popupInfo",write:!0}})],q.prototype,"popupTemplate",void 0),e([n({readOnly:!0})],q.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)<3}}}}})],q.prototype,"renderer",null),e([n({readOnly:!0})],q.prototype,"returnM",null),e([n({readOnly:!0})],q.prototype,"returnZ",null),e([n({readOnly:!0})],q.prototype,"source",null),e([n({readOnly:!0})],q.prototype,"timeExtent",null),e([n({readOnly:!0})],q.prototype,"timeInfo",null),e([n({readOnly:!0})],q.prototype,"timeOffset",null),e([n({type:String,nonNullable:!0,json:{write:{ignoreOrigin:!0,isRequired:!0}}})],q.prototype,"title",void 0),e([n({json:{read:!1}})],q.prototype,"type",void 0),e([n({readOnly:!0})],q.prototype,"typeIdField",null),e([n({readOnly:!0})],q.prototype,"types",null),e([n({readOnly:!0})],q.prototype,"useViewTime",null),e([n({type:Boolean,json:{name:"visibility",write:!0}})],q.prototype,"visible",void 0),q=e([o("esri.layers.catalog.CatalogFootprintLayer")],q);export{q as default};