Custom Gis Application with Arcgis Javascript API with modern layouting
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

48 lines
24 KiB

// All material copyright Esri, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.30/esri/copyright.txt for details.
//>>built
define("require ../chunks/tslib.es6 ../Graphic ../PopupTemplate ../renderers/ClassBreaksRenderer ../renderers/DictionaryRenderer ../renderers/DotDensityRenderer ../renderers/HeatmapRenderer ../renderers/PieChartRenderer ../renderers/Renderer ../renderers/SimpleRenderer ../renderers/UniqueValueRenderer ../renderers/support/jsonUtils ../renderers/support/types ../core/Clonable ../core/Collection ../core/Error ../core/Logger ../core/MultiOriginJSONSupport ../core/promiseUtils ../core/reactiveUtils ../core/accessorSupport/decorators/property ../core/has ../core/RandomLCG ../core/accessorSupport/utils ../core/accessorSupport/decorators/reader ../core/accessorSupport/decorators/subclass ../core/accessorSupport/PropertyOrigin ../geometry/Mesh ../geometry/Point ./Layer ./graphics/sources/support/uploadAssetErrors ./mixins/APIKeyMixin ./mixins/ArcGISService ./mixins/CustomParametersMixin ./mixins/EditBusLayer ./mixins/OperationalLayer ./mixins/PortalLayer ./mixins/ScaleRangeLayer ./mixins/SceneService ./mixins/TemporalLayer ./mixins/TemporalSceneLayer ./support/arcgisLayerUrl ./support/associatedFeatureServiceUtils ./support/capabilities ./support/commonProperties ./support/featureLayerUtils ./support/FeatureReduction ./support/FeatureReductionSelection ./support/fieldProperties ./support/FieldsIndex ./support/fieldUtils ./support/I3SLayerDefinitions ./support/infoFor3D ./support/LabelClass ./support/labelingInfo ./support/LayerFloorInfo ./support/lazyLayerLoader ./support/RangeInfo ./support/SceneFilter ./support/sceneLayerCacheUtils ./support/sceneLayerStatistics ../renderers/support/styleUtils ../rest/support/Query ../support/elevationInfoUtils ../support/featureFlags ../support/popupUtils ../support/zipUtils ../views/3d/layers/i3s/I3SUtil ../views/layers/support/popupUtils ../webdoc/support/opacityUtils".split(" "),
function(M,e,N,O,t,La,Ma,Na,Oa,Pa,Qa,Ra,Sa,P,c,B,h,m,Q,C,R,f,Ta,Ua,D,n,S,u,T,U,V,E,W,X,Y,Z,aa,ba,ca,v,da,ea,F,fa,ha,p,G,ia,ja,ka,la,w,q,H,ma,I,na,oa,pa,qa,ra,sa,ta,ua,r,J,va,wa,xa,K,ya){const za=new Set(["3DObject","Point"]);t=ka.defineFieldProperties();c=class extends ea.TemporalSceneLayer(Z.EditBusLayer(v.SceneService(X.ArcGISService(aa.OperationalLayer(ba.PortalLayer(ca.ScaleRangeLayer(Q.MultiOriginJSONMixin(Y.CustomParametersMixin(W.APIKeyMixin(c.ClonableMixin(V))))))))))){constructor(...a){super(...a);
this.rangeInfos=this.featureReduction=null;this.operationalLayerType="ArcGISSceneServiceLayer";this.type="scene";this.serviceUpdateTimeStamp=this.geometryDefinitions=this.textureSetDefinitions=this.materialDefinitions=this.nodePages=this.outFields=this.floorInfo=this.fields=null;this.excludeObjectIds=new B;this.path=this.filter=this.definitionExpression=null;this.labelsVisible=!0;this.labelingInfo=null;this.legendEnabled=!0;this.semantic=this.priority=null;this.cachedDrawingInfo={color:!1};this.popupEnabled=
!0;this.globalIdField=this.objectIdField=this.popupTemplate=null;this._fieldUsageInfo={};this.screenSizePerspectiveEnabled=!0;this.serviceItemId=void 0}normalizeCtorArgs(a,b){return"string"===typeof a?{url:a,...b}:a}destroy(){this._set("renderer",null)}getField(a){return this.fieldsIndex.get(a)}getFieldDomain(a,b){return(b=this.getFeatureType(b?.feature)?.domains?.[a])&&"inherited"!==b.type?b:this.getField(a)?.domain??null}getFeatureType(a){return a&&this.associatedLayer?this.associatedLayer.getFeatureType(a):
null}get types(){return this.associatedLayer?.types??[]}get typeIdField(){return this.associatedLayer?.typeIdField??null}get templates(){return this.associatedLayer?.templates??null}get formTemplate(){return this.associatedLayer?.formTemplate??null}get fieldsIndex(){return new la(this.fields)}readNodePages(a,b,d){"Point"===b.layerType&&(a=b.pointNodePages);return null==a||"object"!==typeof a?null:q.I3SNodePageDefinition.fromJSON(a,d)}set elevationInfo(a){this._set("elevationInfo",a);this.loaded&&
this._validateElevationInfo()}get effectiveCapabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.effectiveCapabilities)}get effectiveEditingEnabled(){return null!=this.associatedLayer&&G.computeEffectiveEditingEnabled(this.associatedLayer)}get geometryType(){return Aa[this.profile]||"mesh"}set renderer(a){w.fixRendererFields(a,this.fieldsIndex);this._set("renderer",a)}readCachedDrawingInfo(a){if(null==a||"object"!==typeof a)a={};null==a.color&&(a.color=!1);return a}get capabilities(){return this._capabilitiesFromAssociatedFeatureLayer(this.associatedLayer?.capabilities)}_capabilitiesFromAssociatedFeatureLayer(a){a=
null!=a?a:ha.zeroCapabilities;const {query:b,queryRelated:d,editing:{supportsGlobalId:g,supportsRollbackOnFailure:k,supportsUploadWithItemId:l,supportsGeometryUpdate:x,supportsReturnServiceEditsInSourceSpatialReference:y},data:{supportsZ:z,supportsM:Ba,isVersioned:Ca,supportsAttachment:Da},operations:{supportsEditing:Ea,supportsAdd:Fa,supportsUpdate:Ga,supportsDelete:Ha,supportsQuery:Ia,supportsQueryAttachments:Ja,supportsAsyncConvert3D:Ka}}=a;a=a.operations.supportsChangeTracking;const A=!!this.associatedLayer?.infoFor3D&&
J.sceneLayerEditingEnabled();return{query:b,queryRelated:d,editing:{supportsGlobalId:g,supportsReturnServiceEditsInSourceSpatialReference:y,supportsRollbackOnFailure:k,supportsGeometryUpdate:A&&x,supportsUploadWithItemId:l},data:{supportsAttachment:Da,supportsZ:z,supportsM:Ba,isVersioned:Ca},operations:{supportsQuery:Ia,supportsQueryAttachments:Ja,supportsEditing:Ea&&a,supportsAdd:A&&Fa&&a,supportsDelete:A&&Ha&&a,supportsUpdate:Ga&&a,supportsAsyncConvert3D:Ka}}}get editingEnabled(){return this._isOverridden("editingEnabled")?
this._get("editingEnabled"):this.associatedLayer?.editingEnabled??!1}set editingEnabled(a){this._overrideIfSome("editingEnabled",a)}get infoFor3D(){return this.associatedLayer?.infoFor3D??null}get relationships(){return this.associatedLayer?.relationships}get defaultPopupTemplate(){return this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(a,b){!a&&b.fields&&b.fields.some(d=>{"esriFieldTypeOID"===d.type&&(a=d.name);return!!a});return a||void 0}readGlobalIdField(a,
b){!a&&b.fields&&b.fields.some(d=>{"esriFieldTypeGlobalID"===d.type&&(a=d.name);return!!a});return a||void 0}get displayField(){return this.associatedLayer?.displayField??null}readProfile(a,b){a=b.store.profile;if(null!=a&&L[a])return L[a];m.getLogger(this).error("Unknown or missing profile",{profile:a,layer:this});return"mesh-pyramids"}get useViewTime(){return this.associatedLayer?.useViewTime??!0}set useViewTime(a){this._override("useViewTime",a)}load(a){this.addResolvingPromise(this._load(a));
return Promise.resolve(this)}async _load(a){const b=null!=a?a.signal:null;await this.loadFromPortal({supportedTypes:["Scene Service"]},a).catch(C.throwIfAbortError);await this._fetchService(b);await Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,b),this._setAssociatedFeatureLayer(b),this._loadFilterGeometries()]);this._validateElevationInfo();this._applyAssociatedLayerOverrides();this._populateFieldUsageInfo();await this.loadTimeInfoFromService(a);await ta.loadStyleRenderer(this,{origin:"service"},
b);w.fixRendererFields(this.renderer,this.fieldsIndex);await this.finishLoadEditablePortalLayer(a)}async beforeSave(){null!=this.filter&&(this.filter=this.filter.clone(),await this.load())}async _loadFilterGeometries(){if(this.filter)try{await this.filter.loadGeometries(this.spatialReference)}catch(a){m.getLogger(this).error("#_loadFilterGeometries()",this,"Failed to load filter geometries. Geometry filter will not be applied for this layer.",{error:a}),this.filter=null}}createQuery(){const a=new ua;
"mesh"===this.geometryType?this.associatedLayer?.infoFor3D&&(a.returnGeometry=!0):(a.returnGeometry=!0,a.returnZ=!0);a.where=this.definitionExpression||"1\x3d1";a.sqlFormat="standard";a.outFields=["*"];return a}queryExtent(a,b){return this._getAssociatedLayerForQuery().then(d=>d.queryExtent(a||this.createQuery(),b))}queryFeatureCount(a,b){return this._getAssociatedLayerForQuery().then(d=>d.queryFeatureCount(a||this.createQuery(),b))}queryFeatures(a,b){return this._getAssociatedLayerForQuery().then(d=>
d.queryFeatures(a||this.createQuery(),b)).then(d=>{if(d?.features)for(const g of d.features)g.layer=this,g.sourceLayer=this;return d})}async queryRelatedFeatures(a,b){await this.load();if(!this.associatedLayer)throw new h("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeatures(a,b)}async queryRelatedFeaturesCount(a,b){await this.load();if(!this.associatedLayer)throw new h("scenelayer:query-not-available",
"SceneLayer queries are not available without an associated feature layer",{layer:this});return this.associatedLayer.queryRelatedFeaturesCount(a,b)}async queryCachedAttributes(a,b){const d=w.unpackFieldNames(this.fieldsIndex,await K.getRequiredFields(this,K.getFetchPopupTemplate(this)));return xa.queryAttributesFromCachedAttributesId(this.parsedUrl?.path??"",this.attributeStorageInfo??[],a,b,d,this.apiKey,this.customParameters)}async queryCachedFeature(a,b){a=await this.queryCachedAttributes(a,[b]);
if(!a||0===a.length)throw new h("scenelayer:feature-not-in-cached-data","Feature not found in cached data");b=new N;b.attributes=a[0];b.layer=this;b.sourceLayer=this;return b}queryObjectIds(a,b){return this._getAssociatedLayerForQuery().then(d=>d.queryObjectIds(a||this.createQuery(),b))}queryAttachments(a,b){return this._getAssociatedLayerForQuery().then(d=>d.queryAttachments(a,b))}getFieldUsageInfo(a){const b={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};
return this.loaded?this._fieldUsageInfo[a]||b:(m.getLogger(this).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),b)}createPopupTemplate(a){return va.createPopupTemplate(this,a)}_getAssociatedLayerForQuery(){const a=this.associatedLayer;return a?.loaded?Promise.resolve(a):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){await this.load();if(!this.associatedLayer)throw new h("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",
{layer:this});try{await this.associatedLayer.load()}catch(a){throw new h("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:a});}return this.associatedLayer}hasCachedStatistics(a){return null!=this.statisticsInfo&&this.statisticsInfo.some(b=>b.name===a)}async queryCachedStatistics(a,b){await this.load(b);return await this.fetchStatistics(a,b)}async saveAs(a,b){return this._debouncedSaveOperations(v.SaveOperationType.SAVE_AS,{...b,getTypeKeywords:()=>
this._getTypeKeywords(),portalItemLayerType:"scene"},a)}async save(){return this._debouncedSaveOperations(v.SaveOperationType.SAVE,{getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"})}async applyEdits(a,b){const {applyEdits:d}=await new Promise((y,z)=>M(["./graphics/editingSupport"],y,z));await this.load();const g=this.associatedLayer;if(!g)throw new h(`${this.type}-layer:not-editable`,"Service is not editable");await g.load();const {globalIdField:k}=g,l=!!g.infoFor3D,x=b?.globalIdUsed??
!0;if(l&&null==k)throw new h(`${this.type}-layer:not-editable`,"Valid globalIdField expected on editable SceneLayer");if(l&&!x)throw new h(`${this.type}-layer:globalid-required`,"globalIdUsed must not be false for SceneLayer editing as globalIds are required.");F.isHostedAgolService(g.url)&&l&&null!=a.deleteFeatures&&null!=k&&(b={...b,globalIdToObjectId:await G.getGlobalIdToObjectIdMap(g,a.deleteFeatures,k)});return d(this,g.source,a,b)}async uploadAssets(a,b){await this.load();if(null==this.associatedLayer)throw new h(`${this.type}-layer:not-editable`,
"Service is not editable");await this.associatedLayer.load();return this.associatedLayer.uploadAssets(a,b)}on(a,b){return super.on(a,b)}async convertMesh(a,b){var d=k=>{m.getLogger(this).error(".convertMesh()",k.message);throw k;};await this.load();this.infoFor3D||d(new h("invalid:layer","SceneLayer has no capability for mesh conversion"));a=await this.extractAndFilterFiles(a);const g=a.reduce((k,l)=>H.isFileEditFormat(this.infoFor3D,l)?k+1:k,0);0===g&&d(new E.NoModelError);1<g&&d(new E.MultipleModelsError);
d=this.spatialReference;d=b?.location??new U({x:0,y:0,z:0,spatialReference:d});a=T.createWithExternalSource(d,a,{vertexSpace:d.spatialReference.isGeographic?"local":"georeferenced"});[b]=await this.uploadAssets([a],b);return b}async extractAndFilterFiles(a){await this.load();const b=this.infoFor3D;return b?(await wa.extractZipFiles(a)).filter(d=>H.isFileSupported(b,d)):a}validateLayer(a){if(a.layerType&&!za.has(a.layerType))throw new h("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",
{layerType:a.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new h("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(2<this.version.major)throw new h("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});a=this.normalReferenceFrame;var b=this.spatialReference;let d=!1,g=!1;if(null==a)g=d=!0;
else switch(b=b&&b.isGeographic,a){case "east-north-up":case "earth-centered":d=!0;g=b;break;case "vertex-reference-frame":d=!0;g=!b;break;default:d=!1}if(!d)throw new h("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!g)throw new h("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.");}_getTypeKeywords(){const a=[];if("points"===this.profile)a.push("Point");else if("mesh-pyramids"===this.profile)a.push("3DObject");
else throw new h("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);return a}_populateFieldUsageInfo(){this._fieldUsageInfo={};if(this.fields)for(const a of this.fields){const b=!!this.attributeStorageInfo?.some(g=>g.name===a.name),d=!!this.associatedLayer?.fields?.some(g=>g&&a.name===g.name);this._fieldUsageInfo[a.name]={supportsLabelingInfo:b,supportsRenderer:b,supportsPopupTemplate:b||d,supportsLayerQuery:d}}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides();
this._applyAssociatedLayerPopupOverrides();this._applyAssociatedLayerExtentOverride();this._applyAssociatedLayerPrivileges()}_applyAssociatedLayerFieldsOverrides(){if(this.associatedLayer?.fields){var a=null;for(const b of this.associatedLayer.fields){const d=this.getField(b.name);d?(!d.domain&&b.domain&&(d.domain=b.domain.clone()),d.editable=b.editable,d.nullable=b.nullable,d.length=b.length):(a||=this.fields?this.fields.slice():[],a.push(b.clone()))}a&&this._set("fields",a)}}_applyAssociatedLayerPopupOverrides(){if(this.associatedLayer){var a=
["popupTemplate","popupEnabled"],b=D.getProperties(this);for(let d=0;d<a.length;d++){const g=a[d],k=this.originIdOf(g),l=this.associatedLayer.originIdOf(g);k<l&&(l===u.OriginId.SERVICE||l===u.OriginId.PORTAL_ITEM)&&b.setAtOrigin(g,this.associatedLayer[g],l)}}}_applyAssociatedLayerExtentOverride(){const a=this.associatedLayer?.getAtOrigin("fullExtent","service");J.sceneLayerEditingEnabled()&&null!=this.associatedLayer?.infoFor3D&&a&&F.isHostedAgolService(this.associatedLayer?.url)&&ra.cacheIsOutOfSync(this)&&
D.getProperties(this).setAtOrigin("fullExtent",a.clone(),u.OriginId.SERVICE)}_applyAssociatedLayerPrivileges(){const a=this.associatedLayer;a&&(this._set("userHasEditingPrivileges",a.userHasEditingPrivileges),this._set("userHasFullEditingPrivileges",a.userHasFullEditingPrivileges),this._set("userHasUpdateItemPrivileges",a.userHasUpdateItemPrivileges))}async _setAssociatedFeatureLayer(a){if(["mesh-pyramids","points"].includes(this.profile))try{const {serverUrl:b,layerId:d,portalItem:g}=await fa.findAssociatedFeatureService(`${this.url}/layers/${this.layerId}`,
{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:a});this.associatedLayer=new (await oa.layerLookupMap.FeatureLayer())({url:b,customParameters:this.customParameters,layerId:d,portalItem:g});await this.associatedLayer.load()}catch(b){C.isAbortError(b)||this._logWarningOnPopupEnabled()}}async _logWarningOnPopupEnabled(){await R.whenOnce(()=>this.popupEnabled&&null!=this.popupTemplate);const a=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?
m.getLogger(this).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${a}`):m.getLogger(this).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${a}`)}_validateElevationInfo(){const a=this.elevationInfo;"mesh-pyramids"===this.profile&&r.logInvalidElevationInfoWarning(m.getLogger(this),r.elevationModeUnsupportedMessage("Mesh scene layers","relative-to-scene",a));r.logInvalidElevationInfoWarning(m.getLogger(this),
r.featureExpressionUnsupportedMessage("Scene layers",a))}async fetchStatistics(a,b){return await sa.fetchStatistics({fieldName:a,statisticsInfo:this.statisticsInfo,errorContext:"scenelayer",fieldsIndex:this.fieldsIndex,path:this.parsedUrl?.path??"",customParameters:this.customParameters,apiKey:this.apiKey,signal:b?.signal})}};e.__decorate([f.property({types:{key:"type",base:ia.FeatureReduction,typeMap:{selection:ja}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:!0},"portal-item":{name:"layerDefinition.featureReduction",
write:!0}}}})],c.prototype,"featureReduction",void 0);e.__decorate([f.property({type:[pa.RangeInfo],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}}})],c.prototype,"rangeInfos",void 0);e.__decorate([f.property({json:{read:!1}})],c.prototype,"associatedLayer",void 0);e.__decorate([f.property({type:["show","hide"]})],c.prototype,"listMode",void 0);e.__decorate([f.property({type:["ArcGISSceneServiceLayer"]})],
c.prototype,"operationalLayerType",void 0);e.__decorate([f.property({json:{read:!1},readOnly:!0})],c.prototype,"type",void 0);e.__decorate([f.property({...t.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],c.prototype,"fields",void 0);e.__decorate([f.property()],c.prototype,"types",null);e.__decorate([f.property()],c.prototype,"typeIdField",null);e.__decorate([f.property()],c.prototype,"templates",null);e.__decorate([f.property()],c.prototype,"formTemplate",null);e.__decorate([f.property({readOnly:!0,
clonable:!1})],c.prototype,"fieldsIndex",null);e.__decorate([f.property({type:na,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],c.prototype,"floorInfo",void 0);e.__decorate([f.property(t.outFields)],c.prototype,"outFields",void 0);e.__decorate([f.property({type:q.I3SNodePageDefinition,readOnly:!0,json:{read:!1}})],c.prototype,"nodePages",void 0);e.__decorate([n.reader("service","nodePages",["nodePages","pointNodePages"])],c.prototype,"readNodePages",
null);e.__decorate([f.property({type:[q.I3SMaterialDefinition],readOnly:!0})],c.prototype,"materialDefinitions",void 0);e.__decorate([f.property({type:[q.I3STextureSetDefinition],readOnly:!0})],c.prototype,"textureSetDefinitions",void 0);e.__decorate([f.property({type:[q.I3SGeometryDefinition],readOnly:!0})],c.prototype,"geometryDefinitions",void 0);e.__decorate([f.property({readOnly:!0})],c.prototype,"serviceUpdateTimeStamp",void 0);e.__decorate([f.property({readOnly:!0})],c.prototype,"attributeStorageInfo",
void 0);e.__decorate([f.property({readOnly:!0})],c.prototype,"statisticsInfo",void 0);e.__decorate([f.property({type:B.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],c.prototype,"excludeObjectIds",void 0);e.__decorate([f.property({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],c.prototype,"definitionExpression",void 0);e.__decorate([f.property({type:qa,
json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],c.prototype,"filter",void 0);e.__decorate([f.property({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],c.prototype,"path",void 0);e.__decorate([f.property(p.elevationInfo)],c.prototype,"elevationInfo",null);e.__decorate([f.property({readOnly:!0,json:{read:!1}})],c.prototype,"effectiveCapabilities",null);e.__decorate([f.property({readOnly:!0})],c.prototype,"effectiveEditingEnabled",
null);e.__decorate([f.property({type:String})],c.prototype,"geometryType",null);e.__decorate([f.property(p.labelsVisible)],c.prototype,"labelsVisible",void 0);e.__decorate([f.property({type:[ma],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:I.reader},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:I.reader},write:!0}})],c.prototype,"labelingInfo",void 0);e.__decorate([f.property(p.legendEnabled)],c.prototype,"legendEnabled",void 0);e.__decorate([f.property({type:Number,
json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(a,b){if("number"===typeof a&&0<=a&&1>=a)return a;a=b.layerDefinition?.drawingInfo?.transparency;return void 0!==a?ya.transparencyToOpacity(a):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],c.prototype,"opacity",void 0);e.__decorate([f.property({type:["Low","High"],readOnly:!0,
json:{read:!1,origins:{service:{read:!0}}}})],c.prototype,"priority",void 0);e.__decorate([f.property({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],c.prototype,"semantic",void 0);e.__decorate([f.property({types:P.webSceneRendererTypes,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],c.prototype,"renderer",null);e.__decorate([f.property({json:{read:!1}})],c.prototype,"cachedDrawingInfo",void 0);
e.__decorate([n.reader("service","cachedDrawingInfo")],c.prototype,"readCachedDrawingInfo",null);e.__decorate([f.property({readOnly:!0,json:{read:!1}})],c.prototype,"capabilities",null);e.__decorate([f.property({type:Boolean,json:{read:!1}})],c.prototype,"editingEnabled",null);e.__decorate([f.property({readOnly:!0,json:{write:!1,read:!1}})],c.prototype,"infoFor3D",null);e.__decorate([f.property({readOnly:!0,json:{write:!1,read:!1}})],c.prototype,"relationships",null);e.__decorate([f.property(p.popupEnabled)],
c.prototype,"popupEnabled",void 0);e.__decorate([f.property({type:O,json:{name:"popupInfo",write:!0}})],c.prototype,"popupTemplate",void 0);e.__decorate([f.property({readOnly:!0,json:{read:!1}})],c.prototype,"defaultPopupTemplate",null);e.__decorate([f.property({type:String,json:{read:!1}})],c.prototype,"objectIdField",void 0);e.__decorate([n.reader("service","objectIdField",["objectIdField","fields"])],c.prototype,"readObjectIdField",null);e.__decorate([f.property({type:String,json:{read:!1}})],
c.prototype,"globalIdField",void 0);e.__decorate([n.reader("service","globalIdField",["globalIdField","fields"])],c.prototype,"readGlobalIdField",null);e.__decorate([f.property({readOnly:!0,type:String,json:{read:!1}})],c.prototype,"displayField",null);e.__decorate([f.property({type:String,json:{read:!1}})],c.prototype,"profile",void 0);e.__decorate([n.reader("service","profile",["store.profile"])],c.prototype,"readProfile",null);e.__decorate([f.property({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},
read:!1}})],c.prototype,"normalReferenceFrame",void 0);e.__decorate([f.property(p.screenSizePerspectiveEnabled)],c.prototype,"screenSizePerspectiveEnabled",void 0);e.__decorate([f.property({json:{read:!1,origins:{service:{read:!0}}}})],c.prototype,"serviceItemId",void 0);e.__decorate([f.property(da.useViewTimeProperty)],c.prototype,"useViewTime",null);c=e.__decorate([S.subclass("esri.layers.SceneLayer")],c);const L={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",
points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},Aa={"mesh-pyramids":"mesh",points:"point"};return c});