@arcgis/core 5.0.0-next.18 → 5.0.0-next.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AttributeBinsGraphic.js +1 -1
- package/analysis/ElevationProfile/ElevationProfileLineGround.js +1 -1
- package/analysis/ElevationProfile/ElevationProfileLineInput.js +1 -1
- package/analysis/ElevationProfile/ElevationProfileLineQuery.js +1 -1
- package/analysis/ElevationProfile/ElevationProfileLineScene.js +1 -1
- package/arcade/featureSetUtils.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
- package/arcade/featureset/sources/FeatureLayerOGC.js +5 -0
- package/arcade/featureset/sources/FeatureLayerRelated.js +1 -1
- package/arcade/featureset/support/FeatureSet.js +1 -1
- package/arcade/featureset/support/shared.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/057d59ee6144e5890780.js +1 -0
- package/assets/esri/core/workers/chunks/{31b5900119dd7cd9e7d3.js → 0a6ad58ca4ca0cba2fa0.js} +1 -1
- package/assets/esri/core/workers/chunks/0d8d3d0de49064971874.js +1 -0
- package/assets/esri/core/workers/chunks/{b87bc987983b31c13f64.js → 0f1b9d69961dad0b922f.js} +1 -1
- package/assets/esri/core/workers/chunks/110cc01dd6af7ee125d4.js +1 -0
- package/assets/esri/core/workers/chunks/11687718c8635eb7bf37.js +1 -0
- package/assets/esri/core/workers/chunks/{5f6df4a3376b52ead53f.js → 14f994b1dd682bf2d61a.js} +1 -1
- package/assets/esri/core/workers/chunks/3538eb39ebb58acedd67.js +1 -0
- package/assets/esri/core/workers/chunks/{02a22dd6d208a925cc5a.js → 52cf643621662712dc85.js} +1 -1
- package/assets/esri/core/workers/chunks/5755b11272b777507612.js +1 -0
- package/assets/esri/core/workers/chunks/{d69265ceabfa92b40bb7.js → 58969dde8c3d0b2a9829.js} +1 -1
- package/assets/esri/core/workers/chunks/6e4829b52ade3e41ccc4.js +1 -0
- package/assets/esri/core/workers/chunks/{4a89e120be142ab58a27.js → 7224b321606116fd691c.js} +1 -1
- package/assets/esri/core/workers/chunks/{257f17b3836a623a9dbe.js → 795b09ff7a8f4e91f4dc.js} +1 -1
- package/assets/esri/core/workers/chunks/{3ac7562ea90f91a9f30c.js → 82b2741e75c2e9b88252.js} +1 -1
- package/assets/esri/core/workers/chunks/{5d2e5774768d8f290343.js → b656e8fd374113523404.js} +1 -1
- package/assets/esri/core/workers/chunks/bccb9ac572bc093fb177.js +1 -0
- package/assets/esri/core/workers/chunks/{79dbfa2b9b332ca0002f.js → c52161b94c0fb071747e.js} +1 -1
- package/assets/esri/core/workers/chunks/db76958fd9f54b6bd324.js +1 -0
- package/assets/esri/core/workers/chunks/e61d7762b56e36dc7e8a.js +1 -0
- package/assets/esri/core/workers/chunks/{b30897952494a3e5b9fe.js → e69c2b613bd0210e25ba.js} +1 -1
- package/assets/esri/core/workers/chunks/f43e1e1a1b2eb737e00c.js +1 -0
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/chunks/GlowComposition.glsl.js +46 -46
- package/chunks/ShadedColorMaterial.glsl.js +10 -10
- package/config.js +1 -1
- package/editing/templateUtils.js +1 -1
- package/interfaces.d.ts +120 -23
- package/kernel.js +1 -1
- package/layers/BingMapsLayer.js +1 -1
- package/layers/PointCloudLayer.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/VideoLayer.js +1 -1
- package/layers/graphics/sources/OGCFeatureSource.js +1 -1
- package/layers/mixins/SceneService.js +1 -1
- package/layers/ogc/ogcFeatureUtils.js +1 -1
- package/libs/parquet/parquet.js +1 -1
- package/package.json +1 -1
- package/renderers/support/RasterSymbolizer.js +1 -1
- package/rest/support/QueryMixin.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/undoredo/support/ServiceVersionInfo.js +1 -1
- package/undoredo/support/Services.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterHighlightTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/textureUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/BaseRasterHighlightShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterRangeHighlightShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterXYBandHighlightShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/math.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/stretch.js +1 -1
- package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
- package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
- package/views/3d/environment/SceneViewEnvironment.js +1 -1
- package/views/3d/environment/SunLighting.js +1 -1
- package/views/3d/environment/VirtualLighting.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
- package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/VisibleElements.js +1 -1
- package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/FeatureTable/Grid/Column.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/widgets/OrientedImageryViewer/services/ImageMeasurementService.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/smartMapping/SizeSlider.js +1 -1
- package/widgets/support/SelectionList/VisibleElements.js +1 -1
- package/widgets/support/SelectionList.js +1 -1
- package/assets/esri/core/workers/chunks/080268f78436a2f0d996.js +0 -1
- package/assets/esri/core/workers/chunks/18474c017ddacd1d3d2c.js +0 -1
- package/assets/esri/core/workers/chunks/27e6a6c5610007ac6a54.js +0 -1
- package/assets/esri/core/workers/chunks/5415fbcc7ed203fc5575.js +0 -1
- package/assets/esri/core/workers/chunks/631fb2e62e48f8be4051.js +0 -1
- package/assets/esri/core/workers/chunks/722da7a39a0ad9300752.js +0 -1
- package/assets/esri/core/workers/chunks/9595aabbaf411eceea1e.js +0 -1
- package/assets/esri/core/workers/chunks/a470f662d73aa8d5d90f.js +0 -1
- package/assets/esri/core/workers/chunks/a57751f3d78524c876cd.js +0 -1
- package/assets/esri/core/workers/chunks/ac366221e8636b60aee5.js +0 -1
- package/assets/esri/core/workers/chunks/dec336700cfb83abbbeb.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1279],{60999:(t,e,r)=>{r.d(e,{DZ:()=>f,Ke:()=>S,Tj:()=>c,UT:()=>y,aD:()=>_,jJ:()=>u});var n=r(31635),a=r(69622),i=r(97768),s=r(74887),l=r(10107),o=r(64108);function u(t,e,r){return(0,s.Lx)(t.map((t,n)=>e.apply(r,[t,n])))}async function c(t,e,r){return(await(0,s.Lx)(t.map((t,n)=>e.apply(r,[t,n])))).map(t=>t.value)}function h(t){return{ok:!0,value:t}}function p(t){return{ok:!1,error:t}}async function S(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return h(await t)}catch(t){return p(t)}}async function f(t){try{return h(await t)}catch(t){return(0,s.QP)(t),p(t)}}function y(t,e){return new d(t,e)}let d=class extends a.A{get value(){return null!=(t=this._result)&&!0===t.ok?t.value:null;var t}get error(){return null!=(t=this._result)&&!1===t.ok?t.error:null;var t}get finished(){return null!=this._result}constructor(t,e){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,i.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=t(r),this.promise.then(t=>{this._result=h(t),this._cleanup()},t=>{this._result=p(t),this._cleanup()}),this._abortHandle=(0,s.u7)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,i.xt)(this._abortHandle),this._abortController=null}};(0,n.Cg)([(0,l.MZ)()],d.prototype,"value",null),(0,n.Cg)([(0,l.MZ)()],d.prototype,"error",null),(0,n.Cg)([(0,l.MZ)()],d.prototype,"finished",null),(0,n.Cg)([(0,l.MZ)()],d.prototype,"promise",void 0),(0,n.Cg)([(0,l.MZ)()],d.prototype,"_result",void 0),d=(0,n.Cg)([(0,o.$)("esri.core.asyncUtils.ReactiveTask")],d);class _{constructor(){this._sequence=Promise.resolve()}async acquire(){let t;this._sequence=new Promise(e=>{t=this._sequence.then(()=>e,()=>e)});const e=await t;return{[Symbol.dispose]:e}}async run(t){const e={stack:[],error:void 0,hasError:!1};try{return(0,n.mS)(e,await this.acquire(),!1),await t()}catch(t){e.error=t,e.hasError=!0}finally{(0,n.hk)(e)}}}},85978:(t,e,r)=>{r.d(e,{A:()=>s});var n=r(87449),a=r(11221),i=r(33325);class s extends a.t1{constructor(t){super(),this.declaredClass="esri.layers.featureset.sources.Empty",this._maxProcessing=1e3,this._parent=t.parentfeatureset,this._databaseType=0}async _queryAll(){return a.An.features}async query(t){return a.An}async queryStat(t){return await this._manualStat(t.stat,t.field,t.limit??i.gO,t.abortSignal)}async canQueryAggregate(t){return!1}async queryAggregate(t){throw new n.dr("NeverReach")}async queryAttachments(){return[]}}},87817:(t,e,r)=>{r.r(e),r.d(e,{registerFunctions:()=>y});var n=r(85935),a=r(78502),i=r(78878),s=r(48938),l=r(87449),o=r(11221),u=r(33325),c=r(71163),h=r(21818);class p extends o.t1{constructor(t){super(),this.declaredClass="esri.arcade.featureset.actions.SpatialFilter",this._maxProcessing=40,this._parent=t.parentfeatureset,this._relation=t.relation,this._relationString=t.relationString??"",this._relationGeom=t.relationGeom}get _spatialFilter(){return{relation:"esriSpatialRelRelation"!==this._relation?this._relation:`esriSpatialRelRelation:${this._relationString}`,geometry:this._relationGeom}}async _queryAll(){return(await this.query({abortSignal:s._})).features}async query(t){await this._ensureLoaded();const e=await this._parent.query({...t,spatialFilter:this._spatialFilter});return(0,l.dZ)(t.abortSignal),{...e,spatialFilterApplied:null==t.spatialFilter,features:e.spatialFilterApplied?e.features:this._applySpatialFilter(e.features,t.abortSignal)}}async*_applySpatialFilter(t,e){for await(const r of t){(0,l.dZ)(e);const t=[];for(const e of r)await this._executeSpatialRelationTest(e)&&t.push(e);t.length>0&&(yield t)}}async queryStat(t){if(null!=t.spatialFilter)return{calculated:!1};const e=await this._parent.queryStat({...t,spatialFilter:this._spatialFilter});return e.calculated?e:null==t.where&&null==t.spatialFilter?this._manualStat(t.stat,t.field,t.limit??u.gO,t.abortSignal):{calculated:!1}}async canQueryAggregate(t){return null==t.spatialFilter&&this._parent.canQueryAggregate({...t,spatialFilter:this._spatialFilter})}async queryAggregate(t){if(null!=t.spatialFilter)throw new l.dr("NeverReach");return this._parent.queryAggregate({...t,spatialFilter:this._spatialFilter})}async _executeSpatialRelationTest(t){if(null==t.geometry)return!1;switch(this._relation){case"esriSpatialRelEnvelopeIntersects":{const e=(0,a.Yc)(this._relationGeom),r=(0,a.Yc)(t.geometry);return null!=e&&null!=r&&(0,c.C)("intersects",[e.toJSON(),r.toJSON()])}case"esriSpatialRelIntersects":return(0,c.C)("intersects",[this._relationGeom.toJSON(),t.geometry.toJSON()]);case"esriSpatialRelContains":return(0,c.C)("contains",[this._relationGeom.toJSON(),t.geometry.toJSON()]);case"esriSpatialRelOverlaps":return(0,c.C)("overlaps",[this._relationGeom.toJSON(),t.geometry.toJSON()]);case"esriSpatialRelWithin":return(0,c.C)("within",[this._relationGeom.toJSON(),t.geometry.toJSON()]);case"esriSpatialRelTouches":return(0,c.C)("touches",[this._relationGeom.toJSON(),t.geometry.toJSON()]);case"esriSpatialRelCrosses":return(0,c.C)("crosses",[this._relationGeom.toJSON(),t.geometry.toJSON()]);case"esriSpatialRelRelation":return(0,c.C)("relate",[this._relationGeom.toJSON(),t.geometry.toJSON(),this._relationString]);default:return(0,h.Ur)(this._relation),!1}}getFieldsIndex(){return this._parent.getFieldsIndex()}}var S=r(85978);function f(t){return async(e,r,s)=>{if((0,i.B)(s,2,2,e,r),null===(s=(0,i.C)(s))[0]&&null===s[1])return!1;if((0,i.m)(s[0])){if((0,i.h)(s[1]))return new p({parentfeatureset:s[0],relation:t,relationGeom:s[1]});if(null===s[1])return new S.A({parentfeatureset:s[0]});throw new n.D$(e,"InvalidParameter",r)}if((0,i.h)(s[0])){if((0,i.h)(s[1])){switch(t){case"esriSpatialRelEnvelopeIntersects":{const t=(0,a.Yc)(s[0]),e=(0,a.Yc)(s[1]);return null!=t&&null!=e&&(0,c.C)("intersects",[t.toJSON(),e.toJSON()])}case"esriSpatialRelIntersects":return(0,c.C)("intersects",[s[0].toJSON(),s[1].toJSON()]);case"esriSpatialRelContains":return(0,c.C)("contains",[s[0].toJSON(),s[1].toJSON()]);case"esriSpatialRelOverlaps":return(0,c.C)("overlaps",[s[0].toJSON(),s[1].toJSON()]);case"esriSpatialRelWithin":return(0,c.C)("within",[s[0].toJSON(),s[1].toJSON()]);case"esriSpatialRelTouches":return(0,c.C)("touches",[s[0].toJSON(),s[1].toJSON()]);case"esriSpatialRelCrosses":return(0,c.C)("crosses",[s[0].toJSON(),s[1].toJSON()])}throw new n.D$(e,"InvalidParameter",r)}if((0,i.m)(s[1]))return new p({parentfeatureset:s[1],relation:t,relationGeom:s[0]});if(null===s[1])return!1;throw new n.D$(e,"InvalidParameter",r)}if(null===s[0]){if((0,i.m)(s[1]))return new S.A({parentfeatureset:s[1]});if((0,i.h)(s[1])||null===s[1])return!1}throw new n.D$(e,"InvalidParameter",r)}}function y(t){"async"===t.mode&&(t.functions.intersects=function(e,r){return t.standardFunctionAsync(e,r,f("esriSpatialRelIntersects"))},t.functions.envelopeintersects=function(e,r){return t.standardFunctionAsync(e,r,f("esriSpatialRelEnvelopeIntersects"))},t.signatures.push({name:"envelopeintersects",min:2,max:2}),t.functions.contains=function(e,r){return t.standardFunctionAsync(e,r,f("esriSpatialRelContains"))},t.functions.overlaps=function(e,r){return t.standardFunctionAsync(e,r,f("esriSpatialRelOverlaps"))},t.functions.within=function(e,r){return t.standardFunctionAsync(e,r,f("esriSpatialRelWithin"))},t.functions.touches=function(e,r){return t.standardFunctionAsync(e,r,f("esriSpatialRelTouches"))},t.functions.crosses=function(e,r){return t.standardFunctionAsync(e,r,f("esriSpatialRelCrosses"))},t.functions.relate=function(e,r){return t.standardFunctionAsync(e,r,async(t,a,s)=>{if(s=(0,i.C)(s),(0,i.B)(s,3,3,e,r),(0,i.h)(s[0])&&(0,i.h)(s[1]))return(0,c.C)("relate",[s[0].toJSON(),s[1].toJSON(),(0,i.u)(s[2])]);if((0,i.h)(s[0])&&null===s[1])return!1;if((0,i.h)(s[1])&&null===s[0])return!1;if((0,i.m)(s[0])&&null===s[1])return new S.A({parentfeatureset:s[0]});if((0,i.m)(s[1])&&null===s[0])return new S.A({parentfeatureset:s[1]});if((0,i.m)(s[0])&&(0,i.h)(s[1]))return new p({parentfeatureset:s[0],relation:"esriSpatialRelRelation",relationGeom:s[1],relationString:(0,i.u)(s[2])});if((0,i.m)(s[1])&&(0,i.h)(s[0]))return new p({parentfeatureset:s[1],relation:"esriSpatialRelRelation",relationGeom:s[0],relationString:(0,i.u)(s[2])});if(null===s[0]&&null===s[1])return!1;throw new n.D$(e,"InvalidParameter",r)})})}}}]);
|
|
Binary file
|
|
@@ -2,52 +2,52 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{ReadDepth as e}from"../views/3d/webgl-engine/core/shaderLibrary/output/ReadDepth.glsl.js";import{Gamma as o}from"../views/3d/webgl-engine/core/shaderLibrary/shading/Gamma.glsl.js";import{FloatPassUniform as r}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{FloatsPassUniform as i}from"../views/3d/webgl-engine/core/shaderModules/FloatsPassUniform.js";import{If as s,glsl as l}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{IntegerPassUniform as a}from"../views/3d/webgl-engine/core/shaderModules/IntegerPassUniform.js";import{Texture2DBindUniform as t}from"../views/3d/webgl-engine/core/shaderModules/Texture2DBindUniform.js";import{Texture2DPassUniform as d}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{lodFactorsPresets as n}from"../views/3d/webgl-engine/effects/glow/GlowPresets.glsl.js";import{RayDistanceFalloffPassParameters as m,RayDistanceFalloff as c}from"../views/3d/webgl-engine/effects/raymarching/RayDistanceFalloff.glsl.js";import{ScreenSpacePassAtmosphere as p}from"../views/3d/webgl-engine/shaders/ScreenSpacePassAtmosphere.glsl.js";import{ToneMapping as g}from"../views/3d/webgl-engine/shaders/ToneMapping.glsl.js";import{ShaderBuilder as u}from"../views/webgl/ShaderBuilder.js";class x extends m{constructor(){super(...arguments),this.lodFactors=[0,0,0,0,0,0],this.glowLod=-1,this.dispersionWeight=1,this.distanceModifier=1e-4}}function w(m){const x=new u,w=x.fragment,{blurEnabled:f,tonemappingEnabled:v}=m;return x.include(p,{needUVs:!0,needEyeDirection:!0}),w.include(o),w.include(c),w.include(e),x.outputs.add("fragColor","vec4",0),x.outputs.add("fragEmission","vec3",1),w.include(g),w.uniforms.add(new d("colorTexture",e=>e.color),new d("emissionTexture",e=>e.emission),new t("depthTexture",e=>e.mainDepth),new r("distanceModifier",e=>e.distanceModifier)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
5
|
+
import{ReadDepth as e}from"../views/3d/webgl-engine/core/shaderLibrary/output/ReadDepth.glsl.js";import{Gamma as o}from"../views/3d/webgl-engine/core/shaderLibrary/shading/Gamma.glsl.js";import{FloatPassUniform as r}from"../views/3d/webgl-engine/core/shaderModules/FloatPassUniform.js";import{FloatsPassUniform as i}from"../views/3d/webgl-engine/core/shaderModules/FloatsPassUniform.js";import{If as s,glsl as l}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{IntegerPassUniform as a}from"../views/3d/webgl-engine/core/shaderModules/IntegerPassUniform.js";import{Texture2DBindUniform as t}from"../views/3d/webgl-engine/core/shaderModules/Texture2DBindUniform.js";import{Texture2DPassUniform as d}from"../views/3d/webgl-engine/core/shaderModules/Texture2DPassUniform.js";import{lodFactorsPresets as n}from"../views/3d/webgl-engine/effects/glow/GlowPresets.glsl.js";import{RayDistanceFalloffPassParameters as m,RayDistanceFalloff as c}from"../views/3d/webgl-engine/effects/raymarching/RayDistanceFalloff.glsl.js";import{ScreenSpacePassAtmosphere as p}from"../views/3d/webgl-engine/shaders/ScreenSpacePassAtmosphere.glsl.js";import{ToneMapping as g}from"../views/3d/webgl-engine/shaders/ToneMapping.glsl.js";import{ShaderBuilder as u}from"../views/webgl/ShaderBuilder.js";class x extends m{constructor(){super(...arguments),this.lodFactors=[0,0,0,0,0,0],this.glowLod=-1,this.dispersionWeight=1,this.distanceModifier=1e-4}}function w(m){const x=new u,w=x.fragment,{blurEnabled:f,tonemappingEnabled:v}=m;return x.include(p,{needUVs:!0,needEyeDirection:!0}),w.include(o),w.include(c),w.include(e),x.outputs.add("fragColor","vec4",0),x.outputs.add("fragEmission","vec3",1),w.include(g),w.uniforms.add(new d("colorTexture",e=>e.color),new d("emissionTexture",e=>e.emission)),f?(w.uniforms.add(new t("depthTexture",e=>e.mainDepth),new r("distanceModifier",e=>e.distanceModifier),new d("lodTexture0",e=>e.lodTexture0),new d("lodTexture1",e=>e.lodTexture1),new d("lodTexture2",e=>e.lodTexture2),new d("lodTexture3",e=>e.lodTexture3),new d("lodTexture4",e=>e.lodTexture4),new a("glowLod",e=>e.glowLod),new i("minDisperse",()=>n.minDisperse.presets,6),new i("maxDisperse",()=>n.maxDisperse.presets,6),new r("dispersionWeight",e=>e.dispersionWeight)).main.add(l`
|
|
6
|
+
vec4 color = texture(colorTexture, uv);
|
|
7
|
+
color = vec4(linearizeGamma(color.rgb), color.a);
|
|
8
|
+
|
|
9
|
+
vec3 lod0 = texture(emissionTexture, uv).rgb;
|
|
10
|
+
vec3 lod1 = texture(lodTexture0, uv).rgb;
|
|
11
|
+
vec3 lod2 = texture(lodTexture1, uv).rgb;
|
|
12
|
+
vec3 lod3 = texture(lodTexture2, uv).rgb;
|
|
13
|
+
vec3 lod4 = texture(lodTexture3, uv).rgb;
|
|
14
|
+
vec3 lod5 = texture(lodTexture4, uv).rgb;
|
|
15
|
+
|
|
16
|
+
float terrainDepth = -1.0;
|
|
17
|
+
float depthSample = depthFromTexture(depthTexture, uv);
|
|
18
|
+
if(depthSample < 1.0 && depthSample > 0.0){
|
|
19
|
+
vec3 cameraSpaceRay = normalize(eyeDir);
|
|
20
|
+
cameraSpaceRay /= cameraSpaceRay.z;
|
|
21
|
+
cameraSpaceRay *= linearizeDepth(depthSample);
|
|
22
|
+
terrainDepth = max(0.0, length(cameraSpaceRay));
|
|
23
|
+
}
|
|
24
|
+
vec3 rayDir = normalize(worldRay);
|
|
25
|
+
float dispersionByDistance = getDistanceFalloff(terrainDepth, rayDir, distanceModifier);
|
|
26
|
+
float dispersionPerPixel = dispersionWeight * dispersionByDistance;
|
|
27
|
+
|
|
28
|
+
float lodFactor0 = mix(minDisperse[0], maxDisperse[0], dispersionPerPixel);
|
|
29
|
+
float lodFactor1 = mix(minDisperse[1], maxDisperse[1], dispersionPerPixel);
|
|
30
|
+
float lodFactor2 = mix(minDisperse[2], maxDisperse[2], dispersionPerPixel);
|
|
31
|
+
float lodFactor3 = mix(minDisperse[3], maxDisperse[3], dispersionPerPixel);
|
|
32
|
+
float lodFactor4 = mix(minDisperse[4], maxDisperse[4], dispersionPerPixel);
|
|
33
|
+
float lodFactor5 = mix(minDisperse[5], maxDisperse[5], dispersionPerPixel);
|
|
34
|
+
|
|
35
|
+
vec3 emission = lodFactor0 * lod0;
|
|
36
|
+
emission += lodFactor1 * lod1;
|
|
37
|
+
emission += lodFactor2 * lod2;
|
|
38
|
+
emission += lodFactor3 * lod3;
|
|
39
|
+
emission += lodFactor4 * lod4;
|
|
40
|
+
emission += lodFactor5 * lod5;
|
|
41
|
+
|
|
42
|
+
// only for glow editor lod debugging
|
|
43
|
+
emission = glowLod == 0 ? lodFactor0 * lod0 : glowLod == 1 ? lodFactor1 * lod1 : glowLod == 2 ? lodFactor2 * lod2 : glowLod == 3 ? lodFactor3 * lod3 : glowLod == 4 ? lodFactor4 * lod4 : glowLod == 5 ? lodFactor5 * lod5 : emission;
|
|
44
|
+
|
|
45
|
+
fragEmission = emission;
|
|
46
|
+
// tonemapping is only applied to the emissive part since main color values are not in HDR.
|
|
47
|
+
${s(v,"emission = tonemapACES(emission);")}
|
|
48
|
+
|
|
49
|
+
fragColor = delinearizeGamma(vec4(color.rgb + emission.rgb, color.w));
|
|
50
|
+
`),x):(w.main.add(l`
|
|
51
51
|
vec4 color = texture(colorTexture, uv);
|
|
52
52
|
color = vec4(linearizeGamma(color.rgb), color.a);
|
|
53
53
|
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{create as e}from"../core/libs/gl-matrix-2/factories/vec4f64.js";import{ScreenSizeScaling as o}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSizeScaling.glsl.js";import{SliceDraw as r}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{Transform as i}from"../views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js";import{terrainDepthTest as n}from"../views/3d/webgl-engine/core/shaderLibrary/shading/TerrainDepthTest.glsl.js";import{ColorConversion as l}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{addProjViewLocalOrigin as s,addViewNormal as a}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float3PassUniform as d}from"../views/3d/webgl-engine/core/shaderModules/Float3PassUniform.js";import{Float4PassUniform as t}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{glsl as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
`),
|
|
5
|
+
import{create as e}from"../core/libs/gl-matrix-2/factories/vec4f64.js";import{ScreenSizeScaling as o}from"../views/3d/webgl-engine/core/shaderLibrary/ScreenSizeScaling.glsl.js";import{SliceDraw as r}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{Transform as i}from"../views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js";import{terrainDepthTest as n}from"../views/3d/webgl-engine/core/shaderLibrary/shading/TerrainDepthTest.glsl.js";import{ColorConversion as l}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{addProjViewLocalOrigin as s,addViewNormal as a}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float3PassUniform as d}from"../views/3d/webgl-engine/core/shaderModules/Float3PassUniform.js";import{Float4PassUniform as t}from"../views/3d/webgl-engine/core/shaderModules/Float4PassUniform.js";import{If as c,glsl as g}from"../views/3d/webgl-engine/core/shaderModules/glsl.js";import{outputColorHighlightOID as m}from"../views/3d/webgl-engine/shaders/OutputColorHighlightOID.glsl.js";import{ShaderBuilder as v}from"../views/webgl/ShaderBuilder.js";function w(e){const w=new v;w.include(i),w.include(o,e),w.fragment.include(r,e),w.include(m,e),w.include(n,e);const{vertex:u,fragment:b}=w;return b.include(l),s(u,e),b.uniforms.add(new t("uColor",e=>e.color)),w.attributes.add("position","vec3"),w.varyings.add("vWorldPosition","vec3"),e.screenSizeEnabled&&w.attributes.add("offset","vec3"),e.shadingEnabled&&(a(u),w.attributes.add("normal","vec3"),w.varyings.add("vViewNormal","vec3"),b.uniforms.add(new d("shadingDirection",e=>e.shadingDirection)),b.uniforms.add(new t("shadedColor",e=>f(e.shadingTint,e.color)))),u.main.add(g`
|
|
6
|
+
vWorldPosition = ${e.screenSizeEnabled?g`screenSizeScaling(offset, position)`:g`position`};
|
|
7
|
+
${c(e.shadingEnabled,g`vec3 worldNormal = normal;
|
|
8
|
+
vViewNormal = (viewNormal * vec4(worldNormal, 1)).xyz;`)}
|
|
9
|
+
forwardViewPosDepth((view * vec4(vWorldPosition, 1.0)).xyz);
|
|
10
|
+
gl_Position = transformPosition(proj, view, vWorldPosition);
|
|
11
|
+
`),b.main.add(g`
|
|
12
12
|
discardBySlice(vWorldPosition);
|
|
13
13
|
discardByTerrainDepth();
|
|
14
|
-
${e.shadingEnabled?
|
|
14
|
+
${e.shadingEnabled?g`vec3 viewNormalNorm = normalize(vViewNormal);
|
|
15
15
|
float shadingFactor = 1.0 - clamp(-dot(viewNormalNorm, shadingDirection), 0.0, 1.0);
|
|
16
|
-
vec4 finalColor = mix(uColor, shadedColor, shadingFactor);`:
|
|
17
|
-
outputColorHighlightOID(finalColor, vWorldPosition, finalColor.rgb);`),
|
|
16
|
+
vec4 finalColor = mix(uColor, shadedColor, shadingFactor);`:g`vec4 finalColor = uColor;`}
|
|
17
|
+
outputColorHighlightOID(finalColor, vWorldPosition, finalColor.rgb);`),w}function f(e,o){const r=1-e[3],i=e[3]+o[3]*r;return 0===i?(u[3]=i,u):(u[0]=(e[0]*e[3]+o[0]*o[3]*r)/i,u[1]=(e[1]*e[3]+o[1]*o[3]*r)/i,u[2]=(e[2]*e[3]+o[2]*o[3]*r)/i,u[3]=o[3],u)}const u=e(),b=Object.freeze(Object.defineProperty({__proto__:null,build:w},Symbol.toStringTag,{value:"Module"}));export{b as S,w as b};
|
package/config.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="5.0.0-next.
|
|
5
|
+
import"./core/has.js";import{deepMerge as e}from"./core/object.js";const s={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(e(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="5.0.0-next.19";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}s.defaultAssetsPath=s.assetsPath}export{s as default};
|
package/editing/templateUtils.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import e from"../core/Logger.js";import{getOrCreateMapValue as t}from"../core/MapUtils.js";import{throwIfAborted as r}from"../core/promiseUtils.js";import{addMaybe as n}from"../core/SetUtils.js";import{isGroupTemplateDefinition as i,isPresetTemplateDefinition as o,isFeatureTemplateDefinition as s}from"./sharedTemplates/templateDefinitions/templateDefinitionUtils.js";import{isSubtypeGroupLayer as a,isSubtypeSublayer as l,isFeatureLayer as p}from"../layers/support/layerUtils.js";import{querySharedTemplates as u}from"../rest/sharedTemplates/querySharedTemplates.js";import{getServices as f}from"../undoredo/support/Services.js";const c=()=>e.getLogger("esri.editing.templateUtils");function y(e){return null!=e&&"prototype"in e}function m(e){return g(e)&&!("definition"in e)}function d(e){return g(e)&&"definition"in e}function g(e){return null!=e&&"templateId"in e}function w(e){return d(e)&&"feature"===e?.type&&(null==e.definition||s(e.definition))}function
|
|
5
|
+
import e from"../core/Logger.js";import{getOrCreateMapValue as t}from"../core/MapUtils.js";import{throwIfAborted as r}from"../core/promiseUtils.js";import{addMaybe as n}from"../core/SetUtils.js";import{isGroupTemplateDefinition as i,isPresetTemplateDefinition as o,isFeatureTemplateDefinition as s}from"./sharedTemplates/templateDefinitions/templateDefinitionUtils.js";import{isSubtypeGroupLayer as a,isSubtypeSublayer as l,isFeatureLayer as p}from"../layers/support/layerUtils.js";import{querySharedTemplates as u}from"../rest/sharedTemplates/querySharedTemplates.js";import{getServices as f}from"../undoredo/support/Services.js";const c=()=>e.getLogger("esri.editing.templateUtils");function y(e){return null!=e&&"prototype"in e}function m(e){return g(e)&&!("definition"in e)}function d(e){return g(e)&&"definition"in e}function g(e){return null!=e&&"templateId"in e}function w(e){return d(e)&&"feature"===e?.type&&(null==e.definition||s(e.definition))}function A(e){return d(e)&&"group"===e?.type&&(null==e.definition||i(e.definition))}function h(e){return d(e)&&"preset"===e?.type&&(null==e.definition||o(e.definition))}function j(e){return d(e)&&null!=e?.definition}const v=e=>{if(null==e||"object"!=typeof e)return[];return[..."templates"in e&&Array.isArray(e.templates)?e.templates:[],..."types"in e&&Array.isArray(e.types)?e.types.flatMap(e=>e.templates):[]]};async function S({layers:e,view:t,signal:n,queryOptions:i}){if(null==t)return e.map(e=>({layer:e,templates:v(e)}));const o=await M(e,t);r(n);const s=new Map,a=Array.from(o).map(async e=>(await e.load(),await b({serviceInfo:e,out:s,signal:n,queryOptions:i}))),l=await Promise.allSettled(a);for(const r of l.filter(e=>"rejected"===e.status))c().warn("Failed to fetch shared templates for service. Will use standard templates if available.",r.reason);return e.map(e=>({layer:e,templates:s.get(e)??v(e)}))}async function b({serviceInfo:e,out:t,signal:n,queryOptions:i}){const{featureService:o,layersAndTables:s}=e,l=await q({featureService:o,layers:s.toArray(),signal:n,queryOptions:i});r(n);for(const[r,p]of l.entries())if(0!==p.length)if(a(r)){const e=O(p),n=[],i=e.get(1/0)??n;for(const o of r.sublayers){const r=e.get(o.subtypeCode)??n;t.set(o,[...r,...i])}}else t.set(r,p)}async function q({featureService:e,layers:r,signal:n,queryOptions:i}){if(!e.capabilities?.editing.supportsSharedTemplates)return new Map;const o=new Map(r.map(e=>[e.layerId,e])),s=await u({featureService:e,query:{layers:Array.from(o.keys()),...i},requestOptions:{signal:n}}),a=new Map;for(const l of s)for(const e of l.layerIds)o.has(e)&&t(a,o.get(e),()=>[]).push(l);return a}async function M(e,t){const r=f(t),i=new Set;for(const o of e)n(i,L(r,o));return await Promise.all(Array.from(i).map(e=>e.load())),i}function L(e,t){return l(t)&&t.parent?e.tablesAndLayersLookup.get(t.parent):p(t)?e.tablesAndLayersLookup.get(t):null}function O(e){const r=new Map;for(const n of e)t(r,n.subtypeCode??1/0,()=>[]).push(n);return r}export{v as getAllStandardFeatureTemplatesForLayer,L as getServiceInfoForLayer,S as getTemplatesForLayers,j as isLoadedSharedTemplate,w as isSharedFeatureTemplate,A as isSharedGroupTemplate,h as isSharedPresetTemplate,d as isSharedTemplate,m as isSharedTemplateMetadata,g as isSharedTemplateOrMetadata,y as isStandardFeatureTemplate};
|
package/interfaces.d.ts
CHANGED
|
@@ -823,7 +823,7 @@ declare namespace __esri {
|
|
|
823
823
|
*/
|
|
824
824
|
lineVisible: boolean;
|
|
825
825
|
/**
|
|
826
|
-
* Provides configuration options for visualizing
|
|
826
|
+
* Provides configuration options, such as its visibility, for visualizing a specific elevation profile line within a chart.
|
|
827
827
|
*
|
|
828
828
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-ElevationProfile-ElevationProfileLineChartOptions.html Read more...}
|
|
829
829
|
*/
|
|
@@ -996,7 +996,7 @@ declare namespace __esri {
|
|
|
996
996
|
*/
|
|
997
997
|
lineVisible: boolean;
|
|
998
998
|
/**
|
|
999
|
-
* Provides configuration options for visualizing
|
|
999
|
+
* Provides configuration options, such as its visibility, for visualizing a specific elevation profile line within a view.
|
|
1000
1000
|
*
|
|
1001
1001
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-ElevationProfile-ElevationProfileLineViewOptions.html Read more...}
|
|
1002
1002
|
*/
|
|
@@ -1037,7 +1037,8 @@ declare namespace __esri {
|
|
|
1037
1037
|
*/
|
|
1038
1038
|
geometryVisualizationVisible: boolean;
|
|
1039
1039
|
/**
|
|
1040
|
-
* Provides configuration options for visualizing an elevation profile within a view
|
|
1040
|
+
* Provides general configuration options for visualizing an elevation profile within a view,
|
|
1041
|
+
* independent of the profile line type.
|
|
1041
1042
|
*
|
|
1042
1043
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-ElevationProfile-ElevationProfileViewOptions.html Read more...}
|
|
1043
1044
|
*/
|
|
@@ -1087,7 +1088,7 @@ declare namespace __esri {
|
|
|
1087
1088
|
get displayUnits(): ElevationProfileDisplayUnits;
|
|
1088
1089
|
set displayUnits(value: ElevationProfileDisplayUnitsProperties);
|
|
1089
1090
|
/**
|
|
1090
|
-
* Specifies how the geometry Z values are interpreted, for example to compute elevations for an
|
|
1091
|
+
* Specifies how the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-ElevationProfileAnalysis.html#geometry geometry's} Z values are interpreted, for example to compute elevations for an
|
|
1091
1092
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-ElevationProfile-ElevationProfileLineInput.html input} profile line.
|
|
1092
1093
|
*
|
|
1093
1094
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-ElevationProfileAnalysis.html#elevationInfo Read more...}
|
|
@@ -1132,7 +1133,7 @@ declare namespace __esri {
|
|
|
1132
1133
|
*/
|
|
1133
1134
|
displayUnits?: ElevationProfileDisplayUnitsProperties;
|
|
1134
1135
|
/**
|
|
1135
|
-
* Specifies how the geometry Z values are interpreted, for example to compute elevations for an
|
|
1136
|
+
* Specifies how the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-ElevationProfileAnalysis.html#geometry geometry's} Z values are interpreted, for example to compute elevations for an
|
|
1136
1137
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-ElevationProfile-ElevationProfileLineInput.html input} profile line.
|
|
1137
1138
|
*
|
|
1138
1139
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-ElevationProfileAnalysis.html#elevationInfo Read more...}
|
|
@@ -4002,16 +4003,17 @@ declare namespace __esri {
|
|
|
4002
4003
|
*
|
|
4003
4004
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html#FeatureSetLayer Read more...}
|
|
4004
4005
|
*/
|
|
4005
|
-
export type FeatureSetLayer = |
|
|
4006
|
+
export type FeatureSetLayer = | CatalogFootprintLayer
|
|
4007
|
+
| CatalogLayer
|
|
4006
4008
|
| CSVLayer
|
|
4009
|
+
| FeatureLayer
|
|
4007
4010
|
| GeoJSONLayer
|
|
4008
|
-
|
|
|
4011
|
+
| KnowledgeGraphSublayer
|
|
4012
|
+
| OGCFeatureLayer
|
|
4009
4013
|
| OrientedImageryLayer
|
|
4010
4014
|
| SubtypeGroupLayer
|
|
4011
|
-
| CatalogLayer
|
|
4012
4015
|
| SubtypeSublayer
|
|
4013
|
-
|
|
|
4014
|
-
| KnowledgeGraphSublayer;
|
|
4016
|
+
| WFSLayer;
|
|
4015
4017
|
|
|
4016
4018
|
/**
|
|
4017
4019
|
* Type definition for a fulfilled promise of the asynchronous execution of an Arcade expression.
|
|
@@ -45862,6 +45864,13 @@ declare namespace __esri {
|
|
|
45862
45864
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#buffered Read more...}
|
|
45863
45865
|
*/
|
|
45864
45866
|
readonly buffered: number;
|
|
45867
|
+
/**
|
|
45868
|
+
* Represents available information about the sensor that captured the
|
|
45869
|
+
* stream data.
|
|
45870
|
+
*
|
|
45871
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#cameraInfo Read more...}
|
|
45872
|
+
*/
|
|
45873
|
+
readonly cameraInfo: VideoLayerCameraInfo | nullish;
|
|
45865
45874
|
/**
|
|
45866
45875
|
* The capabilities of the video layer.
|
|
45867
45876
|
*
|
|
@@ -45874,6 +45883,12 @@ declare namespace __esri {
|
|
|
45874
45883
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#codecs Read more...}
|
|
45875
45884
|
*/
|
|
45876
45885
|
readonly codecs: Codecs | nullish;
|
|
45886
|
+
/**
|
|
45887
|
+
* The connection information for the video layer.
|
|
45888
|
+
*
|
|
45889
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#connectionInfo Read more...}
|
|
45890
|
+
*/
|
|
45891
|
+
readonly connectionInfo: any | nullish;
|
|
45877
45892
|
/**
|
|
45878
45893
|
* The copyright information for the video layer.
|
|
45879
45894
|
*
|
|
@@ -45970,6 +45985,12 @@ declare namespace __esri {
|
|
|
45970
45985
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#layerId Read more...}
|
|
45971
45986
|
*/
|
|
45972
45987
|
readonly layerId: number | nullish;
|
|
45988
|
+
/**
|
|
45989
|
+
* Provides status details about an ongoing livestream playback.
|
|
45990
|
+
*
|
|
45991
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#livestreamStatus Read more...}
|
|
45992
|
+
*/
|
|
45993
|
+
readonly livestreamStatus: LivestreamStatus | nullish;
|
|
45973
45994
|
/**
|
|
45974
45995
|
* Indicates if the video layer should loop.
|
|
45975
45996
|
*
|
|
@@ -46022,6 +46043,12 @@ declare namespace __esri {
|
|
|
46022
46043
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#playbackRate Read more...}
|
|
46023
46044
|
*/
|
|
46024
46045
|
playbackRate: number;
|
|
46046
|
+
/**
|
|
46047
|
+
* The URL for use with the video player.
|
|
46048
|
+
*
|
|
46049
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#playerUrl Read more...}
|
|
46050
|
+
*/
|
|
46051
|
+
readonly playerUrl: string | nullish;
|
|
46025
46052
|
/**
|
|
46026
46053
|
* Indicates if the video layer is playing.
|
|
46027
46054
|
*
|
|
@@ -46040,6 +46067,15 @@ declare namespace __esri {
|
|
|
46040
46067
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#qualities Read more...}
|
|
46041
46068
|
*/
|
|
46042
46069
|
readonly qualities: ("sd" | "hd" | "fhd" | "qhd" | "uhd")[] | nullish;
|
|
46070
|
+
/**
|
|
46071
|
+
* Property is used to define orientation information to compute the
|
|
46072
|
+
* display angle of the sensor location symbol.
|
|
46073
|
+
*
|
|
46074
|
+
* @default { source: "platformHeading", symbolOffset: 0 }
|
|
46075
|
+
*
|
|
46076
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#sensorSymbolOrientation Read more...}
|
|
46077
|
+
*/
|
|
46078
|
+
sensorSymbolOrientation: SensorSymbolOrientation;
|
|
46043
46079
|
/**
|
|
46044
46080
|
* The ArcGIS Enterprise Portal item id of the video service.
|
|
46045
46081
|
*
|
|
@@ -46373,6 +46409,13 @@ declare namespace __esri {
|
|
|
46373
46409
|
sensorSymbol?: | (SimpleMarkerSymbolProperties & { type: "simple-marker" })
|
|
46374
46410
|
| (PictureMarkerSymbolProperties & { type: "picture-marker" })
|
|
46375
46411
|
| (CIMSymbolProperties & { type: "cim" });
|
|
46412
|
+
/**
|
|
46413
|
+
* Property is used to define orientation information to compute the
|
|
46414
|
+
* display angle of the sensor location symbol.
|
|
46415
|
+
*
|
|
46416
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#sensorSymbolOrientation Read more...}
|
|
46417
|
+
*/
|
|
46418
|
+
sensorSymbolOrientation?: SensorSymbolOrientation;
|
|
46376
46419
|
/**
|
|
46377
46420
|
* A {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html SimpleLineSymbol} used for representing the trailing line of travel of a moving video collection sensor.
|
|
46378
46421
|
*
|
|
@@ -46412,6 +46455,21 @@ declare namespace __esri {
|
|
|
46412
46455
|
volume?: number;
|
|
46413
46456
|
}
|
|
46414
46457
|
|
|
46458
|
+
/**
|
|
46459
|
+
* The **CameraInfo** is an object that represents the camera information of the video layer.
|
|
46460
|
+
*
|
|
46461
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#CameraInfo Read more...}
|
|
46462
|
+
*/
|
|
46463
|
+
export interface VideoLayerCameraInfo {
|
|
46464
|
+
farDistance: number;
|
|
46465
|
+
fov: number;
|
|
46466
|
+
heading: number;
|
|
46467
|
+
height: number;
|
|
46468
|
+
nearDistance: number;
|
|
46469
|
+
position: CameraInfoPosition;
|
|
46470
|
+
tilt: number;
|
|
46471
|
+
}
|
|
46472
|
+
|
|
46415
46473
|
/**
|
|
46416
46474
|
* The **Codecs** is an object that represents the codecs used by the video layer.
|
|
46417
46475
|
*
|
|
@@ -46423,6 +46481,31 @@ declare namespace __esri {
|
|
|
46423
46481
|
video: string;
|
|
46424
46482
|
}
|
|
46425
46483
|
|
|
46484
|
+
/**
|
|
46485
|
+
* The **LivestreamStatus** is an object that represents the livestream status of a video layer.
|
|
46486
|
+
*
|
|
46487
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#LivestreamStatus Read more...}
|
|
46488
|
+
*/
|
|
46489
|
+
export interface LivestreamStatus {
|
|
46490
|
+
atLiveEdge: boolean | nullish;
|
|
46491
|
+
behindLiveEdge: boolean | nullish;
|
|
46492
|
+
liveCurrentTime: number | nullish;
|
|
46493
|
+
liveWindow: number | nullish;
|
|
46494
|
+
pastSeekEnd: number | nullish;
|
|
46495
|
+
seekableEnd: number | nullish;
|
|
46496
|
+
seekableStart: number | nullish;
|
|
46497
|
+
}
|
|
46498
|
+
|
|
46499
|
+
/**
|
|
46500
|
+
* The **SensorSymbolOrientation** type defines the orientation source and symbol offset for the sensor symbol.
|
|
46501
|
+
*
|
|
46502
|
+
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-VideoLayer.html#SensorSymbolOrientation Read more...}
|
|
46503
|
+
*/
|
|
46504
|
+
export interface SensorSymbolOrientation {
|
|
46505
|
+
source: "platformHeading" | "cameraAzimuth";
|
|
46506
|
+
symbolOffset: number;
|
|
46507
|
+
}
|
|
46508
|
+
|
|
46426
46509
|
export interface VideoLayerCapabilities {
|
|
46427
46510
|
operations: VideoLayerCapabilitiesOperations;
|
|
46428
46511
|
}
|
|
@@ -46479,6 +46562,14 @@ declare namespace __esri {
|
|
|
46479
46562
|
type: "Video Layer";
|
|
46480
46563
|
}
|
|
46481
46564
|
|
|
46565
|
+
export interface CameraInfoPosition {
|
|
46566
|
+
x: number;
|
|
46567
|
+
y: number;
|
|
46568
|
+
z?: number;
|
|
46569
|
+
m?: number;
|
|
46570
|
+
spatialReference?: SpatialReference | any;
|
|
46571
|
+
}
|
|
46572
|
+
|
|
46482
46573
|
export interface ViewshedLayer extends Layer, OperationalLayer {
|
|
46483
46574
|
}
|
|
46484
46575
|
|
|
@@ -96840,7 +96931,7 @@ declare namespace __esri {
|
|
|
96840
96931
|
*/
|
|
96841
96932
|
readonly analysis: ElevationProfileAnalysis;
|
|
96842
96933
|
/**
|
|
96843
|
-
* Units used for all the results and statistics of the elevation profile analysis.
|
|
96934
|
+
* Units used for all the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-analysis-ElevationProfileAnalysisView2D.html#results results} and {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-analysis-ElevationProfileAnalysisView2D.html#statistics statistics} of the elevation profile analysis.
|
|
96844
96935
|
*
|
|
96845
96936
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-analysis-ElevationProfileAnalysisView2D.html#effectiveDisplayUnits Read more...}
|
|
96846
96937
|
*/
|
|
@@ -96852,13 +96943,13 @@ declare namespace __esri {
|
|
|
96852
96943
|
*/
|
|
96853
96944
|
readonly error: ElevationProfileError | nullish;
|
|
96854
96945
|
/**
|
|
96855
|
-
* Points being hovered in the chart, in the view's spatial reference, computed from the
|
|
96946
|
+
* Points being hovered in the chart, in the view's spatial reference, computed from the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-analysis-ElevationProfileAnalysisView2D.html#hoveredPosition hoveredPosition} property.
|
|
96856
96947
|
*
|
|
96857
96948
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-analysis-ElevationProfileAnalysisView2D.html#hoveredPoints Read more...}
|
|
96858
96949
|
*/
|
|
96859
96950
|
readonly hoveredPoints: (Point | nullish)[];
|
|
96860
96951
|
/**
|
|
96861
|
-
*
|
|
96952
|
+
* Property to track the position, in [0, 1], that is being hovered in the elevation profile chart.
|
|
96862
96953
|
*
|
|
96863
96954
|
* @default null
|
|
96864
96955
|
*
|
|
@@ -96880,7 +96971,7 @@ declare namespace __esri {
|
|
|
96880
96971
|
*/
|
|
96881
96972
|
readonly progress: number;
|
|
96882
96973
|
/**
|
|
96883
|
-
*
|
|
96974
|
+
* Results of the elevation profile analysis.
|
|
96884
96975
|
*
|
|
96885
96976
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-2d-analysis-ElevationProfileAnalysisView2D.html#results Read more...}
|
|
96886
96977
|
*/
|
|
@@ -96919,7 +97010,7 @@ declare namespace __esri {
|
|
|
96919
97010
|
*/
|
|
96920
97011
|
pickFeature(options?: ElevationProfileAnalysisView2DPickFeatureOptions | nullish): Promise<ElevationProfilePickResult>;
|
|
96921
97012
|
/**
|
|
96922
|
-
* Starts the interactive placement of a new input
|
|
97013
|
+
* Starts the interactive placement of a new input line for the elevation profile analysis.
|
|
96923
97014
|
*
|
|
96924
97015
|
* @param options An object specifying additional options.
|
|
96925
97016
|
*
|
|
@@ -97619,7 +97710,7 @@ declare namespace __esri {
|
|
|
97619
97710
|
*/
|
|
97620
97711
|
readonly analysis: ElevationProfileAnalysis;
|
|
97621
97712
|
/**
|
|
97622
|
-
* Units used for all the results and statistics of the elevation profile analysis.
|
|
97713
|
+
* Units used for all the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-ElevationProfileAnalysisView3D.html#results results} and {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-ElevationProfileAnalysisView3D.html#statistics statistics} of the elevation profile analysis.
|
|
97623
97714
|
*
|
|
97624
97715
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-ElevationProfileAnalysisView3D.html#effectiveDisplayUnits Read more...}
|
|
97625
97716
|
*/
|
|
@@ -97631,13 +97722,13 @@ declare namespace __esri {
|
|
|
97631
97722
|
*/
|
|
97632
97723
|
readonly error: ElevationProfileError | nullish;
|
|
97633
97724
|
/**
|
|
97634
|
-
* Points being hovered in the chart, in the view's spatial reference, computed from the
|
|
97725
|
+
* Points being hovered in the chart, in the view's spatial reference, computed from the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-ElevationProfileAnalysisView3D.html#hoveredPosition hoveredPosition} property.
|
|
97635
97726
|
*
|
|
97636
97727
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-ElevationProfileAnalysisView3D.html#hoveredPoints Read more...}
|
|
97637
97728
|
*/
|
|
97638
97729
|
readonly hoveredPoints: (Point | nullish)[];
|
|
97639
97730
|
/**
|
|
97640
|
-
*
|
|
97731
|
+
* Property to track the position, in [0, 1], that is being hovered in the elevation profile chart.
|
|
97641
97732
|
*
|
|
97642
97733
|
* @default null
|
|
97643
97734
|
*
|
|
@@ -97659,7 +97750,7 @@ declare namespace __esri {
|
|
|
97659
97750
|
*/
|
|
97660
97751
|
readonly progress: number;
|
|
97661
97752
|
/**
|
|
97662
|
-
*
|
|
97753
|
+
* Results of the elevation profile analysis.
|
|
97663
97754
|
*
|
|
97664
97755
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-3d-analysis-ElevationProfileAnalysisView3D.html#results Read more...}
|
|
97665
97756
|
*/
|
|
@@ -97690,7 +97781,7 @@ declare namespace __esri {
|
|
|
97690
97781
|
visible: boolean;
|
|
97691
97782
|
constructor(properties?: any);
|
|
97692
97783
|
/**
|
|
97693
|
-
* Starts an interactive operation to pick a feature in the view to use as the input for the elevation profile analysis.
|
|
97784
|
+
* Starts an interactive operation to pick a line feature in the view to use as the input for the elevation profile analysis.
|
|
97694
97785
|
*
|
|
97695
97786
|
* @param options An object specifying additional options.
|
|
97696
97787
|
*
|
|
@@ -97698,7 +97789,7 @@ declare namespace __esri {
|
|
|
97698
97789
|
*/
|
|
97699
97790
|
pickFeature(options?: ElevationProfileAnalysisView3DPickFeatureOptions | nullish): Promise<ElevationProfilePickResult>;
|
|
97700
97791
|
/**
|
|
97701
|
-
* Starts the interactive placement of a new input
|
|
97792
|
+
* Starts the interactive placement of a new input line for the elevation profile analysis.
|
|
97702
97793
|
*
|
|
97703
97794
|
* @param options An object specifying additional options.
|
|
97704
97795
|
*
|
|
@@ -98784,7 +98875,7 @@ declare namespace __esri {
|
|
|
98784
98875
|
*/
|
|
98785
98876
|
readonly available: boolean;
|
|
98786
98877
|
/**
|
|
98787
|
-
* The profile line whose elevation is represented by this result.
|
|
98878
|
+
* The {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-analysis-ElevationProfileAnalysis.html#profiles profile line} whose elevation is represented by this result.
|
|
98788
98879
|
*
|
|
98789
98880
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-analysis-ElevationProfile-ElevationProfileResult.html#profile Read more...}
|
|
98790
98881
|
*/
|
|
@@ -115926,7 +116017,7 @@ declare namespace __esri {
|
|
|
115926
116017
|
*/
|
|
115927
116018
|
yearPlaying: boolean;
|
|
115928
116019
|
/**
|
|
115929
|
-
* Provides the logic for the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html Daylight} widget
|
|
116020
|
+
* Provides the logic for the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight.html Daylight} widget.
|
|
115930
116021
|
*
|
|
115931
116022
|
* {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Daylight-DaylightViewModel.html Read more...}
|
|
115932
116023
|
*/
|
|
@@ -118636,6 +118727,9 @@ declare namespace __esri {
|
|
|
118636
118727
|
flow?: boolean;
|
|
118637
118728
|
sketch?: boolean;
|
|
118638
118729
|
undoRedoButtons?: boolean;
|
|
118730
|
+
zoomToButton?: boolean;
|
|
118731
|
+
splitButton?: boolean;
|
|
118732
|
+
mergeButton?: boolean;
|
|
118639
118733
|
snappingControls?: boolean;
|
|
118640
118734
|
snappingControlsElements?: VisibleElementsSnappingControlsElementsProperties;
|
|
118641
118735
|
}
|
|
@@ -118656,6 +118750,9 @@ declare namespace __esri {
|
|
|
118656
118750
|
flow: boolean;
|
|
118657
118751
|
sketch: boolean;
|
|
118658
118752
|
undoRedoButtons: boolean;
|
|
118753
|
+
zoomToButton: boolean;
|
|
118754
|
+
splitButton: boolean;
|
|
118755
|
+
mergeButton: boolean;
|
|
118659
118756
|
snappingControls: boolean;
|
|
118660
118757
|
}
|
|
118661
118758
|
|
package/kernel.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.0";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="5.0.0-next.
|
|
5
|
+
import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.0";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="5.0.0-next.19",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,r as fullVersion,s as id,i as setId,e as version};
|
package/layers/BingMapsLayer.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{__decorate as e}from"tslib";import t from"../request.js";import{deprecatedModule as r}from"../core/deprecate.js";import o from"../core/Error.js";import{JSONMap as a}from"../core/jsonMap.js";import i from"../core/Logger.js";import{MultiOriginJSONMixin as s}from"../core/MultiOriginJSONSupport.js";import{property as n}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/RandomLCG.js";import{subclass as l}from"../core/accessorSupport/decorators/subclass.js";import p from"../geometry/Point.js";import g from"../geometry/SpatialReference.js";import u from"./BaseTileLayer.js";import{
|
|
5
|
+
import{__decorate as e}from"tslib";import t from"../request.js";import{deprecatedModule as r}from"../core/deprecate.js";import o from"../core/Error.js";import{JSONMap as a}from"../core/jsonMap.js";import i from"../core/Logger.js";import{MultiOriginJSONMixin as s}from"../core/MultiOriginJSONSupport.js";import{property as n}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/RandomLCG.js";import{subclass as l}from"../core/accessorSupport/decorators/subclass.js";import p from"../geometry/Point.js";import g from"../geometry/SpatialReference.js";import u from"./BaseTileLayer.js";import{OperationalLayer as d}from"./mixins/OperationalLayer.js";import y from"./support/LOD.js";import c from"./support/TileInfo.js";const m=new a({BingMapsAerial:"aerial",BingMapsRoad:"road",BingMapsHybrid:"hybrid"}),h="https://dev.virtualearth.net";r(i.getLogger("esri.layers.BingMapsLayer"),"esri.layers.BingMapsLayer",{version:"4.33",warnOnce:!0});let b=class extends(d(s(u))){constructor(e){super(e),this.type="bing-maps",this.tileInfo=new c({size:[256,256],dpi:96,origin:new p({x:-20037508.342787,y:20037508.342787,spatialReference:g.WebMercator}),spatialReference:g.WebMercator,lods:[new y({level:1,resolution:78271.5169639999,scale:295828763.795777}),new y({level:2,resolution:39135.7584820001,scale:147914381.897889}),new y({level:3,resolution:19567.8792409999,scale:73957190.948944}),new y({level:4,resolution:9783.93962049996,scale:36978595.474472}),new y({level:5,resolution:4891.96981024998,scale:18489297.737236}),new y({level:6,resolution:2445.98490512499,scale:9244648.868618}),new y({level:7,resolution:1222.99245256249,scale:4622324.434309}),new y({level:8,resolution:611.49622628138,scale:2311162.217155}),new y({level:9,resolution:305.748113140558,scale:1155581.108577}),new y({level:10,resolution:152.874056570411,scale:577790.554289}),new y({level:11,resolution:76.4370282850732,scale:288895.277144}),new y({level:12,resolution:38.2185141425366,scale:144447.638572}),new y({level:13,resolution:19.1092570712683,scale:72223.819286}),new y({level:14,resolution:9.55462853563415,scale:36111.909643}),new y({level:15,resolution:4.77731426794937,scale:18055.954822}),new y({level:16,resolution:2.38865713397468,scale:9027.977411}),new y({level:17,resolution:1.19432856685505,scale:4513.988705}),new y({level:18,resolution:.597164283559817,scale:2256.994353}),new y({level:19,resolution:.298582141647617,scale:1128.497176}),new y({level:20,resolution:.1492910708238085,scale:564.248588})]}),this.key=null,this.style="road",this.culture="en-US",this.region=null,this.portalUrl=null,this.hasAttributionData=!0}get bingMetadata(){return this._get("bingMetadata")}set bingMetadata(e){this._set("bingMetadata",e)}get copyright(){return null!=this.bingMetadata?this.bingMetadata.copyright:null}get operationalLayerType(){return m.toJSON(this.style)}get bingLogo(){return null!=this.bingMetadata?this.bingMetadata.brandLogoUri:null}load(e){return this.key?this.addResolvingPromise(this._getMetadata()):this.portalUrl?this.addResolvingPromise(this._getPortalBingKey().then(()=>this._getMetadata())):this.addResolvingPromise(Promise.reject(new o("bingmapslayer:load","Bing layer must have bing key."))),Promise.resolve(this)}getTileUrl(e,t,r){if(!this.loaded||null==this.bingMetadata)return null;const o=this.bingMetadata.resourceSets[0].resources[0],a=o.imageUrlSubdomains[t%o.imageUrlSubdomains.length],i=this._getQuadKey(e,t,r);return o.imageUrl.replace("{subdomain}",a).replace("{quadkey}",i)}async fetchAttributionData(){return this.load().then(()=>{if(null==this.bingMetadata)return null;return{contributors:this.bingMetadata.resourceSets[0].resources[0].imageryProviders.map(e=>({attribution:e.attribution,coverageAreas:e.coverageAreas.map(e=>({zoomMin:e.zoomMin-(e.zoomMin?1:0),zoomMax:e.zoomMax-(e.zoomMin?1:0),score:1,bbox:[e.bbox[0],e.bbox[1],e.bbox[2],e.bbox[3]]}))}))}})}_getMetadata(){const e={road:"roadOnDemand",aerial:"aerial",hybrid:"aerialWithLabelsOnDemand"}[this.style];return t(`${h}/REST/v1/Imagery/Metadata/${e}`,{responseType:"json",query:{include:"ImageryProviders",uriScheme:"https",key:this.key,suppressStatus:!0,output:"json",culture:this.culture,userRegion:this.region}}).then(e=>{const t=e.data;if(200!==t.statusCode)throw new o("bingmapslayer:getmetadata",t.statusDescription);if(this.bingMetadata=t,0===this.bingMetadata.resourceSets.length)throw new o("bingmapslayer:getmetadata","no bing resourcesets");if(0===this.bingMetadata.resourceSets[0].resources.length)throw new o("bingmapslayer:getmetadata","no bing resources")}).catch(e=>{throw new o("bingmapslayer:getmetadata",e.message)})}_getPortalBingKey(){return t(this.portalUrl??"",{responseType:"json",authMode:"no-prompt",query:{f:"json"}}).then(e=>{if(!e.data.bingKey)throw new o("bingmapslayer:getportalbingkey","The referenced Portal does not contain a valid bing key");this.key=e.data.bingKey}).catch(e=>{throw new o("bingmapslayer:getportalbingkey",e.message)})}_getQuadKey(e,t,r){let o="";for(let a=e;a>0;a--){let e=0;const i=1<<a-1;0!==(r&i)&&(e+=1),0!==(t&i)&&(e+=2),o+=e.toString()}return o}};e([n({json:{read:!1,write:!1},value:null})],b.prototype,"bingMetadata",null),e([n({json:{read:!1,write:!1},value:"bing-maps",readOnly:!0})],b.prototype,"type",void 0),e([n({type:c})],b.prototype,"tileInfo",void 0),e([n({type:String,readOnly:!0,json:{read:!1,write:!1}})],b.prototype,"copyright",null),e([n({type:String,json:{write:!1,read:!1}})],b.prototype,"key",void 0),e([n({type:m.apiValues,nonNullable:!0,json:{read:{source:"layerType",reader:m.read}}})],b.prototype,"style",void 0),e([n({type:["BingMapsAerial","BingMapsHybrid","BingMapsRoad"]})],b.prototype,"operationalLayerType",null),e([n({type:String,json:{write:!1,read:!1}})],b.prototype,"culture",void 0),e([n({type:String,json:{write:!1,read:!1}})],b.prototype,"region",void 0),e([n({type:String,json:{write:!0,read:!0}})],b.prototype,"portalUrl",void 0),e([n({type:Boolean,json:{write:!1,read:!1}})],b.prototype,"hasAttributionData",void 0),e([n({type:String,readOnly:!0})],b.prototype,"bingLogo",null),b=e([l("esri.layers.BingMapsLayer")],b);const w=b;export{w as default};
|