@arcgis/core 6.0.0-next.20 → 6.0.0-next.22
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/arcgisGlobal.d.ts +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0049b66ccbfb168caa76.js +1 -0
- package/assets/esri/core/workers/chunks/092e311cb7aea92a6a26.js +1 -0
- package/assets/esri/core/workers/chunks/0df9a906f7823c23d426.js +1 -0
- package/assets/esri/core/workers/chunks/17c6d66b47aa690df0d4.js +1 -0
- package/assets/esri/core/workers/chunks/{3704b4e7efc3abc1a7b1.js → 242a77066ac5cdb5b7d7.js} +1 -1
- package/assets/esri/core/workers/chunks/2ad69cc496235702bbf2.js +1 -0
- package/assets/esri/core/workers/chunks/2f91fd61019d2a37476d.js +1 -0
- package/assets/esri/core/workers/chunks/3cd04d23b73beaf79650.js +1 -0
- package/assets/esri/core/workers/chunks/434a8ba841a59e0deab9.js +1 -0
- package/assets/esri/core/workers/chunks/{60f92eb03c6e17ab4747.js → 435b90168f79c5587a07.js} +1 -1
- package/assets/esri/core/workers/chunks/{f00458654c7c34c369ef.js → 45ba4aa87a4732198596.js} +1 -1
- package/assets/esri/core/workers/chunks/504184828048310a052c.js +1 -0
- package/assets/esri/core/workers/chunks/{eca44e53bcee9b08d70a.js → 5046214dd32029cb733d.js} +1 -1
- package/assets/esri/core/workers/chunks/53ff68d4f9e365fc15cd.js +1 -0
- package/assets/esri/core/workers/chunks/542e5640ea1b80ef801a.js +1 -0
- package/assets/esri/core/workers/chunks/58865772bed48141a56a.js +1 -0
- package/assets/esri/core/workers/chunks/5a9b7eb26f936f03d02e.js +1 -0
- package/assets/esri/core/workers/chunks/5d76f4d97beee494bbbf.js +1 -0
- package/assets/esri/core/workers/chunks/5f07f52bb8b7721f08d3.js +1 -0
- package/assets/esri/core/workers/chunks/67f54efc817b241f8746.js +1 -0
- package/assets/esri/core/workers/chunks/6d41444b46677aa762a7.js +1 -0
- package/assets/esri/core/workers/chunks/6dfe96b056bec30068df.js +1 -0
- package/assets/esri/core/workers/chunks/7159d9c36869cd82599e.js +29 -0
- package/assets/esri/core/workers/chunks/792d2b62356a1d953c88.js +1 -0
- package/assets/esri/core/workers/chunks/{00d66e3fba5ab4d2aa3c.js → 84940d8e14caf5a27e04.js} +1 -1
- package/assets/esri/core/workers/chunks/{9401cc22373566e1171e.js → 8a7b02037151767542f1.js} +1 -1
- package/assets/esri/core/workers/chunks/95b82cbbe355266c65d7.js +1 -0
- package/assets/esri/core/workers/chunks/a64446a3328a7323e307.js +1 -0
- package/assets/esri/core/workers/chunks/a65951f1d5702cfd996e.js +1 -0
- package/assets/esri/core/workers/chunks/{7bbfe9ff352afc566367.js → a679207c3458cc0b1fec.js} +1 -1
- package/assets/esri/core/workers/chunks/a6f969851d4278865cc5.js +1 -0
- package/assets/esri/core/workers/chunks/aa4f3751f0d830113bed.js +1 -0
- package/assets/esri/core/workers/chunks/b0ca81a07cff25df19d2.js +1 -0
- package/assets/esri/core/workers/chunks/b1d989b72203113a06fe.js +1 -0
- package/assets/esri/core/workers/chunks/{9fab290090ef2ccae810.js → b3273f847405799e3362.js} +1 -1
- package/assets/esri/core/workers/chunks/b4c3ec081874b49ff89b.js +1 -0
- package/assets/esri/core/workers/chunks/b6d71a4ab788a09714f3.js +1 -0
- package/assets/esri/core/workers/chunks/{597db9c90f19092d8d66.js → baed828b7846c0863289.js} +14 -14
- package/assets/esri/core/workers/chunks/{28b74bc77f7c13080074.js → be97a629e2ae4d13ceb3.js} +1 -1
- package/assets/esri/core/workers/chunks/c0d7ae314ebfad1e3791.js +1 -0
- package/assets/esri/core/workers/chunks/c82daefb193aae895bc0.js +1 -0
- package/assets/esri/core/workers/chunks/d8a7eba588d374b2f961.js +1 -0
- package/assets/esri/core/workers/chunks/db9921fbda556f142c4a.js +1 -0
- package/assets/esri/core/workers/chunks/ee08ae5b73439a1ff666.js +1 -0
- package/assets/esri/core/workers/chunks/{a34b3d2e11a777e1ff3f.js → f28b63c1179366dac8a2.js} +1 -1
- package/assets/esri/core/workers/chunks/{557671c897ca5563be6c.js → f6bd7b52745b82ba73dc.js} +1 -1
- package/assets/esri/core/workers/chunks/fcaf9450642fcef83286.js +1 -0
- package/assets/esri/core/workers/chunks/feb41abc03d677df6f73.js +1 -0
- package/assets/esri/core/workers/chunks/ffcb99693182a621a93e.js +1 -0
- package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +4 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/CloudsComposition.glsl.js +2 -2
- package/chunks/DefaultMaterial.glsl.js +1 -1
- package/chunks/RealisticTree.glsl.js +1 -1
- package/chunks/RibbonLine.glsl.js +113 -121
- package/config.d.ts +47 -38
- package/config.js +1 -1
- package/core/accessorSupport/trackingUtils.js +1 -1
- package/core/accessorSupport/watch.js +1 -1
- package/core/workers/Connection.d.ts +58 -89
- package/core/workers/workerFactory.js +1 -1
- package/core/workers.d.ts +61 -53
- package/geometry/support/MeshComponent.d.ts +1 -1
- package/geometry/support/vcsData.js +1 -1
- package/kernel.js +1 -1
- package/layers/FeatureLayer.d.ts +39 -19
- package/layers/FeatureLayer.js +1 -1
- package/layers/GeospatialPDFLayer.js +1 -1
- package/layers/MapImageLayer.d.ts +10 -3
- package/layers/MapNotesLayer.d.ts +2 -2
- package/layers/SubtypeGroupLayer.d.ts +64 -1
- package/layers/SubtypeGroupLayer.js +1 -1
- package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +1 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/graphics/sources/support/QueryTask.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +16 -16
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
- package/layers/mixins/ArcGISMapService.js +1 -1
- package/layers/ogc/ogcFeatureUtils.js +1 -1
- package/layers/orientedImagery/core/coverageUtils.js +1 -1
- package/layers/support/LabelClass.d.ts +20 -2
- package/layers/support/Sublayer.d.ts +61 -17
- package/layers/support/Sublayer.js +1 -1
- package/layers/support/TimeInformation.js +2 -0
- package/layers/support/commonProperties.js +1 -1
- package/libs/basisu/textureMetadata.js +2 -0
- package/package.json +4 -4
- package/rest/layerSources/DynamicDataLayer.d.ts +4 -2
- package/rest/layerSources/DynamicDataLayer.js +1 -1
- package/rest/layerSources/DynamicMapLayer.d.ts +1 -1
- package/rest/layerSources/DynamicWorkspaceLayer.d.ts +49 -0
- package/rest/layerSources/DynamicWorkspaceLayer.js +2 -0
- package/rest/layerSources/typeUtils.js +2 -0
- package/rest/print.js +1 -1
- package/rest/query/operations/queryRelatedRecords.js +1 -1
- package/rest/query/operations/queryUtils.js +1 -1
- package/rest/support/Query.js +1 -1
- package/rest/support/RelationshipQuery.js +1 -1
- package/rest/support/timeUtils.js +2 -0
- package/symbols/LineSymbol3D.d.ts +5 -3
- package/symbols/TextSymbol.d.ts +27 -2
- package/time/legacyTimeZoneMap.js +1 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
- package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
- package/views/2d/analysis/DistanceMeasurementAnalysisView2D.js +1 -1
- package/views/2d/analysis/ElevationProfileAnalysisView2D.d.ts +6 -0
- package/views/2d/analysis/ElevationProfileAnalysisView2D.js +1 -1
- package/views/2d/layers/AnnotationFeatureLayerView2D.js +1 -1
- package/views/2d/layers/CSVLayerView2D.js +1 -1
- package/views/2d/layers/CatalogFootprintLayerView2D.js +1 -1
- package/views/2d/layers/DimensionFeatureLayerView2D.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
- package/views/2d/layers/GeoJSONLayerView2D.js +1 -1
- package/views/2d/layers/KnowledgeGraphSublayerView2D.js +1 -1
- package/views/2d/layers/OGCFeatureLayerView2D.js +1 -1
- package/views/2d/layers/OrientedImageryLayerView2D.js +1 -1
- package/views/2d/layers/ParquetLayerView2D.js +1 -1
- package/views/2d/layers/StreamLayerView2D.js +1 -1
- package/views/2d/layers/SubtypeGroupLayerView2D.js +1 -1
- package/views/2d/layers/WFSLayerView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
- package/views/3d/GroundView3D.js +1 -1
- package/views/3d/analysis/Dimension/DimensionVisualization.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
- package/views/3d/analysis/ElevationProfileAnalysisView3D.d.ts +6 -0
- package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedFieldOfViewManipulation.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedPlacementPointPlugin.js +1 -1
- package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementController.js +1 -1
- package/views/3d/environment/SunLighting.d.ts +17 -1
- package/views/3d/environment/SunLighting.js +1 -1
- package/views/3d/environment/VirtualLighting.d.ts +17 -1
- package/views/3d/environment/VirtualLighting.js +1 -1
- package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
- package/views/3d/interactive/manipulators/ResizeManipulator.js +1 -1
- package/views/3d/interactive/manipulators/RotateManipulator.js +1 -1
- package/views/3d/interactive/manipulators/ShiftManipulator.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/TiledLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/support/elevationUpdateUtils.js +1 -1
- package/views/3d/terrain/TerrainData.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/TileAgent.js +1 -1
- package/views/3d/terrain/terrainUtils.js +1 -1
- package/views/3d/terrain/tileUtils.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/SymbolColor.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialExternalColor.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/output/getEmissions.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientLighting.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterColor.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +6 -6
- package/views/3d/webgl-engine/effects/clouds/CloudsComposition.js +1 -1
- package/views/3d/webgl-engine/lib/BasisUtil.js +1 -1
- package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
- package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
- package/views/BasemapView.js +1 -1
- package/views/BreakpointsOwner.d.ts +6 -0
- package/views/GroundView.d.ts +1 -1
- package/views/GroundView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
- package/views/types.d.ts +3 -0
- package/views/ui/UI.js +1 -1
- package/views/webgl/ShaderBuilder.js +1 -1
- package/widgets/Daylight/DaylightViewModel.js +1 -1
- package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer.js +2 -2
- package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
- package/widgets/Sketch/SketchViewModel.d.ts +61 -2
- package/widgets/TimeSlider/TimeSliderViewModel.d.ts +3 -2
- package/widgets/TimeSlider.d.ts +5 -4
- package/assets/esri/core/workers/chunks/0bd5012da287469b17d5.js +0 -1
- package/assets/esri/core/workers/chunks/1e40a26dcce4d1dadc28.js +0 -1
- package/assets/esri/core/workers/chunks/2d13a22f7b2427927fdc.js +0 -1
- package/assets/esri/core/workers/chunks/34e0a8a3a2beea50f4f5.js +0 -1
- package/assets/esri/core/workers/chunks/370aad23df597db80d65.js +0 -1
- package/assets/esri/core/workers/chunks/42fd2a7b22b03dacc6a7.js +0 -1
- package/assets/esri/core/workers/chunks/494bd434fee9032e1d02.js +0 -1
- package/assets/esri/core/workers/chunks/4e350d6c76957f5beb70.js +0 -1
- package/assets/esri/core/workers/chunks/4fe34da1c5d63e66ce98.js +0 -1
- package/assets/esri/core/workers/chunks/501c6e14ab119785252b.js +0 -1
- package/assets/esri/core/workers/chunks/510502a4c9a2ba8d3f7b.js +0 -1
- package/assets/esri/core/workers/chunks/564565246dae080f5e6c.js +0 -1
- package/assets/esri/core/workers/chunks/612104dff305ff062dfa.js +0 -29
- package/assets/esri/core/workers/chunks/6ad309154fe84210d23c.js +0 -1
- package/assets/esri/core/workers/chunks/6c255c029d67423e4dac.js +0 -1
- package/assets/esri/core/workers/chunks/6c9266120d46e8c69dbf.js +0 -1
- package/assets/esri/core/workers/chunks/6c9acd9e4e201dc380e9.js +0 -1
- package/assets/esri/core/workers/chunks/74c866e0b66e61751861.js +0 -1
- package/assets/esri/core/workers/chunks/939942b00ba380e2957e.js +0 -1
- package/assets/esri/core/workers/chunks/95dbbddac6581b9d671f.js +0 -1
- package/assets/esri/core/workers/chunks/9d61740ef8bdcc162be1.js +0 -1
- package/assets/esri/core/workers/chunks/a49fe94933b65b4b64f8.js +0 -1
- package/assets/esri/core/workers/chunks/aa1ac7954e4f0fefe15b.js +0 -1
- package/assets/esri/core/workers/chunks/b48952e1fb4cb7360dd0.js +0 -1
- package/assets/esri/core/workers/chunks/b5df193c93e9c19f9700.js +0 -1
- package/assets/esri/core/workers/chunks/befa32b9e7b3fbdd431e.js +0 -1
- package/assets/esri/core/workers/chunks/c2c1f51a4668055c2838.js +0 -1
- package/assets/esri/core/workers/chunks/d0f5bee9db1ad51ae687.js +0 -1
- package/assets/esri/core/workers/chunks/d678828726371243d5eb.js +0 -1
- package/assets/esri/core/workers/chunks/dd0310184fe4832755a8.js +0 -1
- package/assets/esri/core/workers/chunks/de5ecb567bd69c613e9d.js +0 -1
- package/assets/esri/core/workers/chunks/e1f5d00878f27e1d413e.js +0 -1
- package/assets/esri/core/workers/chunks/e8bf653376a607f00897.js +0 -1
- package/assets/esri/core/workers/chunks/fb70ab267a08e24b710f.js +0 -1
- package/assets/esri/core/workers/chunks/fc44d45598a7476bc606.js +0 -1
|
@@ -49,30 +49,23 @@ export interface InvokeOptions extends AbortOptions {
|
|
|
49
49
|
*
|
|
50
50
|
* ```js
|
|
51
51
|
* // Module loaded in main thread
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* .
|
|
63
|
-
*
|
|
64
|
-
* connection.close();
|
|
65
|
-
* connection = null;
|
|
66
|
-
*
|
|
67
|
-
* return result;
|
|
68
|
-
* });
|
|
52
|
+
* import { open } from "@arcgis/core/core/workers.js";
|
|
53
|
+
*
|
|
54
|
+
* export async function getSumAsync(numbers) {
|
|
55
|
+
* const connection = await open(new URL("./calculator.js", import.meta.url).href, {
|
|
56
|
+
* isESM: true
|
|
57
|
+
* });
|
|
58
|
+
*
|
|
59
|
+
* try {
|
|
60
|
+
* return await connection.invoke("getSum", numbers);
|
|
61
|
+
* } finally {
|
|
62
|
+
* connection.close();
|
|
63
|
+
* }
|
|
69
64
|
* }
|
|
70
65
|
*
|
|
71
66
|
* // Invoke our method.
|
|
72
|
-
* getSumAsync([0, 2, 4, 6, 8])
|
|
73
|
-
*
|
|
74
|
-
* console.log("Result:", result);
|
|
75
|
-
* });
|
|
67
|
+
* const result = await getSumAsync([0, 2, 4, 6, 8]);
|
|
68
|
+
* console.log("Result:", result);
|
|
76
69
|
* ```
|
|
77
70
|
*
|
|
78
71
|
* <span id="multiple-parameters"></span>
|
|
@@ -102,55 +95,37 @@ export interface InvokeOptions extends AbortOptions {
|
|
|
102
95
|
*
|
|
103
96
|
* ```js
|
|
104
97
|
* // Module loaded in main thread
|
|
105
|
-
* export function mapMultiplyAsync(numbers, factor) {
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
* numbers: numbers,
|
|
116
|
-
* factor: factor
|
|
117
|
-
* });
|
|
118
|
-
* })
|
|
119
|
-
* .then(function(result) {
|
|
120
|
-
* // close the connection after we are done.
|
|
121
|
-
* connection.close();
|
|
122
|
-
* connection = null;
|
|
123
|
-
*
|
|
124
|
-
* return result;
|
|
98
|
+
* export async function mapMultiplyAsync(numbers, factor) {
|
|
99
|
+
* const connection = await open(new URL("./calculator.js", import.meta.url).href, {
|
|
100
|
+
* isESM: true
|
|
101
|
+
* });
|
|
102
|
+
*
|
|
103
|
+
* try {
|
|
104
|
+
* // Invoke mapMultiply and pass an object with two key-value pairs.
|
|
105
|
+
* return await connection.invoke("mapMultiply", {
|
|
106
|
+
* numbers: numbers,
|
|
107
|
+
* factor: factor
|
|
125
108
|
* });
|
|
109
|
+
* } finally {
|
|
110
|
+
* connection.close();
|
|
111
|
+
* }
|
|
126
112
|
* }
|
|
127
113
|
*
|
|
128
114
|
* // Invoke the method.
|
|
129
|
-
* mapMultiplyAsync([0, 2, 4, 6, 8], 2)
|
|
130
|
-
*
|
|
131
|
-
* console.log("Result:", result);
|
|
132
|
-
* });
|
|
115
|
+
* const result = await mapMultiplyAsync([0, 2, 4, 6, 8], 2);
|
|
116
|
+
* console.log("Result:", result);
|
|
133
117
|
* ```
|
|
134
118
|
*
|
|
135
119
|
* <span id="using-transferables"></span>
|
|
136
120
|
* ## Using transferables
|
|
137
121
|
*
|
|
138
|
-
*
|
|
122
|
+
* [Transferable objects](https://developer.mozilla.org/docs/Web/API/Web_Workers_API/Transferable_objects) can be used
|
|
139
123
|
* to transfer data between main and worker thread to avoid copying the data. With this approach,
|
|
140
124
|
* the ownership of the object is transferred to the other context. Use this technique to transfer large
|
|
141
125
|
* chuck of memory with [ArrayBuffers](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer),
|
|
142
126
|
* a [MessagePort](https://developer.mozilla.org/docs/Web/API/MessagePort),
|
|
143
127
|
* or an [ImageBitmap](https://developer.mozilla.org/docs/Web/API/ImageBitmap).
|
|
144
128
|
*
|
|
145
|
-
* > [!CAUTION]
|
|
146
|
-
* >
|
|
147
|
-
* > **Note**
|
|
148
|
-
* >
|
|
149
|
-
* > The `Transferable` interface technically no longer exists. The functionality of `Transferable` objects still exists,
|
|
150
|
-
* > however, but is implemented at a more fundamental level
|
|
151
|
-
* > (technically speaking, using the `[Transferable]` [WebIDL](https://developer.mozilla.org/docs/Glossary/WebIDL)
|
|
152
|
-
* > extended attribute). See also [Transferable objects](https://developer.mozilla.org/docs/Web/API/Web_Workers_API/Transferable_objects).
|
|
153
|
-
*
|
|
154
129
|
* To transfer an object to the worker, use the `transferList` parameter of the [invoke()](https://developers.arcgis.com/javascript/latest/references/core/core/workers/Connection/#invoke) method.
|
|
155
130
|
* For the remote method to return or resolve with a transferable object, the result returned must have
|
|
156
131
|
* two properties: `result` and `transferList`, `result` being an object and `transferList` the array
|
|
@@ -184,26 +159,19 @@ export interface InvokeOptions extends AbortOptions {
|
|
|
184
159
|
*
|
|
185
160
|
* ```js
|
|
186
161
|
* // Module loaded in main thread
|
|
187
|
-
* export function mapMultiplyFloat64Async(numbers, factor) {
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
* numbers: numbers,
|
|
197
|
-
* factor: factor
|
|
198
|
-
* });
|
|
199
|
-
* })
|
|
200
|
-
* .then(function(result) {
|
|
201
|
-
* // close the connection after we are done.
|
|
202
|
-
* connection.close();
|
|
203
|
-
* connection = null;
|
|
204
|
-
*
|
|
205
|
-
* return result;
|
|
162
|
+
* export async function mapMultiplyFloat64Async(numbers, factor) {
|
|
163
|
+
* const connection = await open(new URL("./calculator.js", import.meta.url).href, {
|
|
164
|
+
* isESM: true
|
|
165
|
+
* });
|
|
166
|
+
*
|
|
167
|
+
* try {
|
|
168
|
+
* return await connection.invoke("mapMultiplyFloat64", {
|
|
169
|
+
* numbers: numbers,
|
|
170
|
+
* factor: factor
|
|
206
171
|
* });
|
|
172
|
+
* } finally {
|
|
173
|
+
* connection.close();
|
|
174
|
+
* }
|
|
207
175
|
* }
|
|
208
176
|
*
|
|
209
177
|
* // Invoke our method.
|
|
@@ -213,11 +181,9 @@ export interface InvokeOptions extends AbortOptions {
|
|
|
213
181
|
* floats[2] = 4;
|
|
214
182
|
* floats[3] = 6;
|
|
215
183
|
* floats[4] = 8;
|
|
216
|
-
* mapMultiplyFloat64Async(floats, 2)
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
* console.log("Result:", resultFloats);
|
|
220
|
-
* });
|
|
184
|
+
* const result = await mapMultiplyFloat64Async(floats, 2);
|
|
185
|
+
* const resultFloats = new Float64Array(result);
|
|
186
|
+
* console.log("Result:", resultFloats);
|
|
221
187
|
* ```
|
|
222
188
|
*
|
|
223
189
|
* @since 4.2
|
|
@@ -250,16 +216,19 @@ export default abstract class Connection {
|
|
|
250
216
|
* const controller = new AbortController();
|
|
251
217
|
* const signal = controller.signal;
|
|
252
218
|
*
|
|
253
|
-
* //
|
|
254
|
-
*
|
|
255
|
-
*
|
|
256
|
-
* }
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
*
|
|
219
|
+
* // Invoke a function on a worker thread.
|
|
220
|
+
* async function invokeWithTimeout() {
|
|
221
|
+
* try {
|
|
222
|
+
* const result = await connection.invoke("myLongRunningRemoteFunction", { someParameter: 10 }, {
|
|
223
|
+
* signal
|
|
224
|
+
* });
|
|
225
|
+
* console.log(result);
|
|
226
|
+
* } catch (error) {
|
|
227
|
+
* console.error(error);
|
|
228
|
+
* }
|
|
229
|
+
* }
|
|
230
|
+
*
|
|
231
|
+
* invokeWithTimeout();
|
|
263
232
|
*
|
|
264
233
|
* // if the call it takes more than 10 secs, abort:
|
|
265
234
|
* setTimeout(() => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{getAssetUrl as e}from"../../assets.js";import t from"../../config.js";import{getLocale as n}from"../../intl.js";import{fullVersion as r}from"../../kernel.js";import has from"../has.js";import
|
|
2
|
+
import{getAssetUrl as e}from"../../assets.js";import t from"../../config.js";import{getLocale as n}from"../../intl.js";import{fullVersion as r}from"../../kernel.js";import{deprecatedProperty as i}from"../deprecate.js";import has from"../has.js";import a from"../Logger.js";import{notDeepEqual as o}from"../object.js";import{makeAbsolute as s}from"../urlUtils.js";import{loaderConfig as c}from"./loaderConfig.js";import{receiveMessage as l,MessageType as u}from"./utils.js";import d from"./WorkerFallback.js";const f=()=>a.getLogger(`esri.core.workers.workerFactory`),{HANDSHAKE:p}=u;let m,h;const g=`Failed to create Worker. Fallback to execute module in main thread`;async function _(){if(!has(`esri-workers`))return v(new d);if(!m&&!h)try{let e='"use strict";let globalId=0;const outgoing=new Map,configuration={CONFIGURATION};self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}self.invokeStaticMessage=(e,o,r)=>{const t=r&&r.signal,n=globalId++;let s=null;return new Promise((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}).finally(()=>{t&&t.removeEventListener("abort",s)})};let workerVersionChecked=!1;function checkWorkerVersion(e){if(!workerVersionChecked&&e.kernelInfo){workerVersionChecked=!0;const{fullVersion:o}=configuration.kernelInfo,{fullVersion:r,version:t}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==r&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://esriurl.com/using-local-assets.\\nModules version: ${o}\\nAssets version: ${r??t}\\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let t;function n(e){const o=t.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],e=>{t=e.default||e,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(e=>e||o.isESM&&import(o.modulePath)||new Promise(e=>{require([o.modulePath],e)})).then(n)}):"System"in self&&"function"==typeof System.import?System.import(workerPath).then(e=>(t=e.default,checkWorkerVersion(t),t.loadWorker(o.modulePath))).then(e=>e||o.isESM&&import(o.modulePath)||System.import(o.modulePath)).then(n):esriConfig.workers.useDynamicImport?import(workerPath).then(e=>{t=e.default||e,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(e=>e||import(o.modulePath)).then(n)}):(self.RemoteClient||importScripts(workerPath),t=self.RemoteClient.default||self.RemoteClient,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(e=>e||import(o.modulePath)).then(n));break;case 3:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split(`{CONFIGURATION}`).join(y());m=URL.createObjectURL(new Blob([e],{type:`text/javascript`}))}catch(e){h=e||{}}let e;if(!m)f().warn(g,h),e=new d;else try{e=new Worker(m,{name:`esri-worker-${b++}`})}catch{f().warn(g,h),e=new d}return v(e)}async function v(e){return new Promise(t=>{function n(i){let a=l(i);a&&a.type===p&&(e.removeEventListener(`message`,n),e.removeEventListener(`error`,r),t(e))}function r(t){t.preventDefault(),e.removeEventListener(`message`,n),e.removeEventListener(`error`,r),f().warn(`Failed to create Worker. Fallback to execute module in main thread`,t),e=new d,e.addEventListener(`message`,n),e.addEventListener(`error`,r)}e.addEventListener(`message`,n),e.addEventListener(`error`,r)})}function y(){o(t.workers,{loaderConfig:{has:{},paths:{},map:{},packages:[]}})&&i(a.getLogger(`esri.config`),`workers`,{see:`https://developers.arcgis.com/javascript/latest/references/core/config/#Config-workers`,version:`5.2`,warnOnce:!0});let l;if(t.default!=null){let e={...t};delete e.default,l=JSON.parse(JSON.stringify(e))}else l=JSON.parse(JSON.stringify(t));l.assetsPath=s(l.assetsPath),l.defaultAssetsPath=l.defaultAssetsPath?s(l.defaultAssetsPath):void 0,l.request.interceptors=[],l.log.interceptors=[],l.locale=n(),l.has={"esri-csp-restrictions":has(`esri-csp-restrictions`),"esri-2d-debug":!1,"esri-2d-update-debug":has(`esri-2d-update-debug`),"esri-2d-annotation-dimension-debug":has(`esri-2d-annotation-dimension-debug`),"esri-2d-log-updating":!1,"esri-2d-complex-shaping":has(`esri-2d-complex-shaping`),"esri-2d-force-complex-shaping":has(`esri-2d-force-complex-shaping`),"esri-2d-stabilize-glyphs":has(`esri-2d-stabilize-glyphs`),"featurelayer-pbf":has(`featurelayer-pbf`),"featurelayer-snapping-density-sample-interval":has(`featurelayer-snapping-density-sample-interval`),"featurelayer-snapping-density-max-vertices-per-feature":has(`featurelayer-snapping-density-max-vertices-per-feature`),"featurelayer-snapping-density-max-distance":has(`featurelayer-snapping-density-max-distance`),"featurelayer-simplify-thresholds":has(`featurelayer-simplify-thresholds`),"featurelayer-simplify-payload-size-factors":has(`featurelayer-simplify-payload-size-factors`),"featurelayer-simplify-mobile-factor":has(`featurelayer-simplify-mobile-factor`),"featurelayer-query-max-depth":has(`featurelayer-query-max-depth`),"featurelayer-query-max-page-size":has(`featurelayer-query-max-page-size`),"featurelayer-query-tile-max-features":has(`featurelayer-query-tile-max-features`),"featurelayer-query-tile-concurrency":has(`featurelayer-query-tile-concurrency`),"featurelayer-query-pausing-enabled":has(`featurelayer-query-pausing-enabled`),"featurelayer-snapshot-concurrency":has(`featurelayer-snapshot-concurrency`),"featurelayer-snapshot-enabled":has(`featurelayer-snapshot-enabled`),"featurelayer-pixel-buffering-enabled":has(`featurelayer-pixel-buffering-enabled`),"parquetlayer-full-query-feature-count":has(`parquetlayer-full-query-feature-count`),"parquetlayer-cache-enabled":has(`parquetlayer-cache-enabled`),"parquetlayer-legacy-field-overrides-enabled":has(`parquetlayer-legacy-field-overrides-enabled`),"esri-atomics":has(`esri-atomics`),"esri-shared-array-buffer":has(`esri-shared-array-buffer`),"esri-tiles-debug":has(`esri-tiles-debug`),"esri-workers-arraybuffer-transfer":has(`esri-workers-arraybuffer-transfer`),"feature-polyline-generalization-factor":has(`feature-polyline-generalization-factor`),"host-webworker":1},l.workers.loaderUrl&&(l.workers.loaderUrl=s(l.workers.loaderUrl)),l.workers.workerPath?l.workers.workerPath=s(l.workers.workerPath):l.workers.workerPath=s(e(`esri/core/workers/RemoteClient.js`)),l.workers.useDynamicImport=has(`esri-esbuild-build`);let u=t.workers.loaderConfig,d=c({baseUrl:u?.baseUrl,locale:n(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...u?.has},map:{...u?.map},paths:{...u?.paths},packages:u?.packages||[]});return JSON.stringify({esriConfig:l,loaderConfig:d,kernelInfo:{fullVersion:r}})}let b=0;export{_ as createWorker};
|
package/core/workers.d.ts
CHANGED
|
@@ -32,14 +32,18 @@ import type { AbortOptions } from "./promiseUtils.js";
|
|
|
32
32
|
*
|
|
33
33
|
* Possible Value | Description
|
|
34
34
|
* ---------------|------------
|
|
35
|
-
* distributed | The module is loaded in each available worker. Each
|
|
36
|
-
* dedicated | The module is loaded in
|
|
37
|
-
* local | The module
|
|
35
|
+
* distributed | The module is loaded in each available worker. Each invocation is handled by an available worker. Use this strategy when the module is stateless and does not need to retain data between invocations.
|
|
36
|
+
* dedicated | The module is loaded in a single worker, and all invocations are handled by that worker. Use this strategy when the module needs to retain state between invocations or maintain stateful communication with the main thread.
|
|
37
|
+
* local | The module runs on the main thread instead of in a worker. Use this strategy when worker execution is unavailable or not desired. This can affect UI responsiveness.
|
|
38
38
|
*/
|
|
39
39
|
export type OpenStrategy = "distributed" | "dedicated" | "local";
|
|
40
40
|
|
|
41
41
|
export interface OpenOptions extends AbortOptions {
|
|
42
|
-
/**
|
|
42
|
+
/**
|
|
43
|
+
* An object containing methods that the worker module can call on the main thread.
|
|
44
|
+
* In a custom worker class, declare a `remoteClient` property and use
|
|
45
|
+
* `this.remoteClient.invoke("methodName", data)` to invoke a method on this object.
|
|
46
|
+
*/
|
|
43
47
|
client?: any;
|
|
44
48
|
/**
|
|
45
49
|
* Indicates whether the module is an ES module.
|
|
@@ -51,7 +55,7 @@ export interface OpenOptions extends AbortOptions {
|
|
|
51
55
|
*/
|
|
52
56
|
isESM?: boolean;
|
|
53
57
|
/**
|
|
54
|
-
* Indicates how to load the module. See
|
|
58
|
+
* Indicates how to load the module. See [OpenStrategy](https://developers.arcgis.com/javascript/latest/references/core/core/workers/#OpenStrategy) for a list of possible values.
|
|
55
59
|
*
|
|
56
60
|
* @default distributed
|
|
57
61
|
*/
|
|
@@ -61,72 +65,76 @@ export interface OpenOptions extends AbortOptions {
|
|
|
61
65
|
/**
|
|
62
66
|
* Opens a connection to workers and loads a script with the workers framework.
|
|
63
67
|
*
|
|
68
|
+
* Custom ES module workers can load SDK modules using standard ES module imports
|
|
69
|
+
* in npm-based applications or `$arcgis.import()` in CDN applications.
|
|
70
|
+
* Only modules that do not depend on the DOM can be used within a worker.
|
|
71
|
+
*
|
|
64
72
|
* @param modulePath - A fully qualified URL to a script to execute with the workers framework.
|
|
65
73
|
* @param options - Worker options. See properties below for object specifications.
|
|
66
74
|
* @returns Resolves to an instance of [Connection](https://developers.arcgis.com/javascript/latest/references/core/core/workers/Connection/).
|
|
67
75
|
* @see [Connection](https://developers.arcgis.com/javascript/latest/references/core/core/workers/Connection/)
|
|
68
76
|
* @example
|
|
69
|
-
*
|
|
70
|
-
* // to a folder called workersFolder.
|
|
71
|
-
* esriConfig.workers.loaderConfig = {
|
|
72
|
-
* paths: {
|
|
73
|
-
* myWorkers: new URL("./workersFolder", document.baseURI).href
|
|
74
|
-
* }
|
|
75
|
-
* };
|
|
77
|
+
* import { open } from "@arcgis/core/core/workers.js";
|
|
76
78
|
*
|
|
77
|
-
* //
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
* .
|
|
84
|
-
*
|
|
85
|
-
*
|
|
79
|
+
* // Load an ESM worker module and invoke its "getMaxNumber" function.
|
|
80
|
+
* const connection = await open(new URL("./workersFolder/Calculator.js", import.meta.url).href, {
|
|
81
|
+
* isESM: true
|
|
82
|
+
* });
|
|
83
|
+
* try {
|
|
84
|
+
* // Invoke the worker function and receive its result on the main thread.
|
|
85
|
+
* const result = await connection.invoke("getMaxNumber", [0, 1, 2, 3, 4]);
|
|
86
|
+
* console.log(result);
|
|
87
|
+
* } finally {
|
|
88
|
+
* connection.close();
|
|
89
|
+
* }
|
|
86
90
|
*
|
|
87
91
|
* //*********************************************************
|
|
88
|
-
* // module:
|
|
92
|
+
* // module: workersFolder/Calculator.js
|
|
89
93
|
* //*********************************************************
|
|
90
|
-
*
|
|
91
|
-
* return
|
|
92
|
-
*
|
|
93
|
-
* getMaxNumber: function (number) {
|
|
94
|
-
* return Math.max.apply(null, numbers);
|
|
95
|
-
* }
|
|
96
|
-
* };
|
|
97
|
-
* });
|
|
94
|
+
* export function getMaxNumber(numbers) {
|
|
95
|
+
* return Math.max(...numbers);
|
|
96
|
+
* }
|
|
98
97
|
* @example
|
|
99
|
-
* // Load
|
|
100
|
-
*
|
|
101
|
-
*
|
|
98
|
+
* // Load an ESM worker module that calls a function on the main thread.
|
|
99
|
+
* const connection = await open(new URL("./workerScripts/TimeOfDay.js", import.meta.url).href, {
|
|
100
|
+
* isESM: true,
|
|
102
101
|
* client: {
|
|
103
|
-
* getCurrentTime
|
|
102
|
+
* getCurrentTime() {
|
|
104
103
|
* return Date.now();
|
|
105
104
|
* }
|
|
106
105
|
* }
|
|
107
|
-
* })
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
* .
|
|
112
|
-
*
|
|
113
|
-
*
|
|
106
|
+
* });
|
|
107
|
+
*
|
|
108
|
+
* try {
|
|
109
|
+
* const result = await connection.invoke("timeOfTheDay");
|
|
110
|
+
* console.log(result);
|
|
111
|
+
* } finally {
|
|
112
|
+
* connection.close();
|
|
113
|
+
* }
|
|
114
114
|
*
|
|
115
115
|
* //*********************************************************
|
|
116
|
-
* // module: workerScripts/
|
|
116
|
+
* // module: workerScripts/TimeOfDay.js
|
|
117
117
|
* //*********************************************************
|
|
118
|
+
* export default class TimeOfTheDay {
|
|
119
|
+
* remoteClient;
|
|
120
|
+
*
|
|
121
|
+
* async timeOfTheDay() {
|
|
122
|
+
* const time = await this.remoteClient.invoke("getCurrentTime");
|
|
123
|
+
* return `The time is ${time}`;
|
|
124
|
+
* }
|
|
125
|
+
* }
|
|
126
|
+
* @example
|
|
127
|
+
* // CustomWorker.js - load an SDK module inside a custom ES module worker in a CDN application.
|
|
128
|
+
* export async function createPoint(coordinates) {
|
|
129
|
+
* const Point = await $arcgis.import("@arcgis/core/geometry/Point.js");
|
|
118
130
|
*
|
|
119
|
-
*
|
|
131
|
+
* const point = new Point({
|
|
132
|
+
* longitude: coordinates.longitude,
|
|
133
|
+
* latitude: coordinates.latitude
|
|
134
|
+
* });
|
|
120
135
|
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
* return remoteClient.invoke("getCurrentTime")
|
|
125
|
-
* .then((time) => {
|
|
126
|
-
* return "The time is " + time;
|
|
127
|
-
* });
|
|
128
|
-
* }
|
|
129
|
-
* };
|
|
130
|
-
* });
|
|
136
|
+
* // Return serializable data to the main thread.
|
|
137
|
+
* return point.toJSON();
|
|
138
|
+
* }
|
|
131
139
|
*/
|
|
132
140
|
export function open(modulePath: string, options?: OpenOptions): Promise<Connection>;
|
|
@@ -155,7 +155,7 @@ export default class MeshComponent extends MeshComponentSuperclass {
|
|
|
155
155
|
* Specifies a name of the component. The component name can be used to identify the component. Meshes created from
|
|
156
156
|
* glTF will have components with names that correspond to mesh names from the glTF.
|
|
157
157
|
*
|
|
158
|
-
* @see [
|
|
158
|
+
* @see [createFromGLTF()](https://developers.arcgis.com/javascript/latest/references/core/geometry/support/meshUtils/#createFromGLTF)
|
|
159
159
|
*/
|
|
160
160
|
accessor name: string | null | undefined;
|
|
161
161
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
const e=[3855,31,14,540,18,735,2,19,23,80,19,261,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,80,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,30,2,12,18,1,1,1,1,1,1,1,1,1,1,1,1,1,67,189,1,1,46,1,1,1,1,1,1,1,1,1,170,1,1,1,278,1,1,1,1,1,1,3,46,1,1,221,530,1,204,1,47,1,7,125,5,2,2,47,1,1,72,6,8,3,71,1,1,1,36,139,38,1,90,1,76,241,15,1,150,40,23,7,219,115,10,19,5,8,1,15,32,16,38,1,2,1,1,1,1,1,1,1,1,1,1,49,7,13,179,1,12,3,3,3,3,6,40,1,201,4,223,1,39,159,3,1,1,128,1,1,1,62,1,1,1,1,1,13,23,54,7,1,28,62,23,137,18,71,10,158,8843,34,1,1,85565,1,1,1,1,1,1,1,92,1,1,1,1,86,1,1,1,1,1,1,1,1,1,9901,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1],t=[287,1,2,4,15,107,3,143],n=[10,1,13,1,1,1,12,1,6,1,18,1,4,1,49,1,11,1,1,7,5,1,15,3,29,1,2,1,1,1,5,1,13,2,24,1,6,2,1,1,7,6,3,3,287],r=[`Meter`,`Foot`,`Foot_US`,`Foot_British_1936`],i=[1,.3048,.3048006096012192,.3048007491],a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,2,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,2,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],o=`EGM2008_Geoid.Fao_1979.N2000.New_Zealand_Vertical_Datum_2009.Dunedin_Bluff_1960.Korean_Vertical_Datum_1964.Trieste.Genoa.Sri_Lanka_Vertical_Datum.Faroe_Islands_Vertical_Reference_2009.Black_Sea.Fehmarnbelt_Vertical_Reference_2010.Nivellement_General_de_Polynesie_Francaise.IGN_1966.Moorea_SAU_1981.Raiatea_SAU_2001.Maupiti_SAU_2001.Huahine_SAU_2001.Tahaa_SAU_2001.Bora_Bora_SAU_2001.International_Great_Lakes_Datum_1955.International_Great_Lakes_Datum_1985.Croatian_Vertical_Reference_System_1971.Caspian_Sea.Baltic_Sea.Rikets_Hojdsystem_2000.KOC_Well_Datum.Rikets_Hojdsystem_1900.IGN_1988_LS.IGN_1988_MG.IGN_1992_LD.IGN_1988_SB.IGN_1988_SM.European_Vertical_Reference_Frame_2007.Ordnance_Datum_Newlyn.National_Geodetic_Vertical_Datum_1929.North_American_Vertical_Datum_1988.Yellow_Sea_1956.Normaal_Amsterdams_Peil.Oostende.Australian_Height_Datum.Australian_Height_Datum_Tasmania.Canadian_Geodetic_Vertical_Datum_of_1928.Mean_Sea_Level.Piraeus_Harbour_1986.Helsinki_1960.Rikets_Hojdsystem_1970.Nivellement_General_de_la_France_Lallemand.Nivellement_General_de_la_France_IGN69.Nivellement_General_de_la_France_IGN78.Maputo.Japanese_Standard_Levelling_Datum_1969.PDO_Height_Datum_1993.Fahud_Height_Datum.Ha_Tien_1960.Hon_Dau_1992.Landesnivellement_1902.Landeshohennetz_1995.European_Vertical_Reference_Frame_2000.Malin_Head.Belfast.Dansk_Normal_Nul.AIOC_1995.Yellow_Sea_1985.Hong_Kong_Principal_Datum.Hong_Kong_Chart_Datum.Ordnance_Datum_Newlyn_Orkney_Isles.Fair_Isle.Lerwick.Foula.Sule_Skerry.North_Rona.Stornoway.St_Kilda.Flannan_Isles.St_Marys.Douglas.Fao.Bandar_Abbas.Nivellement_General_de_Nouvelle_Caledonie.Poolbeg.Nivellement_General_Guyanais_1977.IGN_1987.IGN_1988.IGN_1989.Auckland.Bluff.Dunedin.Gisborne.Lyttelton.Moturiki.Napier.Nelson.One_Tree_Point.Tararu.Taranaki.Wellington.Chatham_Island.Stewart_Island.EGM96_Geoid.Nivellement_General_du_Luxembourg.Antalya.Norway_Normal_Null_1954.Durres.Gebrauchshohen_Adria.Slovenian_Vertical_System_2000.Cascais.Constanta.Alicante.Deutsches_Haupthoehennetz_1992.Deutsches_Haupthoehennetz_1985.SNN76.Baltic_1982.Baltic_1980.Kuwait_PWD.KOC_Construction_Datum.Nivellement_General_de_la_Corse_1948.Danger_1950.Mayotte_1950.Martinique_1955.Guadeloupe_1951.Lagos_1955.EGM84_Geoid.Dansk_Vertikal_Reference_1990_ensemble.Sea_Level.Ras_Ghumays.Lowest_Astronomic_Tide.Lower_Low_Water_Large_Tide.Indian_Spring_Low_Water.Mean_Lower_Low_Water_Spring_Tides.Mean_Low_Water_Spring_Tides.Mean_Lower_Low_Water.Mean_Low_Water.Mean_High_Water.Mean_Higher_High_Water.Mean_High_Water_Spring_Tides.Higher_High_Water_Large_Tide.Highest_Astronomic_Tide.Low_Water.High_Water.Norway_Normal_Null_2000.Grand_Cayman_Vertical_Datum_1954.Little_Cayman_Vertical_Datum_1961.Cayman_Brac_Vertical_Datum_1961.Cais_da_Pontinha-Funchal.Cais_da_Vila-Porto_Santo.Cais_das_Velas.Horta.Cais_da_Madalena.Santa_Cruz_da_Graciosa.Cais_da_Figueirinha-Angra_do_Heroismo.Santa_Cruz_das_Flores.Cais_da_Vila_do_Porto.Ponta_Delgada.Tutuila_Vertical_Datum_of_1962.Guam_Vertical_Datum_of_1963.Northern_Marianas_Vertical_Datum_of_2003.Puerto_Rico_Vertical_Datum_of_2002.Virgin_Islands_Vertical_Datum_of_2009.American_Samoa_Vertical_Datum_of_2002.Guam_Vertical_Datum_of_2004.Canadian_Geodetic_Vertical_Datum_of_2013.Japanese_Standard_Levelling_Datum_1972.Japanese_Geodetic_Datum_2000_vertical.Japanese_Geodetic_Datum_2011_vertical.Singapore_Height_Datum.Famagusta_1960.Papua_New_Guinea_2008.Kumul_34.Kiunga.Deutsches_Haupthoehennetz_1912.Latvian_Height_System_2000.Ordnance_Datum_Newlyn_(Offshore).Port_Moresby_1996.Deutsches_Haupthoehennetz_2016.New_Zealand_Vertical_Datum_2016.Port_Moresby_2008.Jamestown_1971.St_Helena_Tritan_Vertical_Datum_2011.St_Helena_Vertical_Datum_2015.Landshaedarkerfi_Islands_2004.Greenland_Vertical_Reference_2000.Greenland_Vertical_Reference_2016.Baltic_1957.Macao_Height_Datum.Helsinki_1943.Slovenian_Vertical_System_2010.Serbian_Vertical_Reference_System_2012.MOMRA_Vertical_Geodetic_Control.Wiener_Null.Taiwan_Vertical_Datum_2001.Datum_Altimetrico_de_Costa_Rica_1952.IGN_2008_LD.Canadian_Geodetic_Vertical_Datum_of_2013_CGG2013a.Sistema_de_Referencia_Vertical_Nacional_2016.European_Vertical_Reference_Frame_2000_Austria.South_Africa_Land_Levelling_Datum.Lowest_Astronomical_Tide_Netherlands.Mean_Sea_Level_Netherlands.HS2_Vertical_Reference_Frame.Kingdom_of_Saudi_Arabia_Vertical_Reference_Frame_Jeddah_2014.Nivellement_General_de_Nouvelle_Caledonie_2008.European_Vertical_Reference_Frame_2019.European_Vertical_Reference_Frame_2019_mean_tide.Mallorca.Menorca.Ibiza.Lanzarote.Fuerteventura.Gran_Canaria.Tenerife.La_Gomera.La_Palma.El_Hierro.Ceuta_2.British_Isles_height_ensemble.Australian_Vertical_Working_Surface.Indonesian_Geoid_2020.Baltic_1986.European_Vertical_Reference_Frame_2007_Poland.Estonian_Height_System_2000.Lithuanian_Height_System_2007.Bulgarian_Height_System_2005.Norwegian_Chart_Datum.Local_Tidal_Datum_at_Pago_Pago_2020.National_Vertical_Datum_1992.Catania_1965.Cagliari_1956.GNTRANS.GNTRANS2016.Mean_Sea_Level_UK_Ireland_VORF08.Chart_Datum_UK_Ireland_VORF08.Nivellement_General_de_l_Algerie_2022.Chart_Datum_Portugal.Formentera.Alboran.Melilla.Dansk_Vertikal_Reference_1990.Dansk_Vertikal_Reference_1990_(2002).Dansk_Vertikal_Reference_1990_(2013).Dansk_Vertikal_Reference_1990_(2023).Denmark_Mean_Sea_Level_(2022).Denmark_Lowest_Astronomical_Tide_(2022).Denmark_Mean_Sea_Level_(2023).Denmark_Lowest_Astronomical_Tide_(2023).Denmark_Mean_Sea_Level.Denmark_Lowest_Astronomical_Tide.Greenland_Local_Mean_Sea_Level_(2022).Canadian_Geodetic_Vertical_Datum_of_1928_(Height_Transformation_version_2_0).Saba_Vertical_Datum.Greenland_Mean_Sea_Level_(2023).Greenland_Lowest_Astronomic_Tide_(2023).Baltic_Sea_Chart_Datum_2000.Sint_Eustatius_Vertical_Datum.Bonaire_Vertical_Datum.Asse_vertical_datum_2025.Derived_California_Orthometric_Heights_of_1988_epoch_2025.London_Survey_Grid_height_datum.Svalbard_vertical_datum_2024.IGN_2023_Mayotte.Svalbard_vertical_datum_2006.Canadian_Geodetic_Vertical_Datum_of_2013_(CGG2013a)_epoch_2002.Canadian_Geodetic_Vertical_Datum_of_2013_(CGG2013a)_epoch_1997.Indonesian_Geoid_2020_version_2.Hellenic_Vertical_Datum.WGS_1984.Red_Espanola_de_Nivelacion_de_Alta_Precision.Japanese_Geodetic_Datum_2024_vertical.GRS_1980.WGS_1984_Geoid.Mean_Sea_Level_Hawaii.Qatari_Vertical_Datum.International_1924.CGCS2000.Bessel_1841.Krasovsky_1940.Everest_Adjustment_1937.Clarke_1866.PZ_1990.Unknown_height_system_(meters).Unknown_height_system_(US_survey_feet).Unknown_height_system_(Intl_feet).GSK-2011.Australian.NWL_9D.WGS_1972`.split(`.`),s=[0,1,2,3,4,5,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,24,23,38,39,40,41,42,43,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,10,37,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,26,115,116,117,118,119,120,121,62,122,123,124,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,36,36,35,36,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,80,35,64,26,43,43,43,43,180,36,181,182,183,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,265,265,268,268,269,123,25,36,221,0,1,3,2,4,270,270,99,99,271,265,268,268,268,272,273,268,268,265,274,265,268,268,268,268,268,268,268,268,265,265,268,265,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,265,268,268,268,275,272,268,268,272,268,268,268,268,268,268,265,268,268,268,268,268,268,268,268,268,276,268,268,268,268,265,268,277,268,278,268,268,268,268,268,268,268,272,268,268,268,268,268,268,268,268,268,268,265,276,268,268,274,274,268,268,268,275,265,268,268,268,268,279,280,281,268,268,265,282,278,278,265,265,265,265,265,265,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,274,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,274,268,283,283,268,265,268,268,268,268,265,272,265,265,268,268,268,268,268,268,268,275,268,268,268,268,268,268,268,268,268,265,284,285,285,268,268,268,268,268,268,268,268,268,268,268,274,268,268,268,268,268,268,268,268,268,268,268,265,272,268,272,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268,268];export{s as datumIds,o as datums,n as directions,t as types,a as unitIds,i as unitInMeters,r as units,e as wkids};
|
|
2
|
+
const e=[3855,31,14,540,18,735,2,19,23,80,19,261,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,80,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,30,2,12,18,1,1,1,1,1,1,1,1,1,1,1,1,1,67,189,1,1,46,1,1,1,1,1,1,1,1,1,170,1,1,1,278,1,1,1,1,1,1,3,46,1,1,221,530,1,204,1,47,1,7,125,5,2,2,47,1,1,72,6,8,3,71,1,1,1,36,139,38,1,90,1,76,241,15,1,150,40,23,7,219,115,10,19,5,8,1,15,32,16,38,1,2,1,1,1,1,1,1,1,1,1,1,49,7,13,179,1,12,3,3,3,3,6,40,1,201,4,223,1,39,159,3,1,1,128,1,1,1,62,1,1,1,1,1,13,23,54,7,1,28,62,23,137,18,71,10,158,160,21,56,52,4,1,3,1,58,8487,34,1,1,85565,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,65,1,1,1,1,1,85,1,1,1,1,1,1,1,1,1,9901,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1],t=[296,1,2,30,16,107,3,143],n=[10,1,13,1,1,1,12,1,6,1,18,1,4,1,49,1,11,1,1,7,5,1,15,3,29,1,2,1,1,1,5,1,13,2,24,1,6,2,1,1,7,6,3,3,11,4,308],r=[`Meter`,`Foot`,`Foot_US`,`Foot_British_1936`],i=[1,.3048,.3048006096012192,.3048007491],a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,2,2,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,2,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],o=`EGM2008_Geoid.Fao_1979.N2000.New_Zealand_Vertical_Datum_2009.Dunedin_Bluff_1960.Korean_Vertical_Datum_1964.Trieste.Genoa.Sri_Lanka_Vertical_Datum.Faroe_Islands_Vertical_Reference_2009.Black_Sea.Fehmarnbelt_Vertical_Reference_2010.Nivellement_General_de_Polynesie_Francaise.IGN_1966.Moorea_SAU_1981.Raiatea_SAU_2001.Maupiti_SAU_2001.Huahine_SAU_2001.Tahaa_SAU_2001.Bora_Bora_SAU_2001.International_Great_Lakes_Datum_1955.International_Great_Lakes_Datum_1985.Croatian_Vertical_Reference_System_1971.Caspian_Sea.Baltic_Sea.Rikets_Hojdsystem_2000.KOC_Well_Datum.Rikets_Hojdsystem_1900.IGN_1988_LS.IGN_1988_MG.IGN_1992_LD.IGN_1988_SB.IGN_1988_SM.European_Vertical_Reference_Frame_2007.Ordnance_Datum_Newlyn.National_Geodetic_Vertical_Datum_1929.North_American_Vertical_Datum_1988.Yellow_Sea_1956.Normaal_Amsterdams_Peil.Oostende.Australian_Height_Datum.Australian_Height_Datum_Tasmania.Canadian_Geodetic_Vertical_Datum_of_1928.Mean_Sea_Level.Piraeus_Harbour_1986.Helsinki_1960.Rikets_Hojdsystem_1970.Nivellement_General_de_la_France_Lallemand.Nivellement_General_de_la_France_IGN69.Nivellement_General_de_la_France_IGN78.Maputo.Japanese_Standard_Levelling_Datum_1969.PDO_Height_Datum_1993.Fahud_Height_Datum.Ha_Tien_1960.Hon_Dau_1992.Landesnivellement_1902.Landeshohennetz_1995.European_Vertical_Reference_Frame_2000.Malin_Head.Belfast.Dansk_Normal_Nul.AIOC_1995.Yellow_Sea_1985.Hong_Kong_Principal_Datum.Hong_Kong_Chart_Datum.Ordnance_Datum_Newlyn_Orkney_Isles.Fair_Isle.Lerwick.Foula.Sule_Skerry.North_Rona.Stornoway.St_Kilda.Flannan_Isles.St_Marys.Douglas.Fao.Bandar_Abbas.Nivellement_General_de_Nouvelle_Caledonie.Poolbeg.Nivellement_General_Guyanais_1977.IGN_1987.IGN_1988.IGN_1989.Auckland.Bluff.Dunedin.Gisborne.Lyttelton.Moturiki.Napier.Nelson.One_Tree_Point.Tararu.Taranaki.Wellington.Chatham_Island.Stewart_Island.EGM96_Geoid.Nivellement_General_du_Luxembourg.Antalya.Norway_Normal_Null_1954.Durres.Gebrauchshohen_Adria.Slovenian_Vertical_System_2000.Cascais.Constanta.Alicante.Deutsches_Haupthoehennetz_1992.Deutsches_Haupthoehennetz_1985.SNN76.Baltic_1982.Baltic_1980.Kuwait_PWD.KOC_Construction_Datum.Nivellement_General_de_la_Corse_1948.Danger_1950.Mayotte_1950.Martinique_1955.Guadeloupe_1951.Lagos_1955.EGM84_Geoid.Dansk_Vertikal_Reference_1990_ensemble.Sea_Level.Ras_Ghumays.Lowest_Astronomic_Tide.Lower_Low_Water_Large_Tide.Indian_Spring_Low_Water.Mean_Lower_Low_Water_Spring_Tides.Mean_Low_Water_Spring_Tides.Mean_Lower_Low_Water.Mean_Low_Water.Mean_High_Water.Mean_Higher_High_Water.Mean_High_Water_Spring_Tides.Higher_High_Water_Large_Tide.Highest_Astronomic_Tide.Low_Water.High_Water.Norway_Normal_Null_2000.Grand_Cayman_Vertical_Datum_1954.Little_Cayman_Vertical_Datum_1961.Cayman_Brac_Vertical_Datum_1961.Cais_da_Pontinha-Funchal.Cais_da_Vila-Porto_Santo.Cais_das_Velas.Horta.Cais_da_Madalena.Santa_Cruz_da_Graciosa.Cais_da_Figueirinha-Angra_do_Heroismo.Santa_Cruz_das_Flores.Cais_da_Vila_do_Porto.Ponta_Delgada.Tutuila_Vertical_Datum_of_1962.Guam_Vertical_Datum_of_1963.Northern_Marianas_Vertical_Datum_of_2003.Puerto_Rico_Vertical_Datum_of_2002.Virgin_Islands_Vertical_Datum_of_2009.American_Samoa_Vertical_Datum_of_2002.Guam_Vertical_Datum_of_2004.Canadian_Geodetic_Vertical_Datum_of_2013.Japanese_Standard_Levelling_Datum_1972.Japanese_Geodetic_Datum_2000_vertical.Japanese_Geodetic_Datum_2011_vertical.Singapore_Height_Datum.Famagusta_1960.Papua_New_Guinea_2008.Kumul_34.Kiunga.Deutsches_Haupthoehennetz_1912.Latvian_Height_System_2000.Ordnance_Datum_Newlyn_(Offshore).Port_Moresby_1996.Deutsches_Haupthoehennetz_2016.New_Zealand_Vertical_Datum_2016.Port_Moresby_2008.Jamestown_1971.St_Helena_Tritan_Vertical_Datum_2011.St_Helena_Vertical_Datum_2015.Landshaedarkerfi_Islands_2004.Greenland_Vertical_Reference_2000.Greenland_Vertical_Reference_2016.Baltic_1957.Macao_Height_Datum.Helsinki_1943.Slovenian_Vertical_System_2010.Serbian_Vertical_Reference_System_2012.MOMRA_Vertical_Geodetic_Control.Wiener_Null.Taiwan_Vertical_Datum_2001.Datum_Altimetrico_de_Costa_Rica_1952.IGN_2008_LD.Canadian_Geodetic_Vertical_Datum_of_2013_CGG2013a.Sistema_de_Referencia_Vertical_Nacional_2016.European_Vertical_Reference_Frame_2000_Austria.South_Africa_Land_Levelling_Datum.Lowest_Astronomical_Tide_Netherlands.Mean_Sea_Level_Netherlands.HS2_Vertical_Reference_Frame.Kingdom_of_Saudi_Arabia_Vertical_Reference_Frame_Jeddah_2014.Nivellement_General_de_Nouvelle_Caledonie_2008.European_Vertical_Reference_Frame_2019.European_Vertical_Reference_Frame_2019_mean_tide.Mallorca.Menorca.Ibiza.Lanzarote.Fuerteventura.Gran_Canaria.Tenerife.La_Gomera.La_Palma.El_Hierro.Ceuta_2.British_Isles_height_ensemble.Australian_Vertical_Working_Surface.Indonesian_Geoid_2020.Baltic_1986.European_Vertical_Reference_Frame_2007_Poland.Estonian_Height_System_2000.Lithuanian_Height_System_2007.Bulgarian_Height_System_2005.Norwegian_Chart_Datum.Local_Tidal_Datum_at_Pago_Pago_2020.National_Vertical_Datum_1992.Catania_1965.Cagliari_1956.GNTRANS.GNTRANS2016.Mean_Sea_Level_UK_Ireland_VORF08.Chart_Datum_UK_Ireland_VORF08.Nivellement_General_de_l_Algerie_2022.Chart_Datum_Portugal.Formentera.Alboran.Melilla.Dansk_Vertikal_Reference_1990.Dansk_Vertikal_Reference_1990_(2002).Dansk_Vertikal_Reference_1990_(2013).Dansk_Vertikal_Reference_1990_(2023).Denmark_Mean_Sea_Level_(2022).Denmark_Lowest_Astronomical_Tide_(2022).Denmark_Mean_Sea_Level_(2023).Denmark_Lowest_Astronomical_Tide_(2023).Denmark_Mean_Sea_Level.Denmark_Lowest_Astronomical_Tide.Greenland_Local_Mean_Sea_Level_(2022).Canadian_Geodetic_Vertical_Datum_of_1928_(Height_Transformation_version_2_0).Saba_Vertical_Datum.Greenland_Mean_Sea_Level_(2023).Greenland_Lowest_Astronomic_Tide_(2023).Baltic_Sea_Chart_Datum_2000.Sint_Eustatius_Vertical_Datum.Bonaire_Vertical_Datum.Asse_vertical_datum_2025.Derived_California_Orthometric_Heights_of_1988_epoch_2025.London_Survey_Grid_height_datum.Svalbard_vertical_datum_2024.IGN_2023_Mayotte.Japanese_Geodetic_Datum_2024_vertical.Bhutan_Vertical_Datum_2022.Norway_Normal_Null_2000:2025.Nivellement_General_de_Futuna_et_d'Alofi_2022.Greenland_Lowest_Astronomic_Tide_(2025).Greenland_Mean_Sea_Level_(2025).Greenland_Lowest_Astronomic_Tide.Greenland_Mean_Sea_Level.Colombian_Geodetic_Vertical_Datum_2023.Svalbard_vertical_datum_2006.Canadian_Geodetic_Vertical_Datum_of_2013_(CGG2013a)_epoch_2002.Canadian_Geodetic_Vertical_Datum_of_2013_(CGG2013a)_epoch_1997.Indonesian_Geoid_2020_version_2.Hellenic_Vertical_Datum.WGS_1984.Red_Espanola_de_Nivelacion_de_Alta_Precision.GRS_1980.WGS_1984_Geoid.Baltic_1950.Mean_Sea_Level_Hawaii.Qatari_Vertical_Datum.International_1924.CGCS2000.Bessel_1841.Krasovsky_1940.Everest_Adjustment_1937.Clarke_1866.PZ_1990.Unknown_height_system_(meters).Unknown_height_system_(US_survey_feet).Unknown_height_system_(Intl_feet).GSK-2011.Australian.NWL_9D.WGS_1972`.split(`.`),s=[0,1,2,3,4,5,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,24,23,38,39,40,41,42,43,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,10,37,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,26,115,116,117,118,119,120,121,62,122,123,124,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,36,36,35,36,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,80,35,64,26,43,43,43,43,180,36,181,182,183,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,260,274,274,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,277,123,25,36,221,278,0,1,3,2,4,279,279,99,99,280,274,276,276,276,281,282,276,276,274,283,274,276,276,276,276,276,276,276,276,274,274,276,274,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,274,276,276,276,284,281,276,276,281,276,276,276,276,276,276,274,276,276,276,276,276,276,276,276,276,285,276,276,276,276,274,276,286,276,287,276,276,276,276,276,276,276,281,276,276,276,276,276,276,276,276,276,276,274,285,276,276,283,283,276,276,276,284,274,276,276,276,276,288,289,290,276,276,274,291,287,287,274,274,274,274,274,274,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,283,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,283,276,292,292,276,274,276,276,276,276,274,281,274,274,276,276,276,276,276,276,276,284,276,276,276,276,276,276,276,276,276,274,293,294,294,276,276,276,276,276,276,276,276,276,276,276,283,276,276,276,276,276,276,276,276,276,276,276,274,281,276,281,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276,276];export{s as datumIds,o as datums,n as directions,t as types,a as unitIds,i as unitInMeters,r as units,e as wkids};
|
package/kernel.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import"./core/has.js";import{addQueryParameter as e}from"./core/urlUtils.js";Symbol.dispose??=Symbol(`Symbol.dispose`),Symbol.asyncDispose??=Symbol(`Symbol.asyncDispose`);const t=`5.2`;let n=`5.2`;n=`6.0.0-next.
|
|
2
|
+
import"./core/has.js";import{addQueryParameter as e}from"./core/urlUtils.js";Symbol.dispose??=Symbol(`Symbol.dispose`),Symbol.asyncDispose??=Symbol(`Symbol.asyncDispose`);const t=`5.2`;let n=`5.2`;n=`6.0.0-next.22`;let r;function i(e){r=e}function a(t){let n=r?.findCredential(t);return n?.token?e(t,`token`,n.token):t}globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}});export{a as addTokenParameter,n as fullVersion,r as id,i as setId,t as version};
|
package/layers/FeatureLayer.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import type Subtype from "./support/Subtype.js";
|
|
|
13
13
|
import type SymbolLayerDrawing from "./support/SymbolLayerDrawing.js";
|
|
14
14
|
import type PortalItem from "../portal/PortalItem.js";
|
|
15
15
|
import type DynamicDataLayer from "../rest/layerSources/DynamicDataLayer.js";
|
|
16
|
+
import type DynamicWorkspaceLayer from "../rest/layerSources/DynamicWorkspaceLayer.js";
|
|
16
17
|
import type AttachmentInfo from "../rest/query/support/AttachmentInfo.js";
|
|
17
18
|
import type AttributeBinsFeatureSet from "../rest/support/AttributeBinsFeatureSet.js";
|
|
18
19
|
import type FeatureSet from "../rest/support/FeatureSet.js";
|
|
@@ -23,13 +24,13 @@ import type { ReadonlyArrayOrCollection } from "../core/Collection.js";
|
|
|
23
24
|
import type { MultiOriginJSONSupportMixin } from "../core/MultiOriginJSONSupport.js";
|
|
24
25
|
import type { AddAttachmentOptions, AttachmentEditOptions, EditOptions, Edits, EditsResult, FeatureEditResult } from "../editing/types.js";
|
|
25
26
|
import type { LayerEvents, LayerProperties } from "./Layer.js";
|
|
26
|
-
import type { LayerSaveAsOptions, LayerSaveOptions
|
|
27
|
+
import type { FeatureTitleOptions, LayerSaveAsOptions, LayerSaveOptions } from "./types.js";
|
|
27
28
|
import type { APIKeyMixin, APIKeyMixinProperties } from "./mixins/APIKeyMixin.js";
|
|
28
29
|
import type { BlendLayer, BlendLayerProperties } from "./mixins/BlendLayer.js";
|
|
29
30
|
import type { CustomParametersMixin, CustomParametersMixinProperties } from "./mixins/CustomParametersMixin.js";
|
|
30
31
|
import type { DataSeriesLayer, DataSeriesLayerProperties } from "./mixins/DataSeriesLayer.js";
|
|
31
32
|
import type { DisplayFilteredLayer, DisplayFilteredLayerProperties } from "./mixins/DisplayFilteredLayer.js";
|
|
32
|
-
import type {
|
|
33
|
+
import type { EditBusLayerEvents, EditBusLayer } from "./mixins/EditBusLayer.js";
|
|
33
34
|
import type { FeatureEffectLayer, FeatureEffectLayerProperties } from "./mixins/FeatureEffectLayer.js";
|
|
34
35
|
import type { FeatureLayerBase, FeatureLayerBaseProperties } from "./mixins/FeatureLayerBase.js";
|
|
35
36
|
import type { FeatureReductionLayer, FeatureReductionLayerProperties } from "./mixins/FeatureReductionLayer.js";
|
|
@@ -53,6 +54,7 @@ import type { TopFeaturesQueryProperties } from "../rest/support/TopFeaturesQuer
|
|
|
53
54
|
import type { CreatePopupTemplateOptions } from "../support/popupUtils.js";
|
|
54
55
|
import type { ObjectId } from "../views/types.js";
|
|
55
56
|
import type { AttributeTableTemplateProperties } from "../tables/AttributeTableTemplate.js";
|
|
57
|
+
import type { DynamicWorkspaceLayerProperties } from "../rest/layerSources/DynamicWorkspaceLayer.js";
|
|
56
58
|
import type { DynamicDataLayerProperties } from "../rest/layerSources/DynamicDataLayer.js";
|
|
57
59
|
import type { FieldConfigurationProperties } from "./support/FieldConfiguration.js";
|
|
58
60
|
import type { FieldProperties } from "./support/Field.js";
|
|
@@ -83,13 +85,9 @@ export interface FeatureLayerProperties extends LayerProperties, APIKeyMixinProp
|
|
|
83
85
|
*/
|
|
84
86
|
attributeTableTemplate?: AttributeTableTemplateProperties | null;
|
|
85
87
|
/**
|
|
86
|
-
* An object that
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
* for creating dynamic layers from map service layers for on the fly
|
|
90
|
-
* rendering, labeling, and filtering (definition expressions). To create
|
|
91
|
-
* dynamic layers from other sources in registered workspaces such as tables and table joins,
|
|
92
|
-
* see [DynamicDataLayer](https://developers.arcgis.com/javascript/latest/references/core/rest/layerSources/DynamicDataLayer/).
|
|
88
|
+
* An object that defines the data source for a dynamic layer in a map service. Use
|
|
89
|
+
* [DynamicDataLayer](https://developers.arcgis.com/javascript/latest/references/core/rest/layerSources/DynamicDataLayer/) for data such as tables and table joins in a registered workspace, or
|
|
90
|
+
* [DynamicWorkspaceLayer](https://developers.arcgis.com/javascript/latest/references/core/rest/layerSources/DynamicWorkspaceLayer/) for a pre-authored ArcGIS Pro layer file (`.lyrx`) in a registered workspace.
|
|
93
91
|
*
|
|
94
92
|
* If you already have a [Sublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/support/Sublayer/) instance, you
|
|
95
93
|
* can call the [Sublayer.createFeatureLayer()](https://developers.arcgis.com/javascript/latest/references/core/layers/support/Sublayer/#createFeatureLayer)
|
|
@@ -150,8 +148,21 @@ export interface FeatureLayerProperties extends LayerProperties, APIKeyMixinProp
|
|
|
150
148
|
* }
|
|
151
149
|
* }
|
|
152
150
|
* });
|
|
151
|
+
* @example
|
|
152
|
+
* Use a pre-authored layer file in a registered workspace as the dynamic data source.
|
|
153
|
+
*
|
|
154
|
+
* ```js
|
|
155
|
+
* const layer = new FeatureLayer({
|
|
156
|
+
* url: "<your-map-service-url>",
|
|
157
|
+
* dynamicDataSource: {
|
|
158
|
+
* type: "workspace-layer",
|
|
159
|
+
* workspaceId: "lyrx_folder",
|
|
160
|
+
* layerId: "WorldCities.lyrx"
|
|
161
|
+
* }
|
|
162
|
+
* });
|
|
163
|
+
* ```
|
|
153
164
|
*/
|
|
154
|
-
dynamicDataSource?: DynamicDataLayerProperties | null;
|
|
165
|
+
dynamicDataSource?: (DynamicDataLayerProperties & { type: "data-layer" }) | (DynamicWorkspaceLayerProperties & { type: "workspace-layer" }) | null;
|
|
155
166
|
/**
|
|
156
167
|
* An array of [FieldConfiguration](https://developers.arcgis.com/javascript/latest/references/core/layers/support/FieldConfiguration/) objects that control how fields are displayed in popups and other UI elements. Each object specifies options for an individual field, such as its display name, via `alias`, and formatting rules, via `fieldFormat`. Assign this property before the layer loads to ensure the configurations take effect. For more information, see the [FieldConfiguration](https://developers.arcgis.com/javascript/latest/references/core/layers/support/FieldConfiguration/) documentation.
|
|
157
168
|
* If no field configurations are provided, they are automatically created when a [popupTemplate](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#popupTemplate) is assigned to the layer. If no [popupTemplate](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#popupTemplate) is set, you can manually define field configurations to customize how fields are shown.
|
|
@@ -841,13 +852,9 @@ export abstract class __FeatureLayerSansType extends FeatureLayerSuperclass {
|
|
|
841
852
|
*/
|
|
842
853
|
accessor charts: object[] | null | undefined;
|
|
843
854
|
/**
|
|
844
|
-
* An object that
|
|
845
|
-
*
|
|
846
|
-
*
|
|
847
|
-
* for creating dynamic layers from map service layers for on the fly
|
|
848
|
-
* rendering, labeling, and filtering (definition expressions). To create
|
|
849
|
-
* dynamic layers from other sources in registered workspaces such as tables and table joins,
|
|
850
|
-
* see [DynamicDataLayer](https://developers.arcgis.com/javascript/latest/references/core/rest/layerSources/DynamicDataLayer/).
|
|
855
|
+
* An object that defines the data source for a dynamic layer in a map service. Use
|
|
856
|
+
* [DynamicDataLayer](https://developers.arcgis.com/javascript/latest/references/core/rest/layerSources/DynamicDataLayer/) for data such as tables and table joins in a registered workspace, or
|
|
857
|
+
* [DynamicWorkspaceLayer](https://developers.arcgis.com/javascript/latest/references/core/rest/layerSources/DynamicWorkspaceLayer/) for a pre-authored ArcGIS Pro layer file (`.lyrx`) in a registered workspace.
|
|
851
858
|
*
|
|
852
859
|
* If you already have a [Sublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/support/Sublayer/) instance, you
|
|
853
860
|
* can call the [Sublayer.createFeatureLayer()](https://developers.arcgis.com/javascript/latest/references/core/layers/support/Sublayer/#createFeatureLayer)
|
|
@@ -908,9 +915,22 @@ export abstract class __FeatureLayerSansType extends FeatureLayerSuperclass {
|
|
|
908
915
|
* }
|
|
909
916
|
* }
|
|
910
917
|
* });
|
|
918
|
+
* @example
|
|
919
|
+
* Use a pre-authored layer file in a registered workspace as the dynamic data source.
|
|
920
|
+
*
|
|
921
|
+
* ```js
|
|
922
|
+
* const layer = new FeatureLayer({
|
|
923
|
+
* url: "<your-map-service-url>",
|
|
924
|
+
* dynamicDataSource: {
|
|
925
|
+
* type: "workspace-layer",
|
|
926
|
+
* workspaceId: "lyrx_folder",
|
|
927
|
+
* layerId: "WorldCities.lyrx"
|
|
928
|
+
* }
|
|
929
|
+
* });
|
|
930
|
+
* ```
|
|
911
931
|
*/
|
|
912
|
-
get dynamicDataSource(): DynamicDataLayer |
|
|
913
|
-
set dynamicDataSource(value: DynamicDataLayerProperties |
|
|
932
|
+
get dynamicDataSource(): DynamicDataLayer | DynamicWorkspaceLayer | null;
|
|
933
|
+
set dynamicDataSource(value: (DynamicDataLayerProperties & { type: "data-layer" }) | (DynamicWorkspaceLayerProperties & { type: "workspace-layer" }) | null);
|
|
914
934
|
/**
|
|
915
935
|
* Determines if the layer is editable.
|
|
916
936
|
*
|