@arcgis/core 5.2.0-next.33 → 5.2.0-next.34
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{4e803d12486c8de4c901.js → 0087ad36f7d38fc7fe11.js} +18 -18
- package/assets/esri/core/workers/chunks/{39c994536ce6c1e5c956.js → 03350a56f840cffe5459.js} +1 -1
- package/assets/esri/core/workers/chunks/{2628136bf9f47d238a24.js → 050aba7089318e1c7d53.js} +1 -1
- package/assets/esri/core/workers/chunks/{dd5dddf7e422216d3806.js → 0a2f08298a3c932614f2.js} +1 -1
- package/assets/esri/core/workers/chunks/{a844c4e031e77db11478.js → 0df978697328b6453c94.js} +1 -1
- package/assets/esri/core/workers/chunks/0f8fcbd0650b6a924f75.js +1 -0
- package/assets/esri/core/workers/chunks/{83ae56c7fa8d84865605.js → 0f976bfb7db98c2c0e05.js} +1 -1
- package/assets/esri/core/workers/chunks/10510f76f8538c2dfb84.js +1 -0
- package/assets/esri/core/workers/chunks/{3f63b14b53b5ca716e3a.js → 18c4c437ded8bfbd3305.js} +1 -1
- package/assets/esri/core/workers/chunks/{b60f24a6c777301803f4.js → 1958facb000b6c16bfe4.js} +1 -1
- package/assets/esri/core/workers/chunks/{1664434dc7a67c8ce453.js → 1ad5fcae6d6a9801cf58.js} +1 -1
- package/assets/esri/core/workers/chunks/{390fda094fa8695d98cf.js → 22c447fcc9a28afeb6e3.js} +1 -1
- package/assets/esri/core/workers/chunks/{7656900713e55036c3c1.js → 29542a3d7f3fa8d42380.js} +1 -1
- package/assets/esri/core/workers/chunks/{1e386475937e02b3f523.js → 2b669473aa2c7cfb63c7.js} +1 -1
- package/assets/esri/core/workers/chunks/{c8091e8fd7ca43a4490a.js → 2bb3494659609594c4ca.js} +1 -1
- package/assets/esri/core/workers/chunks/2c00f89030c7a4201033.js +2 -0
- package/assets/esri/core/workers/chunks/{b75a4753cea6544da8bb.js → 2c61bb25578f73ba49bc.js} +1 -1
- package/assets/esri/core/workers/chunks/2d92f0042facb55edcff.js +1 -0
- package/assets/esri/core/workers/chunks/2da797ae5af9d2ede42d.js +1 -0
- package/assets/esri/core/workers/chunks/{34eb22ee13df24271532.js → 2e495a28494c2351837b.js} +1 -1
- package/assets/esri/core/workers/chunks/{a0b78cbeb0e53107d819.js → 367a3031abbeff0c0090.js} +1 -1
- package/assets/esri/core/workers/chunks/{aba7a053015a9738d8a0.js → 368db1420b8520beae05.js} +1 -1
- package/assets/esri/core/workers/chunks/{7832d94f35b79e27ee51.js → 37dc6a8495f1f44e2d45.js} +1 -1
- package/assets/esri/core/workers/chunks/{92458803531fdfe1557a.js → 38a6a7c56c592f336a12.js} +1 -1
- package/assets/esri/core/workers/chunks/{c63b315c6b76b4860fc5.js → 39ff5b2a05a90e1cb214.js} +1 -1
- package/assets/esri/core/workers/chunks/{0a52373c4ba652e0ee0f.js → 3b914ca36e7e2b00cfe6.js} +1 -1
- package/assets/esri/core/workers/chunks/{f6afc597eaf2afa9a4a0.js → 3dd8145ef89f32920177.js} +1 -1
- package/assets/esri/core/workers/chunks/{b289c46ce2dc04d32e81.js → 3e8fa2a7a36881234479.js} +1 -1
- package/assets/esri/core/workers/chunks/{4ecc345c3732f7fc130f.js → 42b1c526c4c9636a169d.js} +1 -1
- package/assets/esri/core/workers/chunks/{9508fa53da5f92a0ab70.js → 4316b78fc36bfd893a90.js} +1 -1
- package/assets/esri/core/workers/chunks/{5bf01e0eff8a78b65e9e.js → 4656a4bf430d7eed1465.js} +1 -1
- package/assets/esri/core/workers/chunks/{43ef6dee2e1d9ed7885e.js → 472ec242cd3070e6acfe.js} +1 -1
- package/assets/esri/core/workers/chunks/{1bbf5f5da5842b93f638.js → 4f08b69f4a33a114c5f7.js} +1 -1
- package/assets/esri/core/workers/chunks/{c60b4f2dd5fccdf362a7.js → 514ab968c0d75062e6ab.js} +1 -1
- package/assets/esri/core/workers/chunks/{ba1c4a8794ac55942e35.js → 51d7145f748b4865de7f.js} +1 -1
- package/assets/esri/core/workers/chunks/{2f40193d1b2e534c5226.js → 570a4725b2a4a19c5148.js} +1 -1
- package/assets/esri/core/workers/chunks/{1305690054214a9cf48d.js → 586ca90e46f5cbdfeece.js} +1 -1
- package/assets/esri/core/workers/chunks/595401947e74a0a67144.js +1 -0
- package/assets/esri/core/workers/chunks/{70cb825bb37f1977d2ab.js → 59c22bab85f9cdbb9948.js} +1 -1
- package/assets/esri/core/workers/chunks/{b624796ff4a9d4c406bf.js → 61efc7f5fab1c2b1f764.js} +1 -1
- package/assets/esri/core/workers/chunks/{c593539c2cce7a2b9d44.js → 6596b12bb286a0b45a68.js} +1 -1
- package/assets/esri/core/workers/chunks/{bb1fad01d9f070e7d795.js → 661f50cb97604453f942.js} +1 -1
- package/assets/esri/core/workers/chunks/{51a53011478e0cf96e0b.js → 6c02493a1c1deff49c7e.js} +1 -1
- package/assets/esri/core/workers/chunks/{71f09e34d56c9fe5c307.js → 6d72a1bdc2664df62c4c.js} +1 -1
- package/assets/esri/core/workers/chunks/{4ea325c829d3b82854b1.js → 7085b4c655a19694da04.js} +1 -1
- package/assets/esri/core/workers/chunks/{9f3d37e5f42bf1529673.js → 71b672259bac2befd9c7.js} +1 -1
- package/assets/esri/core/workers/chunks/{a536904fe6f3b16fdbdc.js → 757982a73174aa7ab0d1.js} +1 -1
- package/assets/esri/core/workers/chunks/{d0321dd4b5b2d863eecd.js → 777b16b76db406c99c69.js} +1 -1
- package/assets/esri/core/workers/chunks/7a59d39010ed33b8fabb.js +1 -0
- package/assets/esri/core/workers/chunks/{32b5d2537feefe6e94a3.js → 7d65a8ec5e1f871b9321.js} +1 -1
- package/assets/esri/core/workers/chunks/{fe42fa2144691b9186fd.js → 828b64624c76156a6416.js} +1 -1
- package/assets/esri/core/workers/chunks/857532de88f21e8c3466.js +1 -0
- package/assets/esri/core/workers/chunks/85a280ee915010a8da3c.js +1 -0
- package/assets/esri/core/workers/chunks/{3d1e5bfd88771d4a0bf6.js → 866950e9ab96aebc6b32.js} +1 -1
- package/assets/esri/core/workers/chunks/{8c62e2dabd1f1e13d244.js → 86731e276b31453bc235.js} +1 -1
- package/assets/esri/core/workers/chunks/{977e6f589bd266d6067d.js → 87c7092282214f5b78b8.js} +4 -4
- package/assets/esri/core/workers/chunks/{25932fa010f9a32475c1.js → 88ec63501fa2f6fdadca.js} +1 -1
- package/assets/esri/core/workers/chunks/{af3b060fdfa3b6174340.js → 8aa5bbf9a9b09815725a.js} +1 -1
- package/assets/esri/core/workers/chunks/{2353fbc1ff4481dcfb1f.js → 8b68a69ab8fb1679e7b2.js} +1 -1
- package/assets/esri/core/workers/chunks/{35b3ff25f5fe24fe15e2.js → 96860b6035e0b06672dd.js} +1 -1
- package/assets/esri/core/workers/chunks/{e2f33945d838183a2192.js → 98685bd149dee1d6dc99.js} +1 -1
- package/assets/esri/core/workers/chunks/{122892f365f5327d290c.js → 9de9cec5c644bc452294.js} +1 -1
- package/assets/esri/core/workers/chunks/a0f7e37d385fc68b138d.js +1 -0
- package/assets/esri/core/workers/chunks/{940ebb13618d38c6b459.js → a2a688dd2ed4565e01ff.js} +1 -1
- package/assets/esri/core/workers/chunks/{47f21b65065558d583ca.js → a2e754df3215e8b00a8f.js} +1 -1
- package/assets/esri/core/workers/chunks/{f59b76fde2cbd17f64b3.js → a3ae7c41832c7a8b0570.js} +1 -1
- package/assets/esri/core/workers/chunks/{6dc60afb0c39bbb001a3.js → a3e86830460e52706a4d.js} +1 -1
- package/assets/esri/core/workers/chunks/{c030a974a63155f450e9.js → a58b8903ae17acf117d6.js} +1 -1
- package/assets/esri/core/workers/chunks/{c4a2ec2e5897300163ac.js → ab3d1c00ef514b61ce0b.js} +1 -1
- package/assets/esri/core/workers/chunks/{b324bdb9c74fc3f956db.js → add79af151e3eb560599.js} +1 -1
- package/assets/esri/core/workers/chunks/{3b3f91a61e3f29af1fb2.js → ae5363956b4467208e04.js} +1 -1
- package/assets/esri/core/workers/chunks/{38b69fba9ae4ccbae6b7.js → afaf6874a645854c3357.js} +1 -1
- package/assets/esri/core/workers/chunks/{36913f0f944a9eb82cd3.js → b24b7411a73d1da87c30.js} +1 -1
- package/assets/esri/core/workers/chunks/b7d7bfcb089a3f1a38b6.js +1 -0
- package/assets/esri/core/workers/chunks/{a3393780655152102c45.js → b97b83159fec34f383af.js} +1 -1
- package/assets/esri/core/workers/chunks/{8ade399db21938822a7c.js → bec660ee2e7828f965e2.js} +1 -1
- package/assets/esri/core/workers/chunks/{6b56971783bf4c31a563.js → c19fe4f31e4ef84bbcf6.js} +1 -1
- package/assets/esri/core/workers/chunks/{5cccb8b06014ccef30f8.js → c228b058dd91bf0e1102.js} +1 -1
- package/assets/esri/core/workers/chunks/c2a02c33462bcdabd39d.js +1 -0
- package/assets/esri/core/workers/chunks/{cb30e8a66d6dcfebd439.js → cda2bae39135e5519d8c.js} +1 -1
- package/assets/esri/core/workers/chunks/{de83c177f8a1234a5b2e.js → cffef41791f0cfa6c26c.js} +1 -1
- package/assets/esri/core/workers/chunks/{70c94bcfa20453134037.js → d1928a8c86a8966e5582.js} +1 -1
- package/assets/esri/core/workers/chunks/{58e0e50b6c3abaa4798f.js → d26b1a9f47b4b2744c89.js} +1 -1
- package/assets/esri/core/workers/chunks/{2baee42e1797a709fe4b.js → d4a96f0402172787823a.js} +1 -1
- package/assets/esri/core/workers/chunks/d7e17df1c3675bf3633e.js +1 -0
- package/assets/esri/core/workers/chunks/dfae4440afe0ca7c5b25.js +1 -0
- package/assets/esri/core/workers/chunks/{bd260798b8de09a1eeb2.js → e3a4695c31d3f9d55213.js} +1 -1
- package/assets/esri/core/workers/chunks/{197b9f8483fad2258650.js → e6263e1983e703befe48.js} +1 -1
- package/assets/esri/core/workers/chunks/{6991ba1b204668e7d4da.js → e67a9f9298d63026e7f6.js} +1 -1
- package/assets/esri/core/workers/chunks/{6f240fe78b299e6c4fcc.js → eeee7421f64a52074ff4.js} +1 -1
- package/assets/esri/core/workers/chunks/{1e109a521ca8772fdf04.js → eef7e0bee19c4258ba55.js} +1 -1
- package/assets/esri/core/workers/chunks/{49a45083a9a155614c1c.js → ef32e454012f3b0e3f77.js} +1 -1
- package/assets/esri/core/workers/chunks/{83ce38342796bd6d73ce.js → f137e544076482e348ad.js} +1 -1
- package/assets/esri/core/workers/chunks/{e181d0f5562878b3dc01.js → f72f38e7609756a7f8ea.js} +1 -1
- package/assets/esri/core/workers/chunks/{ef5d11581a98fb333ad2.js → f83e3ad67b60744afd6d.js} +1 -1
- package/assets/esri/core/workers/chunks/{456b77b8f13933a75b68.js → fe8032905992e6574714.js} +3 -3
- package/assets/esri/core/workers/chunks/{2f02880a7f081eb210cd.js → fec9ce6ad634c904ffdf.js} +1 -1
- package/assets/esri/layers/raster/formats/lerc-wasm.wasm +0 -0
- package/assets/esri/widgets/FeatureTable/t9n/FeatureTable_lt.json +1 -1
- package/chunks/GaussianSplatComposition.glsl.js +4 -4
- package/chunks/OITAddEmission.glsl.js +6 -0
- package/chunks/OITFilterOpaque.glsl.js +4 -0
- package/chunks/lerc-wasm.js +1 -1
- package/config.js +1 -1
- package/core/workers/workerFactory.js +1 -1
- package/form/elements/inputs/attachments/AttachmentInput.js +1 -1
- package/geometry/support/frustum.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/kernel.js +1 -1
- package/layers/AnnotationFeatureLayer.d.ts +110 -67
- package/layers/CSVLayer.d.ts +144 -175
- package/layers/CatalogLayer.d.ts +129 -132
- package/layers/DimensionFeatureLayer.d.ts +106 -63
- package/layers/FeatureLayer.d.ts +77 -150
- package/layers/GeoJSONLayer.d.ts +111 -168
- package/layers/OrientedImageryLayer.d.ts +125 -79
- package/layers/ParquetLayer.d.ts +116 -75
- package/layers/SubtypeGroupLayer.d.ts +86 -111
- package/layers/WFSLayer.d.ts +157 -127
- package/layers/catalog/CatalogFootprintLayer.d.ts +142 -129
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/graphics/sources/support/QueryTask.js +1 -1
- package/layers/mixins/EditBusLayer.js +1 -1
- package/layers/pointCloudFilters/PointCloudBitfieldFilter.d.ts +1 -1
- package/layers/video/VideoController.js +1 -1
- package/package.json +2 -2
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/definitions.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/input/MapViewInputManager.js +1 -1
- package/views/2d/layers/support/annodime/DimensionInfo.js +1 -1
- package/views/2d/layers/support/annodime/virtualFields.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
- package/views/3d/input/SceneInputManager.js +1 -1
- package/views/3d/interactive/manipulators/RotateManipulator.js +1 -1
- package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/emissionFilter.glsl.js +2 -0
- package/views/3d/webgl-engine/effects/transparency/OITAddEmission.glsl.js +2 -0
- package/views/3d/webgl-engine/effects/transparency/OITAddEmissionTechnique.js +2 -0
- package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
- package/views/3d/webgl-engine/effects/transparency/OITFilterOpaque.glsl.js +2 -0
- package/views/3d/webgl-engine/effects/transparency/OITFilterOpaqueTechnique.js +2 -0
- package/views/3d/webgl-engine/lib/Intersector.js +1 -1
- package/views/3d/webgl-engine/lib/Octree.js +1 -1
- package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
- package/views/3d/webgl-engine/lib/intersectorUtils.js +1 -1
- package/views/3d/webgl-engine/lib/screenPolygonOverlapUtils.js +1 -1
- package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
- package/views/3d/webgl-engine/lib/verticalOffsetUtils.js +1 -1
- package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/TriangleMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/intersectWithPolygonOffset.js +1 -1
- package/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/CheckerBoardTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatComposition.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +3 -3
- package/views/input/BrowserEventSource.js +1 -1
- package/views/input/handlers/PreventTouchSelection.js +2 -0
- package/views/layers/FeatureLikeLayerView.d.ts +9 -64
- package/views/layers/GraphicsLayerView.d.ts +1 -1
- package/views/layers/types.d.ts +8 -1
- package/widgets/BatchAttributeForm/VisibleElements.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
- package/widgets/Editor/VisibleElements.d.ts +14 -1
- package/widgets/FeatureForm.js +1 -1
- package/assets/esri/core/workers/chunks/209460f8aae3f9f8c9b8.js +0 -1
- package/assets/esri/core/workers/chunks/4be31fcc5482a2526d2b.js +0 -1
- package/assets/esri/core/workers/chunks/58acc18b92533166135d.js +0 -1
- package/assets/esri/core/workers/chunks/6162f6735ea4622e54d8.js +0 -1
- package/assets/esri/core/workers/chunks/718d2d430c1a5a940b83.js +0 -1
- package/assets/esri/core/workers/chunks/a6379a8df8c08b729b9c.js +0 -1
- package/assets/esri/core/workers/chunks/b0253fe7b3529bc22270.js +0 -1
- package/assets/esri/core/workers/chunks/bd0829eb79efff5b7223.js +0 -1
- package/assets/esri/core/workers/chunks/c193b4a175a544c4fcd6.js +0 -1
- package/assets/esri/core/workers/chunks/d28169816c768d55aa09.js +0 -1
- package/assets/esri/core/workers/chunks/d7c0ab622caf495dbcef.js +0 -1
- package/assets/esri/core/workers/chunks/f10a339b16d84b650012.js +0 -2
- package/assets/esri/core/workers/chunks/f69d3ff8a69c1985bca3.js +0 -1
- package/assets/esri/core/workers/chunks/f847a4846c427f671455.js +0 -1
- package/chunks/OITBlendEmission.glsl.js +0 -6
- package/chunks/OITDimOpaque.glsl.js +0 -4
- package/views/2d/layers/support/annodime/fields.js +0 -2
- package/views/3d/webgl-engine/core/shaderLibrary/util/EmissionDimming.glsl.js +0 -2
- package/views/3d/webgl-engine/effects/transparency/OITBlendEmission.glsl.js +0 -2
- package/views/3d/webgl-engine/effects/transparency/OITBlendEmissionTechnique.js +0 -2
- package/views/3d/webgl-engine/effects/transparency/OITDimOpaque.glsl.js +0 -2
- package/views/3d/webgl-engine/effects/transparency/OITDimOpaqueTechnique.js +0 -2
- /package/assets/esri/core/workers/chunks/{f10a339b16d84b650012.js.LICENSE.txt → 2c00f89030c7a4201033.js.LICENSE.txt} +0 -0
|
@@ -1100,107 +1100,101 @@ export default class OrientedImageryLayer extends __FeatureLayerSansType {
|
|
|
1100
1100
|
*/
|
|
1101
1101
|
getFieldConfiguration(fieldName: string): FieldConfiguration | null | undefined;
|
|
1102
1102
|
/**
|
|
1103
|
-
* Executes a [Query](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/) against the feature service and
|
|
1103
|
+
* Executes a [Query](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/) against the feature service or layer data and
|
|
1104
1104
|
* returns the number of features that satisfy the query. If no parameters are specified,
|
|
1105
1105
|
* the total number of features satisfying the layer's configuration/filters is returned.
|
|
1106
1106
|
*
|
|
1107
|
-
*
|
|
1108
|
-
*
|
|
1109
|
-
*
|
|
1110
|
-
*
|
|
1107
|
+
*
|
|
1108
|
+
* > [!WARNING]
|
|
1109
|
+
* > - To query the count of features available in the view on the client-side rather than making a server-side query, use
|
|
1110
|
+
* > [OrientedImageryLayerView.queryFeatureCount()](https://developers.arcgis.com/javascript/latest/references/core/views/layers/OrientedImageryLayerView/#queryFeatureCount).
|
|
1111
|
+
*
|
|
1112
|
+
*
|
|
1113
|
+
* @param query - Specifies the attributes and spatial filter of the query. If no parameters are specified, the total number of features satisfying the layer's configuration/filters is returned.
|
|
1114
|
+
* @param options - Additional request options. See [RequestOptions](https://developers.arcgis.com/javascript/latest/references/core/request/types/#RequestOptions).
|
|
1111
1115
|
* @returns When resolved, returns the number of features that satisfy the query.
|
|
1112
1116
|
* @since 4.30
|
|
1117
|
+
* @see [Sample - Query features from a FeatureLayer](https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query/)
|
|
1113
1118
|
* @example
|
|
1119
|
+
* ```js
|
|
1114
1120
|
* // Queries for the count of all features matching the layer's configurations
|
|
1115
1121
|
* // e.g. definitionExpression
|
|
1116
|
-
* layer.queryFeatureCount().then(
|
|
1122
|
+
* layer.queryFeatureCount().then((numFeatures) => {
|
|
1117
1123
|
* // prints the total count to the console
|
|
1118
1124
|
* console.log(numFeatures);
|
|
1119
1125
|
* });
|
|
1126
|
+
* ```
|
|
1120
1127
|
* @example
|
|
1121
|
-
*
|
|
1122
|
-
* url: fsUrl // points to an Oriented Imagery layer url
|
|
1123
|
-
* });
|
|
1124
|
-
*
|
|
1128
|
+
* ```js
|
|
1125
1129
|
* const query = new Query();
|
|
1126
|
-
* query.where = "
|
|
1130
|
+
* query.where = "region = 'Southern California'";
|
|
1127
1131
|
*
|
|
1128
|
-
* layer.queryFeatureCount(query)
|
|
1129
|
-
*
|
|
1130
|
-
*
|
|
1132
|
+
* const featureCount = await layer.queryFeatureCount(query);
|
|
1133
|
+
* console.log(featureCount); // prints the number of results satisfying the query
|
|
1134
|
+
* ```
|
|
1131
1135
|
* @see [Sample - Query features from a FeatureLayer](https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query/)
|
|
1132
1136
|
* @example
|
|
1137
|
+
* ```js
|
|
1133
1138
|
* // Queries for the count of all features matching the layer's configurations
|
|
1134
1139
|
* // e.g. definitionExpression
|
|
1135
1140
|
* layer.queryFeatureCount().then((numFeatures) => {
|
|
1136
1141
|
* // prints the total count to the console
|
|
1137
1142
|
* console.log(numFeatures);
|
|
1138
1143
|
* });
|
|
1144
|
+
* ```
|
|
1139
1145
|
* @example
|
|
1140
|
-
*
|
|
1141
|
-
* url: fsUrl // points to a Feature Service layer url
|
|
1142
|
-
* });
|
|
1143
|
-
*
|
|
1146
|
+
* ```js
|
|
1144
1147
|
* const query = new Query();
|
|
1145
1148
|
* query.where = "region = 'Southern California'";
|
|
1146
1149
|
*
|
|
1147
1150
|
* const featureCount = await layer.queryFeatureCount(query);
|
|
1148
1151
|
* console.log(featureCount); // prints the number of results satisfying the query
|
|
1152
|
+
* ```
|
|
1149
1153
|
*/
|
|
1150
1154
|
queryFeatureCount(query?: QueryProperties | null | undefined, options?: RequestOptions): Promise<number>;
|
|
1151
1155
|
/**
|
|
1152
|
-
* Executes a [Query](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/) against
|
|
1153
|
-
* [FeatureSet](https://developers.arcgis.com/javascript/latest/references/core/rest/support/FeatureSet/) once the promise resolves.
|
|
1154
|
-
* A [FeatureSet](https://developers.arcgis.com/javascript/latest/references/core/rest/support/FeatureSet/) contains an array of [Graphic](https://developers.arcgis.com/javascript/latest/references/core/Graphic/)
|
|
1155
|
-
* features, which can be added to the [view's graphics](https://developers.arcgis.com/javascript/latest/references/core/views/View/#graphics).
|
|
1156
|
-
* This array will not be populated if zero results are found.
|
|
1156
|
+
* Executes a [Query](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/) against a feature service or layer data and returns a
|
|
1157
|
+
* [FeatureSet](https://developers.arcgis.com/javascript/latest/references/core/rest/support/FeatureSet/) once the promise resolves. A FeatureSet contains an array of [features](https://developers.arcgis.com/javascript/latest/references/core/Graphic/).
|
|
1157
1158
|
*
|
|
1158
1159
|
* > [!WARNING]
|
|
1159
1160
|
* >
|
|
1160
|
-
* > **
|
|
1161
|
-
* >
|
|
1162
|
-
* >
|
|
1163
|
-
* >
|
|
1164
|
-
* >
|
|
1165
|
-
* >
|
|
1166
|
-
* >
|
|
1167
|
-
*
|
|
1168
|
-
*
|
|
1169
|
-
*
|
|
1170
|
-
*
|
|
1171
|
-
* @
|
|
1172
|
-
* When no parameters are passed to this method, all features in the client are returned. To only return features
|
|
1173
|
-
* visible in the view, set the `geometry` parameter in the query object to the view's extent.
|
|
1174
|
-
* @param options - An object with the following properties.
|
|
1175
|
-
* @returns When resolved, a [FeatureSet](https://developers.arcgis.com/javascript/latest/references/core/rest/support/FeatureSet/) containing
|
|
1176
|
-
* an array of graphic features is returned.
|
|
1161
|
+
* > **Notes**
|
|
1162
|
+
* > - To query features visible in the view on the client-side rather than making a server-side query, use
|
|
1163
|
+
* > [OrientedImageryLayerView.queryFeatures()](https://developers.arcgis.com/javascript/latest/references/core/views/layers/OrientedImageryLayerView/#queryFeatures).
|
|
1164
|
+
* > - When querying a feature service with z-values and no [vertical coordinate system](https://doc.esri.com/en/arcgis-pro/latest/help/mapping/properties/vertical-coordinate-systems.html)
|
|
1165
|
+
* > information, z-values are automatically converted to match [Query.outSpatialReference](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#outSpatialReference) units.
|
|
1166
|
+
* > Example: The service has a horizontal spatial reference using `feet` units and the query is made with `outSpatialReference`
|
|
1167
|
+
* > based on `meter` units, then [FeatureLayer.queryFeatures()](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#queryFeatures) automatically converts the values from `feet` to `meter` units.
|
|
1168
|
+
*
|
|
1169
|
+
*
|
|
1170
|
+
* @param query - Specifies the attributes and spatial filter of the query. If no parameters are specified, all features satisfying the layer's configuration/filters are returned.
|
|
1171
|
+
* @param options - Additional request options. See [RequestOptions](https://developers.arcgis.com/javascript/latest/references/core/request/types/#RequestOptions).
|
|
1172
|
+
* @returns When resolved, returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/references/core/rest/support/FeatureSet/) containing an array of graphic features.
|
|
1177
1173
|
* @since 4.29
|
|
1178
|
-
* @see [
|
|
1179
|
-
* @see [Query and filter guide](https://developers.arcgis.com/javascript/latest/query-filter/)
|
|
1180
|
-
* @see [Sample - Query features from a FeatureLayer](https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query/)
|
|
1174
|
+
* @see [Samples using queryFeatures() method](https://developers.arcgis.com/javascript/latest/sample-code/?tagged=queryfeatures)
|
|
1181
1175
|
* @see [Query and filter guide](https://developers.arcgis.com/javascript/latest/query-filter/)
|
|
1182
1176
|
* @example
|
|
1177
|
+
* ```js
|
|
1183
1178
|
* // Queries for all the features matching the layer's configurations
|
|
1184
1179
|
* // e.g. definitionExpression
|
|
1185
|
-
* layer.queryFeatures()
|
|
1186
|
-
*
|
|
1187
|
-
*
|
|
1188
|
-
*
|
|
1180
|
+
* const results = await layer.queryFeatures();
|
|
1181
|
+
* // prints the array of result graphics to the console
|
|
1182
|
+
* console.log(results.features);
|
|
1183
|
+
* ```
|
|
1189
1184
|
* @example
|
|
1190
|
-
*
|
|
1191
|
-
*
|
|
1192
|
-
* });
|
|
1193
|
-
*
|
|
1185
|
+
* ```js
|
|
1186
|
+
* // create a query object to filter features by setting desired properties
|
|
1194
1187
|
* const query = new Query();
|
|
1195
1188
|
* query.where = "STATE_NAME = 'Washington'";
|
|
1196
1189
|
* query.outSpatialReference = { wkid: 102100 };
|
|
1197
1190
|
* query.returnGeometry = true;
|
|
1198
1191
|
* query.outFields = [ "CITY_NAME" ];
|
|
1199
1192
|
*
|
|
1200
|
-
* layer.queryFeatures(query)
|
|
1201
|
-
*
|
|
1202
|
-
*
|
|
1193
|
+
* const results = await layer.queryFeatures(query);
|
|
1194
|
+
* console.log(results.features); // prints the array of features to the console
|
|
1195
|
+
* ```
|
|
1203
1196
|
* @example
|
|
1197
|
+
* ```js
|
|
1204
1198
|
* // Get a query object for the layer's current configuration
|
|
1205
1199
|
* const queryParams = layer.createQuery();
|
|
1206
1200
|
* // set a geometry for filtering features by a region of interest
|
|
@@ -1209,15 +1203,61 @@ export default class OrientedImageryLayer extends __FeatureLayerSansType {
|
|
|
1209
1203
|
* queryParams.where = queryParams.where + " AND TYPE = 'Extreme'";
|
|
1210
1204
|
*
|
|
1211
1205
|
* // query the layer with the modified params object
|
|
1212
|
-
* layer.queryFeatures(queryParams)
|
|
1213
|
-
*
|
|
1214
|
-
*
|
|
1215
|
-
*
|
|
1206
|
+
* const results = await layer.queryFeatures(queryParams);
|
|
1207
|
+
* // prints the array of result graphics to the console
|
|
1208
|
+
* console.log(results.features);
|
|
1209
|
+
* ```
|
|
1216
1210
|
* @example
|
|
1217
|
-
*
|
|
1218
|
-
*
|
|
1219
|
-
*
|
|
1211
|
+
* ```js
|
|
1212
|
+
* // query all features from the layer and only return
|
|
1213
|
+
* // attributes specified in outFields.
|
|
1214
|
+
* const query = { // autocasts as Query
|
|
1215
|
+
* where: "1=1", // select all features
|
|
1216
|
+
* returnGeometry: false,
|
|
1217
|
+
* outFields: ["State_Name", "City_Name", "pop2010"]
|
|
1218
|
+
* };
|
|
1220
1219
|
*
|
|
1220
|
+
* const results = await layer.queryFeatures(query);
|
|
1221
|
+
* console.log(results.features); // prints the array of features to the console
|
|
1222
|
+
* ```
|
|
1223
|
+
* @see [Samples using queryFeatures() method](https://developers.arcgis.com/javascript/latest/sample-code/?tagged=queryfeatures)
|
|
1224
|
+
* @see [Query and filter guide](https://developers.arcgis.com/javascript/latest/query-filter/)
|
|
1225
|
+
* @example
|
|
1226
|
+
* ```js
|
|
1227
|
+
* // Queries for all the features matching the layer's configurations
|
|
1228
|
+
* // e.g. definitionExpression
|
|
1229
|
+
* const results = await layer.queryFeatures();
|
|
1230
|
+
* // prints the array of result graphics to the console
|
|
1231
|
+
* console.log(results.features);
|
|
1232
|
+
* ```
|
|
1233
|
+
* @example
|
|
1234
|
+
* ```js
|
|
1235
|
+
* // create a query object to filter features by setting desired properties
|
|
1236
|
+
* const query = new Query();
|
|
1237
|
+
* query.where = "STATE_NAME = 'Washington'";
|
|
1238
|
+
* query.outSpatialReference = { wkid: 102100 };
|
|
1239
|
+
* query.returnGeometry = true;
|
|
1240
|
+
* query.outFields = [ "CITY_NAME" ];
|
|
1241
|
+
*
|
|
1242
|
+
* const results = await layer.queryFeatures(query);
|
|
1243
|
+
* console.log(results.features); // prints the array of features to the console
|
|
1244
|
+
* ```
|
|
1245
|
+
* @example
|
|
1246
|
+
* ```js
|
|
1247
|
+
* // Get a query object for the layer's current configuration
|
|
1248
|
+
* const queryParams = layer.createQuery();
|
|
1249
|
+
* // set a geometry for filtering features by a region of interest
|
|
1250
|
+
* queryParams.geometry = extentForRegionOfInterest;
|
|
1251
|
+
* // Add to the layer's current definitionExpression
|
|
1252
|
+
* queryParams.where = queryParams.where + " AND TYPE = 'Extreme'";
|
|
1253
|
+
*
|
|
1254
|
+
* // query the layer with the modified params object
|
|
1255
|
+
* const results = await layer.queryFeatures(queryParams);
|
|
1256
|
+
* // prints the array of result graphics to the console
|
|
1257
|
+
* console.log(results.features);
|
|
1258
|
+
* ```
|
|
1259
|
+
* @example
|
|
1260
|
+
* ```js
|
|
1221
1261
|
* // query all features from the layer and only return
|
|
1222
1262
|
* // attributes specified in outFields.
|
|
1223
1263
|
* const query = { // autocasts as Query
|
|
@@ -1228,6 +1268,7 @@ export default class OrientedImageryLayer extends __FeatureLayerSansType {
|
|
|
1228
1268
|
*
|
|
1229
1269
|
* const results = await layer.queryFeatures(query);
|
|
1230
1270
|
* console.log(results.features); // prints the array of features to the console
|
|
1271
|
+
* ```
|
|
1231
1272
|
*/
|
|
1232
1273
|
queryFeatures(query?: QueryProperties | null | undefined, options?: RequestOptions): Promise<FeatureSet>;
|
|
1233
1274
|
/**
|
|
@@ -1235,49 +1276,54 @@ export default class OrientedImageryLayer extends __FeatureLayerSansType {
|
|
|
1235
1276
|
* array of Object IDs for features that satisfy the input query. If no parameters are specified,
|
|
1236
1277
|
* then the Object IDs of all features satisfying the layer's configuration/filters are returned.
|
|
1237
1278
|
*
|
|
1238
|
-
*
|
|
1239
|
-
*
|
|
1240
|
-
*
|
|
1241
|
-
*
|
|
1279
|
+
*
|
|
1280
|
+
* > [!WARNING]
|
|
1281
|
+
* > - To query the ObjectIDs of features visible in the view on the client-side rather than making a server-side query, use
|
|
1282
|
+
* > [OrientedImageryLayerView.queryObjectIds()](https://developers.arcgis.com/javascript/latest/references/core/views/layers/OrientedImageryLayerView/#queryObjectIds).
|
|
1283
|
+
*
|
|
1284
|
+
*
|
|
1285
|
+
* @param query - Specifies the attributes and spatial filter of the query. If no parameters are specified, then the Object IDs of all features satisfying the layer's configuration/filters are returned.
|
|
1286
|
+
* @param options - Additional request options. See [RequestOptions](https://developers.arcgis.com/javascript/latest/references/core/request/types/#RequestOptions).
|
|
1242
1287
|
* @returns When resolved, returns an array of numbers representing the object IDs of the features satisfying the query.
|
|
1243
1288
|
* @since 4.30
|
|
1289
|
+
* @see [Sample - Query Related Features](https://developers.arcgis.com/javascript/latest/sample-code/query-related-features/)
|
|
1244
1290
|
* @example
|
|
1291
|
+
* ```js
|
|
1245
1292
|
* // Queries for all the Object IDs of features matching the layer's configurations
|
|
1246
1293
|
* // e.g. definitionExpression
|
|
1247
|
-
* layer.queryObjectIds().then(
|
|
1294
|
+
* layer.queryObjectIds().then((results) => {
|
|
1248
1295
|
* // prints the array of Object IDs to the console
|
|
1249
1296
|
* console.log(results);
|
|
1250
1297
|
* });
|
|
1298
|
+
* ```
|
|
1251
1299
|
* @example
|
|
1252
|
-
*
|
|
1253
|
-
*
|
|
1300
|
+
* ```js
|
|
1301
|
+
* const query = new Query({
|
|
1302
|
+
* where: "SUB_REGION = 'Pacific'"
|
|
1254
1303
|
* });
|
|
1255
1304
|
*
|
|
1256
|
-
* const
|
|
1257
|
-
*
|
|
1258
|
-
*
|
|
1259
|
-
* layer.queryObjectIds(query).then(function(ids){
|
|
1260
|
-
* console.log(ids); // an array of object IDs
|
|
1261
|
-
* });
|
|
1305
|
+
* const ids = await layer.queryObjectIds(query);
|
|
1306
|
+
* console.log(ids); // an array of object IDs
|
|
1307
|
+
* ```
|
|
1262
1308
|
* @see [Sample - Query Related Features](https://developers.arcgis.com/javascript/latest/sample-code/query-related-features/)
|
|
1263
1309
|
* @example
|
|
1310
|
+
* ```js
|
|
1264
1311
|
* // Queries for all the Object IDs of features matching the layer's configurations
|
|
1265
1312
|
* // e.g. definitionExpression
|
|
1266
1313
|
* layer.queryObjectIds().then((results) => {
|
|
1267
1314
|
* // prints the array of Object IDs to the console
|
|
1268
1315
|
* console.log(results);
|
|
1269
1316
|
* });
|
|
1317
|
+
* ```
|
|
1270
1318
|
* @example
|
|
1271
|
-
*
|
|
1272
|
-
* url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/3"
|
|
1273
|
-
* });
|
|
1274
|
-
*
|
|
1319
|
+
* ```js
|
|
1275
1320
|
* const query = new Query({
|
|
1276
1321
|
* where: "SUB_REGION = 'Pacific'"
|
|
1277
1322
|
* });
|
|
1278
1323
|
*
|
|
1279
1324
|
* const ids = await layer.queryObjectIds(query);
|
|
1280
|
-
* console.log(ids);
|
|
1325
|
+
* console.log(ids); // an array of object IDs
|
|
1326
|
+
* ```
|
|
1281
1327
|
*/
|
|
1282
1328
|
queryObjectIds(query?: QueryProperties | null | undefined, options?: RequestOptions): Promise<ObjectId[]>;
|
|
1283
1329
|
/**
|
package/layers/ParquetLayer.d.ts
CHANGED
|
@@ -708,116 +708,137 @@ export default class ParquetLayer extends ParquetLayerSuperclass {
|
|
|
708
708
|
*/
|
|
709
709
|
getFieldDomain(fieldName: string, options?: FieldDomainOptions | null): DomainUnion | null | undefined;
|
|
710
710
|
/**
|
|
711
|
-
* Executes a [Query](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/) against the
|
|
712
|
-
*
|
|
711
|
+
* Executes a [Query](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/) against the feature service and returns the [Extent](https://developers.arcgis.com/javascript/latest/references/core/geometry/Extent/) of features that satisfy the query. If no
|
|
712
|
+
* parameters are specified, then the extent and count of all features satisfying the layer's configuration/filters are returned.
|
|
713
713
|
*
|
|
714
|
-
* To query count of features available for drawing in the [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/), you must
|
|
715
|
-
* use the [ParquetLayerView#queryExtent](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLikeLayerView/#queryExtent).
|
|
716
714
|
*
|
|
717
|
-
*
|
|
718
|
-
*
|
|
719
|
-
*
|
|
715
|
+
* > [!WARNING]
|
|
716
|
+
* > - To query for the extent of features/graphics visible in the view on the client-side rather than making a server-side query, you must use the
|
|
717
|
+
* > [ParquetLayerView.queryExtent()](https://developers.arcgis.com/javascript/latest/references/core/views/layers/ParquetLayerView/#queryExtent).
|
|
718
|
+
* > - Spatial queries have the same limitations as those listed in the [projectOperator](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/projectOperator/) documentation.
|
|
719
|
+
* > - Spatial queries are currently not supported if the layer view has any of the following [SpatialReferences](https://developers.arcgis.com/javascript/latest/references/core/geometry/SpatialReference/):
|
|
720
|
+
* > - GDM 2000 (4742) - Malaysia
|
|
721
|
+
* > - Gusterberg (Ferro) (8042) - Austria/Czech Republic
|
|
722
|
+
* > - ISN2016 (8086) - Iceland
|
|
723
|
+
* > - SVY21 (4757) - Singapore
|
|
724
|
+
*
|
|
725
|
+
* @param query - Specifies the attributes and spatial filter of the query. If no parameters are specified, then the extent and count of all features satisfying the layer's configuration/filters are returned.
|
|
726
|
+
* @param options - Additional request options. See [RequestOptions](https://developers.arcgis.com/javascript/latest/references/core/request/types/#RequestOptions).
|
|
720
727
|
* @returns When resolved, returns the extent and count of the features
|
|
721
728
|
* that satisfy the input query. See the object specification table below for details.
|
|
722
729
|
* Property | Type | Description
|
|
723
730
|
* ---------|------|-------------
|
|
724
731
|
* count | Number | The number of features that satisfy the input query.
|
|
725
|
-
* extent | [Extent](https://developers.arcgis.com/javascript/latest/references/core/geometry/Extent/)
|
|
726
|
-
* @
|
|
732
|
+
* extent | [Extent](https://developers.arcgis.com/javascript/latest/references/core/geometry/Extent/) | The extent of the features that satisfy the query.
|
|
733
|
+
* @see [Sample - Zoom to extent of all features](https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-queryextent/)
|
|
727
734
|
* @example
|
|
735
|
+
* ```js
|
|
728
736
|
* // Queries for the extent of all features matching the layer's configurations
|
|
729
737
|
* // e.g. definitionExpression
|
|
730
|
-
* layer.queryExtent().then((
|
|
731
|
-
* // go to the extent of the
|
|
732
|
-
*
|
|
738
|
+
* layer.queryExtent().then((result) =>{
|
|
739
|
+
* // go to the extent of the result satisfying the query
|
|
740
|
+
* viewElement.goTo(result.extent);
|
|
733
741
|
* });
|
|
742
|
+
* ```
|
|
734
743
|
* @example
|
|
744
|
+
* ```js
|
|
735
745
|
* const query = new Query();
|
|
736
746
|
* query.where = "region = 'Southern California'";
|
|
737
747
|
*
|
|
738
748
|
* const result = await layer.queryExtent(query);
|
|
739
|
-
*
|
|
749
|
+
* viewElement.goTo(result.extent); // go to the extent of the result satisfying the query
|
|
750
|
+
* });
|
|
751
|
+
* ```
|
|
740
752
|
*/
|
|
741
753
|
queryExtent(query?: QueryProperties | null | undefined, options?: AbortOptions): Promise<{
|
|
742
754
|
count: number;
|
|
743
755
|
extent: Extent | null;
|
|
744
756
|
}>;
|
|
745
757
|
/**
|
|
746
|
-
* Executes a [Query](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/) against the
|
|
747
|
-
*
|
|
758
|
+
* Executes a [Query](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/) against the feature service or layer data and
|
|
759
|
+
* returns the number of features that satisfy the query. If no parameters are specified,
|
|
760
|
+
* the total number of features satisfying the layer's configuration/filters is returned.
|
|
748
761
|
*
|
|
749
|
-
* To query count of features available for drawing in the [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/), you must
|
|
750
|
-
* use the [ParquetLayerView#queryFeatureCount](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLikeLayerView/#queryFeatureCount).
|
|
751
762
|
*
|
|
752
|
-
*
|
|
753
|
-
*
|
|
754
|
-
*
|
|
763
|
+
* > [!WARNING]
|
|
764
|
+
* > - To query the count of features available in the view on the client-side rather than making a server-side query, use
|
|
765
|
+
* > [ParquetLayerView.queryFeatureCount()](https://developers.arcgis.com/javascript/latest/references/core/views/layers/ParquetLayerView/#queryFeatureCount).
|
|
766
|
+
* > - Spatial queries have the same limitations as those listed in the [projectOperator](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/projectOperator/) documentation.
|
|
767
|
+
* > - Spatial queries are currently not supported if the layer view has any of the following [SpatialReferences](https://developers.arcgis.com/javascript/latest/references/core/geometry/SpatialReference/):
|
|
768
|
+
* > - GDM 2000 (4742) - Malaysia
|
|
769
|
+
* > - Gusterberg (Ferro) (8042) - Austria/Czech Republic
|
|
770
|
+
* > - ISN2016 (8086) - Iceland
|
|
771
|
+
* > - SVY21 (4757) - Singapore
|
|
772
|
+
*
|
|
773
|
+
* @param query - Specifies the attributes and spatial filter of the query. If no parameters are specified, the total number of features satisfying the layer's configuration/filters is returned.
|
|
774
|
+
* @param options - Additional request options. See [RequestOptions](https://developers.arcgis.com/javascript/latest/references/core/request/types/#RequestOptions).
|
|
755
775
|
* @returns When resolved, returns the number of features that satisfy the query.
|
|
756
|
-
* @
|
|
776
|
+
* @see [Sample - Query features from a FeatureLayer](https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query/)
|
|
757
777
|
* @example
|
|
778
|
+
* ```js
|
|
758
779
|
* // Queries for the count of all features matching the layer's configurations
|
|
759
780
|
* // e.g. definitionExpression
|
|
760
|
-
* layer.queryFeatureCount().then((numFeatures) =>{
|
|
781
|
+
* layer.queryFeatureCount().then((numFeatures) => {
|
|
761
782
|
* // prints the total count to the console
|
|
762
783
|
* console.log(numFeatures);
|
|
763
784
|
* });
|
|
785
|
+
* ```
|
|
764
786
|
* @example
|
|
787
|
+
* ```js
|
|
765
788
|
* const query = new Query();
|
|
766
789
|
* query.where = "region = 'Southern California'";
|
|
767
790
|
*
|
|
768
|
-
* layer.queryFeatureCount(query)
|
|
769
|
-
*
|
|
770
|
-
*
|
|
791
|
+
* const featureCount = await layer.queryFeatureCount(query);
|
|
792
|
+
* console.log(featureCount); // prints the number of results satisfying the query
|
|
793
|
+
* ```
|
|
771
794
|
*/
|
|
772
795
|
queryFeatureCount(query?: QueryProperties | null | undefined, options?: AbortOptions): Promise<number>;
|
|
773
796
|
/**
|
|
774
|
-
* Executes a [Query](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/) against
|
|
775
|
-
* [FeatureSet](https://developers.arcgis.com/javascript/latest/references/core/rest/support/FeatureSet/) once the promise resolves.
|
|
776
|
-
* A [FeatureSet](https://developers.arcgis.com/javascript/latest/references/core/rest/support/FeatureSet/) contains an array of [Graphic](https://developers.arcgis.com/javascript/latest/references/core/Graphic/) features.
|
|
777
|
-
*
|
|
778
|
-
* To query features available for drawing in the [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/), you must
|
|
779
|
-
* use the [ParquetLayerView#queryFeatures](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLikeLayerView/#queryFeatures).
|
|
797
|
+
* Executes a [Query](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/) against a feature service or layer data and returns a
|
|
798
|
+
* [FeatureSet](https://developers.arcgis.com/javascript/latest/references/core/rest/support/FeatureSet/) once the promise resolves. A FeatureSet contains an array of [features](https://developers.arcgis.com/javascript/latest/references/core/Graphic/).
|
|
780
799
|
*
|
|
781
800
|
* > [!WARNING]
|
|
782
801
|
* >
|
|
783
|
-
* > **
|
|
784
|
-
* >
|
|
785
|
-
* >
|
|
786
|
-
* >
|
|
787
|
-
*
|
|
788
|
-
*
|
|
789
|
-
*
|
|
790
|
-
*
|
|
791
|
-
*
|
|
792
|
-
*
|
|
802
|
+
* > **Notes**
|
|
803
|
+
* > - To query features visible in the view on the client-side rather than making a server-side query, use
|
|
804
|
+
* > [ParquetLayerView.queryFeatures()](https://developers.arcgis.com/javascript/latest/references/core/views/layers/ParquetLayerView/#queryFeatures).
|
|
805
|
+
* > - ParquetLayer supports [orderByFields](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#orderByFields) for datasets containing up to 500,000 features.
|
|
806
|
+
* > - Attribute values used in attribute queries executed against these layers are case sensitive.
|
|
807
|
+
* > - Spatial queries have the same limitations as those listed in the [projectOperator](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/projectOperator/) documentation.
|
|
808
|
+
* > - Spatial queries are currently not supported if the layer view has any of the following [SpatialReferences](https://developers.arcgis.com/javascript/latest/references/core/geometry/SpatialReference/):
|
|
809
|
+
* > - GDM 2000 (4742) - Malaysia
|
|
810
|
+
* > - Gusterberg (Ferro) (8042) - Austria/Czech Republic
|
|
811
|
+
* > - ISN2016 (8086) - Iceland
|
|
812
|
+
* > - SVY21 (4757) - Singapore
|
|
813
|
+
*
|
|
814
|
+
* @param query - Specifies the attributes and spatial filter of the query. If no parameters are specified, all features satisfying the layer's configuration/filters are returned.
|
|
815
|
+
* @param options - Additional request options. See [RequestOptions](https://developers.arcgis.com/javascript/latest/references/core/request/types/#RequestOptions).
|
|
816
|
+
* @returns When resolved, returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/references/core/rest/support/FeatureSet/) containing an array of graphic features.
|
|
793
817
|
* @since 4.34
|
|
794
|
-
* @see [
|
|
818
|
+
* @see [Samples using queryFeatures() method](https://developers.arcgis.com/javascript/latest/sample-code/?tagged=queryfeatures)
|
|
795
819
|
* @see [Query and filter guide](https://developers.arcgis.com/javascript/latest/query-filter/)
|
|
796
820
|
* @example
|
|
821
|
+
* ```js
|
|
797
822
|
* // Queries for all the features matching the layer's configurations
|
|
798
823
|
* // e.g. definitionExpression
|
|
799
|
-
* layer.queryFeatures()
|
|
800
|
-
*
|
|
801
|
-
*
|
|
802
|
-
*
|
|
824
|
+
* const results = await layer.queryFeatures();
|
|
825
|
+
* // prints the array of result graphics to the console
|
|
826
|
+
* console.log(results.features);
|
|
827
|
+
* ```
|
|
803
828
|
* @example
|
|
804
|
-
*
|
|
805
|
-
*
|
|
806
|
-
* urls: [
|
|
807
|
-
* "parquet-file-url1.parquet"
|
|
808
|
-
* ]
|
|
809
|
-
* })
|
|
810
|
-
* });
|
|
811
|
-
*
|
|
829
|
+
* ```js
|
|
830
|
+
* // create a query object to filter features by setting desired properties
|
|
812
831
|
* const query = new Query();
|
|
813
832
|
* query.where = "STATE_NAME = 'Washington'";
|
|
833
|
+
* query.outSpatialReference = { wkid: 102100 };
|
|
814
834
|
* query.returnGeometry = true;
|
|
815
835
|
* query.outFields = [ "CITY_NAME" ];
|
|
816
836
|
*
|
|
817
|
-
* layer.queryFeatures(query)
|
|
818
|
-
*
|
|
819
|
-
*
|
|
837
|
+
* const results = await layer.queryFeatures(query);
|
|
838
|
+
* console.log(results.features); // prints the array of features to the console
|
|
839
|
+
* ```
|
|
820
840
|
* @example
|
|
841
|
+
* ```js
|
|
821
842
|
* // Get a query object for the layer's current configuration
|
|
822
843
|
* const queryParams = layer.createQuery();
|
|
823
844
|
* // set a geometry for filtering features by a region of interest
|
|
@@ -826,44 +847,64 @@ export default class ParquetLayer extends ParquetLayerSuperclass {
|
|
|
826
847
|
* queryParams.where = queryParams.where + " AND TYPE = 'Extreme'";
|
|
827
848
|
*
|
|
828
849
|
* // query the layer with the modified params object
|
|
829
|
-
* layer.queryFeatures(queryParams)
|
|
830
|
-
*
|
|
831
|
-
*
|
|
832
|
-
*
|
|
833
|
-
*
|
|
834
|
-
*
|
|
835
|
-
*
|
|
836
|
-
*
|
|
850
|
+
* const results = await layer.queryFeatures(queryParams);
|
|
851
|
+
* // prints the array of result graphics to the console
|
|
852
|
+
* console.log(results.features);
|
|
853
|
+
* ```
|
|
854
|
+
* @example
|
|
855
|
+
* ```js
|
|
856
|
+
* // query all features from the layer and only return
|
|
857
|
+
* // attributes specified in outFields.
|
|
858
|
+
* const query = { // autocasts as Query
|
|
859
|
+
* where: "1=1", // select all features
|
|
860
|
+
* returnGeometry: false,
|
|
861
|
+
* outFields: ["State_Name", "City_Name", "pop2010"]
|
|
862
|
+
* };
|
|
863
|
+
*
|
|
864
|
+
* const results = await layer.queryFeatures(query);
|
|
865
|
+
* console.log(results.features); // prints the array of features to the console
|
|
866
|
+
* ```
|
|
837
867
|
*/
|
|
838
868
|
queryFeatures(query?: QueryProperties | null | undefined, options?: AbortOptions): Promise<FeatureSet>;
|
|
839
869
|
/**
|
|
840
|
-
* Executes a [Query](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/) against the
|
|
870
|
+
* Executes a [Query](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/) against the feature service and returns an
|
|
841
871
|
* array of Object IDs for features that satisfy the input query. If no parameters are specified,
|
|
842
872
|
* then the Object IDs of all features satisfying the layer's configuration/filters are returned.
|
|
843
873
|
*
|
|
844
|
-
* To query ObjectIDs of features available for drawing in the [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/), you must
|
|
845
|
-
* use the [ParquetLayerView#queryObjectIds](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLikeLayerView/#queryObjectIds).
|
|
846
874
|
*
|
|
847
|
-
*
|
|
848
|
-
*
|
|
849
|
-
*
|
|
850
|
-
*
|
|
875
|
+
* > [!WARNING]
|
|
876
|
+
* > - To query the ObjectIDs of features visible in the view on the client-side rather than making a server-side query, use
|
|
877
|
+
* > [ParquetLayerView.queryObjectIds()](https://developers.arcgis.com/javascript/latest/references/core/views/layers/ParquetLayerView/#queryObjectIds).
|
|
878
|
+
* > - Spatial queries have the same limitations as those listed in the [projectOperator](https://developers.arcgis.com/javascript/latest/references/core/geometry/operators/projectOperator/) documentation.
|
|
879
|
+
* > - Spatial queries are currently not supported if the layer view has any of the following [SpatialReferences](https://developers.arcgis.com/javascript/latest/references/core/geometry/SpatialReference/):
|
|
880
|
+
* > - GDM 2000 (4742) - Malaysia
|
|
881
|
+
* > - Gusterberg (Ferro) (8042) - Austria/Czech Republic
|
|
882
|
+
* > - ISN2016 (8086) - Iceland
|
|
883
|
+
* > - SVY21 (4757) - Singapore
|
|
884
|
+
*
|
|
885
|
+
* @param query - Specifies the attributes and spatial filter of the query. If no parameters are specified, then the Object IDs of all features satisfying the layer's configuration/filters are returned.
|
|
886
|
+
* @param options - Additional request options. See [RequestOptions](https://developers.arcgis.com/javascript/latest/references/core/request/types/#RequestOptions).
|
|
851
887
|
* @returns When resolved, returns an array of numbers representing the object IDs of the features satisfying the query.
|
|
852
888
|
* @since 4.34
|
|
889
|
+
* @see [Sample - Query Related Features](https://developers.arcgis.com/javascript/latest/sample-code/query-related-features/)
|
|
853
890
|
* @example
|
|
891
|
+
* ```js
|
|
854
892
|
* // Queries for all the Object IDs of features matching the layer's configurations
|
|
855
893
|
* // e.g. definitionExpression
|
|
856
|
-
* layer.queryObjectIds().then((results) =>{
|
|
894
|
+
* layer.queryObjectIds().then((results) => {
|
|
857
895
|
* // prints the array of Object IDs to the console
|
|
858
896
|
* console.log(results);
|
|
859
897
|
* });
|
|
898
|
+
* ```
|
|
860
899
|
* @example
|
|
900
|
+
* ```js
|
|
861
901
|
* const query = new Query({
|
|
862
902
|
* where: "SUB_REGION = 'Pacific'"
|
|
863
903
|
* });
|
|
864
904
|
*
|
|
865
|
-
* const ids = await
|
|
866
|
-
* console.log(ids);
|
|
905
|
+
* const ids = await layer.queryObjectIds(query);
|
|
906
|
+
* console.log(ids); // an array of object IDs
|
|
907
|
+
* ```
|
|
867
908
|
*/
|
|
868
909
|
queryObjectIds(query?: QueryProperties | null | undefined, options?: AbortOptions): Promise<ObjectId[]>;
|
|
869
910
|
}
|