@arcgis/core 5.0.0-next.124 → 5.0.0-next.126
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/applications/Components/applySetUtils.d.ts +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{a327f36561f093dc0fab.js → 19fcc74d34cbbaa56a41.js} +1 -1
- package/assets/esri/core/workers/chunks/1ce46085095679386580.js +1 -0
- package/assets/esri/core/workers/chunks/{a2f38e86acf45272dbc2.js → 214323c62d6d3b603a00.js} +1 -1
- package/assets/esri/core/workers/chunks/215c54520d0da638fe57.js +1 -0
- package/assets/esri/core/workers/chunks/249630af2fb01257eb75.js +1 -0
- package/assets/esri/core/workers/chunks/3214763f268622f09986.js +1 -0
- package/assets/esri/core/workers/chunks/{18c05353d6d8950d1491.js → 36215b2c0b1020743458.js} +1 -1
- package/assets/esri/core/workers/chunks/{2badadf8032e166b34ec.js → 3f3c63420644f9522ab1.js} +1 -1
- package/assets/esri/core/workers/chunks/{7f70a41258b2a0157aa5.js → 3fa59195286af30932d9.js} +1 -1
- package/assets/esri/core/workers/chunks/41108f58f0f439ebba3f.js +1 -0
- package/assets/esri/core/workers/chunks/4fe210314813ea1f7a26.js +1 -0
- package/assets/esri/core/workers/chunks/52705ccbb452a3edb064.js +1 -0
- package/assets/esri/core/workers/chunks/54c545f44b7ce21fb604.js +1 -0
- package/assets/esri/core/workers/chunks/{cfdb17522112c52f81ad.js → 558e9fed2e58cbbf9947.js} +1 -1
- package/assets/esri/core/workers/chunks/56e3c34ebdee61ff4b33.js +1 -0
- package/assets/esri/core/workers/chunks/{b50d2d3379654de1f2f3.js → 58134617fb7530836b81.js} +1 -1
- package/assets/esri/core/workers/chunks/58c4be467a922fe37f01.js +1 -0
- package/assets/esri/core/workers/chunks/{f0582d8111ec825e1f9a.js → 651b46aeabf22ff53a38.js} +1 -1
- package/assets/esri/core/workers/chunks/{90316fb569389d48920f.js → 666f201d222c50ab8428.js} +1 -1
- package/assets/esri/core/workers/chunks/6988517cb09928fed0f8.js +1 -0
- package/assets/esri/core/workers/chunks/6bf7d8de86b9eb76f920.js +1 -0
- package/assets/esri/core/workers/chunks/6c0b7890c8eec7febe28.js +1 -0
- package/assets/esri/core/workers/chunks/{25267253ba578eba38cf.js → 754e4d0b8c1ad392bd83.js} +1 -1
- package/assets/esri/core/workers/chunks/7ec83fc059325e207825.js +1 -0
- package/assets/esri/core/workers/chunks/7f385e9c88df3395e678.js +1 -0
- package/assets/esri/core/workers/chunks/{66ed527cd8ad11d008be.js → 80d51d58db09b9f96cb5.js} +1 -1
- package/assets/esri/core/workers/chunks/81c758bdc07ed9d9a132.js +1 -0
- package/assets/esri/core/workers/chunks/{8670d9d11950f3c61b79.js → 83711695e16912e9b9c5.js} +1 -1
- package/assets/esri/core/workers/chunks/a143a6f8e2f21548b244.js +1 -0
- package/assets/esri/core/workers/chunks/a4947d5d2fa6b7bd399b.js +1 -0
- package/assets/esri/core/workers/chunks/{1f30558e3ad6ac68bdb8.js → b4203e488bb928ff8032.js} +1 -1
- package/assets/esri/core/workers/chunks/b4b16914950792c46bd3.js +1 -0
- package/assets/esri/core/workers/chunks/{360b3499e2a671c309ce.js → b6969a42602517a6ef1c.js} +1 -1
- package/assets/esri/core/workers/chunks/{1aa2187597f7c4adb67f.js → bcb254cb7297fec88679.js} +1 -1
- package/assets/esri/core/workers/chunks/{2d1a772abd730b61854f.js → bd2125e0a68378533641.js} +1 -1
- package/assets/esri/core/workers/chunks/{d76dfac06299cbd4f00e.js → c0b6706f86665cec85f8.js} +1 -1
- package/assets/esri/core/workers/chunks/{f114da7ef2b891184e77.js → c3c6d337ff53e5d921e8.js} +1 -1
- package/assets/esri/core/workers/chunks/{b5f68e1fdbaca3cd9c8d.js → c941b716ea3c13cabc80.js} +1 -1
- package/assets/esri/core/workers/chunks/c99f36159b5ed6f9267e.js +1 -0
- package/assets/esri/core/workers/chunks/cf4202ad468501ef24cf.js +1 -0
- package/assets/esri/core/workers/chunks/{e2dc7e6b84e9b38ef9fe.js → d2017b0b27b9e4ada922.js} +1 -1
- package/assets/esri/core/workers/chunks/{4742a8c19b86a5f859f0.js → d47ca631e109144b6ba9.js} +1 -1
- package/assets/esri/core/workers/chunks/{38124ee5119e614645c9.js → d78b2f85ec9212a973e8.js} +1 -1
- package/assets/esri/core/workers/chunks/{7cd4280d24b24045bd7e.js → d8adab2d55b39241b232.js} +1 -1
- package/assets/esri/core/workers/chunks/e0519f24430fecead87b.js +1 -0
- package/assets/esri/core/workers/chunks/e33f5780fb45ac7ca889.js +1 -0
- package/assets/esri/core/workers/chunks/{eb9e913fe0dfcc71cf92.js → e4611ebd7dba7692a914.js} +1 -1
- package/assets/esri/core/workers/chunks/{86f2ec2692363abc97d1.js → e52793690dff1a199647.js} +1 -1
- package/assets/esri/core/workers/chunks/{c13efb74aa4602f6a1ee.js → e56a10a475ce128b5fce.js} +1 -1
- package/assets/esri/core/workers/chunks/ea633a6a3b9ea8ce965d.js +1 -0
- package/assets/esri/core/workers/chunks/eae1c098c16e2faaf90d.js +1 -0
- package/assets/esri/core/workers/chunks/{8650fbe1db55b7280c00.js → ef4237dc7b67c9039826.js} +1 -1
- package/assets/esri/core/workers/chunks/f5f513997cde0ce0f2a2.js +1 -0
- package/assets/esri/core/workers/chunks/fcc8d0b60f7c2397e550.js +1 -0
- package/assets/esri/themes/base/widgets/_BasemapGallery.scss +1 -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/OperatorProximityGeodesic.js +1 -1
- package/chunks/OperatorShapePreservingLength.js +1 -1
- package/chunks/OperatorShapePreservingProject.js +1 -1
- package/chunks/SpatialReference.js +1 -1
- package/chunks/containsOperator.js +1 -1
- package/chunks/disjointOperator.js +1 -1
- package/config.js +1 -1
- package/core/has.js +1 -1
- package/editing/sharedTemplates/SharedTemplateMetadata.d.ts +0 -31
- package/{layers/graphics/editingSupport.d.ts → editing/types.d.ts} +8 -8
- package/editing/types.js +2 -0
- package/geometry/operators/gx/operatorIntersection.js +1 -1
- package/geometry/operators/json/containsOperator.js +1 -1
- package/geometry/operators/json/disjointOperator.js +1 -1
- package/geometry/support/zscale.js +1 -1
- package/graphic/KnowledgeGraphGraphicOrigin.d.ts +0 -1
- package/graphic/LinkChartGraphicOrigin.js +1 -1
- package/interfaces.d.ts +60 -60
- package/kernel.js +1 -1
- package/layers/CSVLayer.d.ts +317 -540
- package/layers/CSVLayer.js +1 -1
- package/layers/FeatureLayer.d.ts +13 -13
- package/layers/FeatureLayer.js +1 -1
- package/layers/GeoJSONLayer.d.ts +4 -4
- package/layers/OrientedImageryLayer.d.ts +6 -6
- package/layers/SceneLayer.d.ts +2 -2
- package/layers/SubtypeGroupLayer.d.ts +5 -5
- package/layers/graphics/applyEditsUtils.js +1 -1
- package/layers/graphics/data/QueryEngineCapabilities.js +1 -1
- package/layers/graphics/editingSupport.js +1 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/graphics/sources/OGCFeatureSource.js +1 -1
- package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/graphics/sources/support/QueryTask.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/EditBusLayer.d.ts +1 -1
- package/layers/raster/functions/ExtractBandFunction.js +1 -1
- package/layers/support/SubtypeSublayer.d.ts +5 -5
- package/layers/support/capabilities.js +1 -1
- package/layers/support/serviceCapabilitiesUtils.js +1 -1
- package/networks/support/Circuit.d.ts +11 -2
- package/networks/support/CircuitSection.d.ts +3 -2
- package/package.json +1 -1
- package/rest/featureService/FeatureService.js +1 -1
- package/rest/featureService/types.d.ts +7 -1
- package/rest/query/operations/editsZScale.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMCursor.js +1 -1
- package/symbols/cim/CIMSymbolHelper.js +1 -1
- package/symbols/cim/placements/PlacementAlongLineSameSize.js +1 -1
- package/symbols/cim/placements/PlacementAtExtremities.js +1 -1
- package/symbols/cim/placements/PlacementAtMeasuredUnits.js +1 -1
- package/symbols/cim/placements/PlacementAtRatioPositions.js +1 -1
- package/symbols/cim/placements/PlacementOnLine.js +1 -1
- package/symbols/cim/placements/PlacementOnVertices.js +1 -1
- package/symbols/cim/types.d.ts +7 -0
- package/versionManagement/VersionManagementService.d.ts +3 -2
- package/views/2d/analysis/DistanceMeasurement/utils.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/3d/support/MemoryController.js +1 -1
- package/views/3d/support/orientedBoundingBox.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
- package/views/DOMContainer.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/draw/DrawTool.js +1 -1
- package/views/draw/plugins/BezierSegmentPlugin.js +1 -1
- package/views/draw/plugins/CircularArcSegmentPlugin.js +1 -1
- package/views/draw/plugins/FreehandSegmentPlugin.js +1 -1
- package/views/draw/plugins/MultipointPlugin.js +1 -1
- package/views/draw/plugins/PointPlugin.js +1 -1
- package/views/draw/plugins/PolygonPlugin.js +1 -1
- package/views/draw/plugins/PolylinePlugin.js +1 -1
- package/views/draw/plugins/ShapePlugin.js +1 -1
- package/views/draw/support/managers/TooltipManager.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiledFetcher.js +1 -1
- package/views/interactive/tooltip/content/TooltipContentDynamic.js +1 -1
- package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
- package/webscene/Glow.d.ts +10 -2
- package/widgets/Directions.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
- package/widgets/Home/HomeViewModel.d.ts +2 -1
- package/widgets/Home/HomeViewModel.js +1 -1
- package/widgets/Home.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/constants.js +1 -1
- package/widgets/OrientedImageryViewer/types.js +1 -1
- package/widgets/OrientedImageryViewer/videoViewerUtils.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch/support/PluginManager.js +1 -1
- package/assets/esri/core/workers/chunks/0184b4c0c92c76c60ab2.js +0 -1
- package/assets/esri/core/workers/chunks/0bf742d48f434c4c575f.js +0 -1
- package/assets/esri/core/workers/chunks/15ba0296403dd4152b88.js +0 -1
- package/assets/esri/core/workers/chunks/1701d9c50610f0b2dd38.js +0 -1
- package/assets/esri/core/workers/chunks/231602adad900fc024f0.js +0 -1
- package/assets/esri/core/workers/chunks/27aa21da934ecaca381a.js +0 -1
- package/assets/esri/core/workers/chunks/2907e9a7216b5a29729b.js +0 -1
- package/assets/esri/core/workers/chunks/2b0891ba57ba66b913ce.js +0 -1
- package/assets/esri/core/workers/chunks/2cd56b7ab70f908bbbd4.js +0 -1
- package/assets/esri/core/workers/chunks/2e1fe0dd357eb7a6f47f.js +0 -1
- package/assets/esri/core/workers/chunks/2e9d280f51ab43e6f102.js +0 -1
- package/assets/esri/core/workers/chunks/2eb7df99170b7bb2a914.js +0 -1
- package/assets/esri/core/workers/chunks/36b8dd092697ef544f40.js +0 -1
- package/assets/esri/core/workers/chunks/394aa478c29599b08bf5.js +0 -1
- package/assets/esri/core/workers/chunks/4ba4aa6c75e3f8950e65.js +0 -1
- package/assets/esri/core/workers/chunks/4d45c51ff32dd75299ac.js +0 -1
- package/assets/esri/core/workers/chunks/4fdc838f4c3efab6cd61.js +0 -1
- package/assets/esri/core/workers/chunks/6321680c8070dffa3b6c.js +0 -1
- package/assets/esri/core/workers/chunks/6b02919373bd4da7ff73.js +0 -1
- package/assets/esri/core/workers/chunks/a03196e6579d738251fc.js +0 -1
- package/assets/esri/core/workers/chunks/a0b715cf03895082b773.js +0 -1
- package/assets/esri/core/workers/chunks/aec827b50df6edc54808.js +0 -1
- package/assets/esri/core/workers/chunks/c80c82acec04ee0ade04.js +0 -1
- package/assets/esri/core/workers/chunks/d27a542a406ac3fe2ad9.js +0 -1
- package/assets/esri/core/workers/chunks/d9c1e1ec5c56f09fb82f.js +0 -1
- package/assets/esri/core/workers/chunks/ec2dfd89e4ce6fda4971.js +0 -1
- package/assets/esri/core/workers/chunks/ffb73b4e8f2f7ffd2db4.js +0 -1
package/layers/CSVLayer.d.ts
CHANGED
|
@@ -1,26 +1,56 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type PopupTemplate from "../PopupTemplate.js";
|
|
2
2
|
import type Extent from "../geometry/Extent.js";
|
|
3
3
|
import type SpatialReference from "../geometry/SpatialReference.js";
|
|
4
|
-
import type
|
|
4
|
+
import type Layer from "./Layer.js";
|
|
5
5
|
import type Field from "./support/Field.js";
|
|
6
6
|
import type FieldsIndex from "./support/FieldsIndex.js";
|
|
7
|
+
import type LabelClass from "./support/LabelClass.js";
|
|
8
|
+
import type LayerFloorInfo from "./support/LayerFloorInfo.js";
|
|
7
9
|
import type PortalItem from "../portal/PortalItem.js";
|
|
10
|
+
import type AttributeBinsFeatureSet from "../rest/support/AttributeBinsFeatureSet.js";
|
|
8
11
|
import type FeatureSet from "../rest/support/FeatureSet.js";
|
|
12
|
+
import type Query from "../rest/support/Query.js";
|
|
9
13
|
import type ElevationInfo from "../symbols/support/ElevationInfo.js";
|
|
10
14
|
import type AttributeTableTemplate from "../tables/AttributeTableTemplate.js";
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
15
|
+
import type { MultiOriginJSONSupportMixin } from "../core/MultiOriginJSONSupport.js";
|
|
16
|
+
import type { LayerEvents, LayerProperties } from "./Layer.js";
|
|
17
|
+
import type { FeatureLayerCapabilities, FieldDomainOptions } from "./types.js";
|
|
18
|
+
import type { BlendLayer, BlendLayerProperties } from "./mixins/BlendLayer.js";
|
|
19
|
+
import type { CustomParametersMixin, CustomParameters, CustomParametersMixinProperties } from "./mixins/CustomParametersMixin.js";
|
|
20
|
+
import type { DisplayFilteredLayer, DisplayFilteredLayerProperties } from "./mixins/DisplayFilteredLayer.js";
|
|
21
|
+
import type { FeatureEffectLayer, FeatureEffectLayerProperties } from "./mixins/FeatureEffectLayer.js";
|
|
22
|
+
import type { FeatureReductionLayer, FeatureReductionLayerProperties } from "./mixins/FeatureReductionLayer.js";
|
|
23
|
+
import type { OperationalLayer, OperationalLayerProperties } from "./mixins/OperationalLayer.js";
|
|
24
|
+
import type { OrderedLayer, OrderedLayerProperties } from "./mixins/OrderedLayer.js";
|
|
25
|
+
import type { PortalLayer, PortalLayerProperties } from "./mixins/PortalLayer.js";
|
|
26
|
+
import type { RefreshableLayer, RefreshableLayerEvents, RefreshableLayerProperties } from "./mixins/RefreshableLayer.js";
|
|
27
|
+
import type { ScaleRangeLayer, ScaleRangeLayerProperties } from "./mixins/ScaleRangeLayer.js";
|
|
28
|
+
import type { TemporalLayer, TemporalLayerProperties } from "./mixins/TemporalLayer.js";
|
|
29
|
+
import type { TrackableLayer, TrackableLayerProperties } from "./mixins/TrackableLayer.js";
|
|
30
|
+
import type { DomainUnion } from "./support/types.js";
|
|
13
31
|
import type { PortalItemProperties } from "../portal/PortalItem.js";
|
|
32
|
+
import type { RendererUnion } from "../renderers/types.js";
|
|
14
33
|
import type { RequestOptions } from "../request/types.js";
|
|
34
|
+
import type { AttributeBinsQueryProperties } from "../rest/support/AttributeBinsQuery.js";
|
|
15
35
|
import type { QueryProperties } from "../rest/support/Query.js";
|
|
36
|
+
import type { CreatePopupTemplateOptions } from "../support/popupUtils.js";
|
|
16
37
|
import type { TimeZone } from "../time/types.js";
|
|
17
38
|
import type { AttributeTableTemplateProperties } from "../tables/AttributeTableTemplate.js";
|
|
18
39
|
import type { ElevationInfoProperties } from "../symbols/support/ElevationInfo.js";
|
|
19
40
|
import type { FieldProperties } from "./support/Field.js";
|
|
41
|
+
import type { LayerFloorInfoProperties } from "./support/LayerFloorInfo.js";
|
|
42
|
+
import type { LabelClassProperties } from "./support/LabelClass.js";
|
|
43
|
+
import type { PopupTemplateProperties } from "../PopupTemplate.js";
|
|
44
|
+
import type { HeatmapRendererProperties } from "../renderers/HeatmapRenderer.js";
|
|
45
|
+
import type { PieChartRendererProperties } from "../renderers/PieChartRenderer.js";
|
|
46
|
+
import type { DictionaryRendererProperties } from "../renderers/DictionaryRenderer.js";
|
|
47
|
+
import type { DotDensityRendererProperties } from "../renderers/DotDensityRenderer.js";
|
|
48
|
+
import type { UniqueValueRendererProperties } from "../renderers/UniqueValueRenderer.js";
|
|
49
|
+
import type { ClassBreaksRendererProperties } from "../renderers/ClassBreaksRenderer.js";
|
|
50
|
+
import type { SimpleRendererProperties } from "../renderers/SimpleRenderer.js";
|
|
20
51
|
import type { SpatialReferenceProperties } from "../geometry/SpatialReference.js";
|
|
21
|
-
import type { FeatureLayerProperties } from "./FeatureLayer.js";
|
|
22
52
|
|
|
23
|
-
export interface CSVLayerProperties extends
|
|
53
|
+
export interface CSVLayerProperties extends LayerProperties, PortalLayerProperties, OperationalLayerProperties, RefreshableLayerProperties, ScaleRangeLayerProperties, TrackableLayerProperties, TemporalLayerProperties, BlendLayerProperties, FeatureEffectLayerProperties, FeatureReductionLayerProperties, CustomParametersMixinProperties, DisplayFilteredLayerProperties, OrderedLayerProperties, Partial<Pick<CSVLayer, "copyright" | "definitionExpression" | "delimiter" | "displayField" | "labelsVisible" | "latitudeField" | "legendEnabled" | "longitudeField" | "objectIdField" | "outFields" | "popupEnabled" | "screenSizePerspectiveEnabled" | "url">> {
|
|
24
54
|
/**
|
|
25
55
|
* This property is used to configure the associated layer's [FeatureTable](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/). It is meant to configure how the columns display within the table in regard to visibility, column order, and sorting.
|
|
26
56
|
*
|
|
@@ -29,11 +59,8 @@ export interface CSVLayerProperties extends FeatureLayerProperties, Partial<Pick
|
|
|
29
59
|
* > This property differs from the [FeatureTable's tableTemplate](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/support/TableTemplate/) property. The `TableTemplate` provides more fine-grained control over how the table is rendered within the application by offering more advanced configurations such as custom cell rendering, column formatting, and more. `TableTemplate` is useful for application-level development that remains within an application. Use the `attributeTableTemplate` property to access the table's settings across different applications. By using this property, the settings can be saved within a webmap or layer. Please refer to the [AttributeTableTemplate](https://developers.arcgis.com/javascript/latest/references/core/tables/AttributeTableTemplate/) and [TableTemplate](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/support/TableTemplate/) documentation for more information.
|
|
30
60
|
*
|
|
31
61
|
* @since 4.31
|
|
32
|
-
* @see [Sample - FeatureTable Component](https://developers.arcgis.com/javascript/latest/sample-code/feature-table/)
|
|
33
62
|
*/
|
|
34
63
|
attributeTableTemplate?: AttributeTableTemplateProperties | null;
|
|
35
|
-
/** Copyright information for the layer. */
|
|
36
|
-
copyright?: string | null;
|
|
37
64
|
/**
|
|
38
65
|
* A list of custom parameters appended to the URL of all resources fetched by the layer.
|
|
39
66
|
* It's an object with key-value pairs where value is a string.
|
|
@@ -64,41 +91,6 @@ export interface CSVLayerProperties extends FeatureLayerProperties, Partial<Pick
|
|
|
64
91
|
* });
|
|
65
92
|
*/
|
|
66
93
|
customParameters?: CustomParameters | null;
|
|
67
|
-
/**
|
|
68
|
-
* The SQL where clause used to filter features on the client. Only the features that satisfy the definition
|
|
69
|
-
* expression are displayed in the [View](https://developers.arcgis.com/javascript/latest/references/core/views/View/). Setting a definition expression is useful
|
|
70
|
-
* when the dataset is large and you don't want to bring all features to the client for analysis.
|
|
71
|
-
* Definition expressions may be set when a layer is constructed prior to it loading in the view or
|
|
72
|
-
* after it has been added to the map. If the definition expression is set after the layer has been added to the map, the view will
|
|
73
|
-
* automatically refresh itself to display the features that satisfy the new definition expression.
|
|
74
|
-
*
|
|
75
|
-
* @since 4.7
|
|
76
|
-
* @example
|
|
77
|
-
* // Set definition expression in constructor to only display earthquakes magnitude 5.0 and greater
|
|
78
|
-
* const layer = new CSVLayer({
|
|
79
|
-
* url: "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_week.csv",
|
|
80
|
-
* definitionExpression: "mag >= 5"
|
|
81
|
-
* });
|
|
82
|
-
* @example
|
|
83
|
-
* // Set the definition expression directly on layer instance after it has loaded
|
|
84
|
-
* layer.definitionExpression = "mag >= 5";
|
|
85
|
-
* @example
|
|
86
|
-
* // Set definition expression in constructor to only display trees with scientific name Ulmus pumila
|
|
87
|
-
* const layer = new FeatureLayer({
|
|
88
|
-
* url: "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Landscape_Trees/FeatureServer/0",
|
|
89
|
-
* definitionExpression: "Sci_Name = 'Ulmus pumila'"
|
|
90
|
-
* });
|
|
91
|
-
* @example
|
|
92
|
-
* // Set the definition expression directly on layer instance to only display trees taller than 50ft
|
|
93
|
-
* layer.definitionExpression = "HEIGHT > 50";
|
|
94
|
-
*/
|
|
95
|
-
definitionExpression?: string | null;
|
|
96
|
-
/**
|
|
97
|
-
* The name of the layer's primary display field. The value of this property matches the name of one of the fields of the layer.
|
|
98
|
-
*
|
|
99
|
-
* @since 4.13
|
|
100
|
-
*/
|
|
101
|
-
displayField?: string | null;
|
|
102
94
|
/**
|
|
103
95
|
* Specifies how features are placed on the vertical axis (z). This property may only be used
|
|
104
96
|
* in a [SceneView](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/). See the [ElevationInfo sample](https://developers.arcgis.com/javascript/latest/sample-code/scene-elevationinfo/)
|
|
@@ -119,128 +111,68 @@ export interface CSVLayerProperties extends FeatureLayerProperties, Partial<Pick
|
|
|
119
111
|
* "name": "ObjectID",
|
|
120
112
|
* "alias": "ObjectID",
|
|
121
113
|
* "type": "oid"
|
|
122
|
-
* }),
|
|
114
|
+
* }),
|
|
115
|
+
* new Field({
|
|
123
116
|
* "name": "description",
|
|
124
117
|
* "alias": "Description",
|
|
125
118
|
* "type": "string"
|
|
126
|
-
* }),
|
|
119
|
+
* }),
|
|
120
|
+
* new Field ({
|
|
127
121
|
* "name": "title",
|
|
128
122
|
* "alias": "Title",
|
|
129
123
|
* "type": "string"
|
|
130
124
|
* })
|
|
131
125
|
* ];
|
|
132
|
-
* @see [FeatureLayer.source](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#source)
|
|
133
|
-
* @see [FeatureLayer.objectIdField](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#objectIdField)
|
|
134
|
-
* @see [Add an array of client-side features](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#client-side)
|
|
135
|
-
* @example
|
|
136
|
-
* // define each field's schema
|
|
137
|
-
* const fields = [
|
|
138
|
-
* new Field({
|
|
139
|
-
* name: "ObjectID",
|
|
140
|
-
* alias: "ObjectID",
|
|
141
|
-
* type: "oid"
|
|
142
|
-
* }), new Field({
|
|
143
|
-
* name: "description",
|
|
144
|
-
* alias: "Description",
|
|
145
|
-
* type: "string"
|
|
146
|
-
* }), new Field ({
|
|
147
|
-
* name: "title",
|
|
148
|
-
* alias: "Title",
|
|
149
|
-
* type: "string"
|
|
150
|
-
* })
|
|
151
|
-
* ];
|
|
152
|
-
*
|
|
153
|
-
* // See the sample snippet for the source and renderer properties
|
|
154
|
-
* const layer = new FeatureLayer({
|
|
155
|
-
* // geometryType and spatialReference are inferred
|
|
156
|
-
* // from the input source features
|
|
157
|
-
* source: features,
|
|
158
|
-
* // Object ID field is inferred from the fields array
|
|
159
|
-
* fields: fields,
|
|
160
|
-
* renderer: renderer
|
|
161
|
-
* });
|
|
162
126
|
*/
|
|
163
127
|
fields?: FieldProperties[];
|
|
164
128
|
/**
|
|
165
|
-
*
|
|
166
|
-
*
|
|
129
|
+
* When a layer is configured as floor-aware, it has a `floorInfo` property defined.
|
|
130
|
+
* A floor-aware layer is a layer that contains indoor GIS data representing features that
|
|
131
|
+
* can be located on a specific floor of a building.
|
|
167
132
|
*
|
|
168
|
-
*
|
|
169
|
-
* >
|
|
170
|
-
* > **Known Limitations**
|
|
171
|
-
* >
|
|
172
|
-
* > 3D [SceneViews](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/) only support displaying one [LabelClass](https://developers.arcgis.com/javascript/latest/references/core/layers/support/LabelClass/) per feature.
|
|
173
|
-
*
|
|
174
|
-
* @default true
|
|
175
|
-
* @see [labelingInfo](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/#labelingInfo)
|
|
133
|
+
* @since 4.19
|
|
176
134
|
*/
|
|
177
|
-
|
|
135
|
+
floorInfo?: LayerFloorInfoProperties | null;
|
|
178
136
|
/**
|
|
179
|
-
*
|
|
137
|
+
* The full extent of the layer.
|
|
180
138
|
*
|
|
181
|
-
* @default true
|
|
182
|
-
* @since 4.24
|
|
183
|
-
*/
|
|
184
|
-
legendEnabled?: boolean;
|
|
185
|
-
/**
|
|
186
|
-
* The name of an `oid` [field](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/#fields) containing
|
|
187
|
-
* a unique value or identifier for each feature in the layer.
|
|
188
|
-
*
|
|
189
|
-
* @since 4.11
|
|
190
|
-
* @see [fields](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/#fields)
|
|
191
|
-
* @see [Add an array of client-side features](https://developers.arcgis.com/javascript/latest/references/core/layers/mixins/FeatureLayerBase/#client-side)
|
|
192
139
|
* @example
|
|
193
|
-
* //
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
* fields: fields,
|
|
197
|
-
* objectIdField: "ObjectID", // field name of the Object IDs
|
|
198
|
-
* geometryType: "point",
|
|
199
|
-
* renderer: <renderer>
|
|
140
|
+
* // Once the layer loads, set the view's extent to the layer's full extent
|
|
141
|
+
* layer.when(function(){
|
|
142
|
+
* view.extent = layer.fullExtent;
|
|
200
143
|
* });
|
|
201
144
|
*/
|
|
202
|
-
|
|
145
|
+
fullExtent?: Extent | null;
|
|
203
146
|
/**
|
|
204
|
-
*
|
|
147
|
+
* The label definition for this layer, specified as an array of
|
|
148
|
+
* [LabelClass](https://developers.arcgis.com/javascript/latest/references/core/layers/support/LabelClass/). Use this property to specify
|
|
149
|
+
* labeling properties for the layer such as label expression, placement, and size.
|
|
205
150
|
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
* // Includes all fields from the service in the layer
|
|
216
|
-
* fl.outFields = ["*"];
|
|
217
|
-
* @example
|
|
218
|
-
* // Get the specified fields from the service in the layer
|
|
219
|
-
* // These fields will be added to FeatureLayerView.availableFields
|
|
220
|
-
* // along with rendering and labeling fields. Use these fields
|
|
221
|
-
* // for client-side filtering and querying.
|
|
222
|
-
* fl.outFields = ["NAME", "POP_2010", "FIPS", "AREA"];
|
|
223
|
-
* @example
|
|
224
|
-
* // set the outFields for the layer coming from webmap
|
|
225
|
-
* webmap.when(function () {
|
|
226
|
-
* layer = webmap.layers.at(1);
|
|
227
|
-
* layer.outFields = ["*"];
|
|
228
|
-
* });
|
|
151
|
+
* Multiple Label classes with different `where` clauses can be used to define several
|
|
152
|
+
* labels with varying styles on the same feature. Likewise, multiple label classes
|
|
153
|
+
* may be used to label different types of features
|
|
154
|
+
*
|
|
155
|
+
* > [!WARNING]
|
|
156
|
+
* >
|
|
157
|
+
* > **Known Limitations**
|
|
158
|
+
* >
|
|
159
|
+
* > 3D [SceneViews](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/) only support displaying one [LabelClass](https://developers.arcgis.com/javascript/latest/references/core/layers/support/LabelClass/) per feature.
|
|
229
160
|
*/
|
|
230
|
-
|
|
161
|
+
labelingInfo?: LabelClassProperties[] | null;
|
|
231
162
|
/**
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
*
|
|
163
|
+
* The popup template for the layer. When set on the layer, the `popupTemplate`
|
|
164
|
+
* allows users to access attributes and display their values in the view's Popup when a feature is selected
|
|
165
|
+
* using text and/or charts.
|
|
235
166
|
*
|
|
236
|
-
*
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
*
|
|
167
|
+
* A default popup template is automatically used if no `popupTemplate` has been defined when
|
|
168
|
+
* [Popup.defaultPopupTemplateEnabled](https://developers.arcgis.com/javascript/latest/references/core/widgets/Popup/#defaultPopupTemplateEnabled)
|
|
169
|
+
* is set to `true`.
|
|
170
|
+
*
|
|
171
|
+
* @see [createPopupTemplate()](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/#createPopupTemplate)
|
|
240
172
|
* @see [SceneView.popup](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#popup)
|
|
241
173
|
* @see [View2D.popup](https://developers.arcgis.com/javascript/latest/references/core/views/View2D/#popup)
|
|
242
174
|
*/
|
|
243
|
-
|
|
175
|
+
popupTemplate?: PopupTemplateProperties | null;
|
|
244
176
|
/**
|
|
245
177
|
* The portal item referencing the CSV file from which the CSVLayer is loaded.
|
|
246
178
|
*
|
|
@@ -326,55 +258,30 @@ export interface CSVLayerProperties extends FeatureLayerProperties, Partial<Pick
|
|
|
326
258
|
*/
|
|
327
259
|
portalItem?: PortalItemProperties | null;
|
|
328
260
|
/**
|
|
329
|
-
*
|
|
330
|
-
*
|
|
331
|
-
*
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
-
* @see [
|
|
335
|
-
* @
|
|
336
|
-
*
|
|
337
|
-
* layer
|
|
338
|
-
*
|
|
339
|
-
*
|
|
340
|
-
*
|
|
341
|
-
*
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
*
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
*
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
* Apply perspective scaling to screen-size symbols in a [SceneView](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/).
|
|
352
|
-
* When `true`, screen sized objects such as [icons](https://developers.arcgis.com/javascript/latest/references/core/symbols/IconSymbol3DLayer/),
|
|
353
|
-
* [labels](https://developers.arcgis.com/javascript/latest/references/core/symbols/LabelSymbol3D/) or [callouts](https://developers.arcgis.com/javascript/latest/references/core/symbols/callouts/Callout3D/) integrate
|
|
354
|
-
* better in the 3D scene by applying a certain perspective projection to the
|
|
355
|
-
* sizing of features. This only applies when using a [SceneView](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/).
|
|
356
|
-
*
|
|
357
|
-
* `layer.screenSizePerspectiveEnabled = true`
|
|
358
|
-
*
|
|
359
|
-
* 
|
|
360
|
-
*
|
|
361
|
-
* `layer.screenSizePerspectiveEnabled = false`
|
|
362
|
-
*
|
|
363
|
-
* 
|
|
364
|
-
*
|
|
365
|
-
* > [!WARNING]
|
|
366
|
-
* >
|
|
367
|
-
* > **Known Limitations**
|
|
368
|
-
* >
|
|
369
|
-
* > Screen size perspective is currently not optimized for situations where the camera is very near the ground, or for scenes
|
|
370
|
-
* > with visual elements located far from the ground surface. In these cases it may be better to turn off screen size perspective.
|
|
371
|
-
* > As screen size perspective changes the size based on distance to the camera, it should be set to false when using [size visual variables](https://developers.arcgis.com/javascript/latest/references/core/renderers/visualVariables/SizeVariable/).
|
|
372
|
-
*
|
|
373
|
-
* @default true
|
|
374
|
-
* @since 4.4
|
|
375
|
-
* @see [Sample: Point styles for cities](https://developers.arcgis.com/javascript/latest/sample-code/visualization-point-styles/)
|
|
261
|
+
* The renderer assigned to the layer. The renderer defines how to
|
|
262
|
+
* visualize each feature in the layer. Depending on the renderer type,
|
|
263
|
+
* features may be visualized with the same symbol, or with varying symbols
|
|
264
|
+
* based on the values of provided attribute fields or functions.
|
|
265
|
+
*
|
|
266
|
+
* @see [Visualization guide pages](https://developers.arcgis.com/javascript/latest/visualization/)
|
|
267
|
+
* @see [Data driven styles](https://developers.arcgis.com/javascript/latest/visualization/data-driven-styles)
|
|
268
|
+
* @example
|
|
269
|
+
* // all features in the layer will be visualized with
|
|
270
|
+
* // a 6pt black marker symbol and a thin, white outline
|
|
271
|
+
* layer.renderer = {
|
|
272
|
+
* type: "simple", // autocasts as new SimpleRenderer()
|
|
273
|
+
* symbol: {
|
|
274
|
+
* type: "simple-marker", // autocasts as new SimpleMarkerSymbol()
|
|
275
|
+
* size: 6,
|
|
276
|
+
* color: "black",
|
|
277
|
+
* outline: { // autocasts as new SimpleLineSymbol()
|
|
278
|
+
* width: 0.5,
|
|
279
|
+
* color: "white"
|
|
280
|
+
* }
|
|
281
|
+
* }
|
|
282
|
+
* };
|
|
376
283
|
*/
|
|
377
|
-
|
|
284
|
+
renderer?: (((SimpleRendererProperties & { type: "simple" }) | (ClassBreaksRendererProperties & { type: "class-breaks" }) | (UniqueValueRendererProperties & { type: "unique-value" }) | (DotDensityRendererProperties & { type: "dot-density" }) | (DictionaryRendererProperties & { type: "dictionary" }) | (PieChartRendererProperties & { type: "pie-chart" })) | (HeatmapRendererProperties & { type: "heatmap" })) | null;
|
|
378
285
|
/**
|
|
379
286
|
* The spatial reference of the layer. The default value is WGS84.
|
|
380
287
|
* This property can be set explicitly to project the longitude and latitude
|
|
@@ -390,7 +297,6 @@ export interface CSVLayerProperties extends FeatureLayerProperties, Partial<Pick
|
|
|
390
297
|
* > The browser must support [WebAssembly](https://caniuse.com/#feat=wasm)
|
|
391
298
|
* > if a spatial reference other than WGS84 or Web Mercator is specified.
|
|
392
299
|
*
|
|
393
|
-
* @default SpatialReference.WGS84
|
|
394
300
|
* @since 4.7
|
|
395
301
|
* @see [SpatialReference.WGS84](https://developers.arcgis.com/javascript/latest/references/core/geometry/SpatialReference/#WGS84)
|
|
396
302
|
* @example
|
|
@@ -410,53 +316,10 @@ export interface CSVLayerProperties extends FeatureLayerProperties, Partial<Pick
|
|
|
410
316
|
* If a layer is loaded as part of a webmap or a webscene, then the title of the layer as stored in the webmap/webscene will be used.
|
|
411
317
|
*/
|
|
412
318
|
title?: string | null;
|
|
413
|
-
/**
|
|
414
|
-
* The URL of the CSV file.
|
|
415
|
-
*
|
|
416
|
-
* @example
|
|
417
|
-
* const csvLayer = new CSVLayer({
|
|
418
|
-
* url: "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_week.csv",
|
|
419
|
-
* });
|
|
420
|
-
* @example
|
|
421
|
-
* // Pass data by a blob url to create a CSV layer.
|
|
422
|
-
* const csv = `name|year|latitude|Longitude
|
|
423
|
-
* aspen|2020|40.418|20.553
|
|
424
|
-
* birch|2018|-118.123|35.888`;
|
|
425
|
-
*
|
|
426
|
-
* const blob = new Blob([csv], {
|
|
427
|
-
* type: "plain/text"
|
|
428
|
-
* });
|
|
429
|
-
* let url = URL.createObjectURL(blob);
|
|
430
|
-
*
|
|
431
|
-
* const layer = new CSVLayer({
|
|
432
|
-
* url: url
|
|
433
|
-
* });
|
|
434
|
-
* @example
|
|
435
|
-
* // Hosted Feature Service on ArcGIS Online
|
|
436
|
-
* layer.url = "http://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/origins/FeatureServer/0";
|
|
437
|
-
* @example
|
|
438
|
-
* // Layer from Map Service on ArcGIS Server
|
|
439
|
-
* layer.url = "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/2";
|
|
440
|
-
* @example
|
|
441
|
-
* // Can also be used if URL points to service and not layer
|
|
442
|
-
* const layer = new FeatureLayer({
|
|
443
|
-
* // Notice that the url doesn't end with /2
|
|
444
|
-
* url: "http://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/MonterreyBayCanyon_WFL/FeatureServer",
|
|
445
|
-
* layerId: 2
|
|
446
|
-
* });
|
|
447
|
-
* @example
|
|
448
|
-
* // Non-spatial table in San Francisco incidents service.
|
|
449
|
-
* const table = new FeatureLayer({
|
|
450
|
-
* url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/SF311/FeatureServer/1"
|
|
451
|
-
* });
|
|
452
|
-
* // table must be loaded so it can be used in the app.
|
|
453
|
-
* table.load().then(function() {
|
|
454
|
-
* // table is loaded. ready to be queried.
|
|
455
|
-
* });
|
|
456
|
-
*/
|
|
457
|
-
url?: string | null;
|
|
458
319
|
}
|
|
459
320
|
|
|
321
|
+
export interface CSVLayerEvents extends RefreshableLayerEvents, LayerEvents {}
|
|
322
|
+
|
|
460
323
|
/**
|
|
461
324
|
* * [Overview](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/#overview)
|
|
462
325
|
* * [Creating a CSVLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/#creating-a-csvlayer)
|
|
@@ -548,7 +411,13 @@ export interface CSVLayerProperties extends FeatureLayerProperties, Partial<Pick
|
|
|
548
411
|
* @see [Query and filter guide](https://developers.arcgis.com/javascript/latest/query-filter/)
|
|
549
412
|
* @see [Map](https://developers.arcgis.com/javascript/latest/references/core/Map/)
|
|
550
413
|
*/
|
|
551
|
-
export default class CSVLayer extends
|
|
414
|
+
export default class CSVLayer extends CSVLayerSuperclass {
|
|
415
|
+
/**
|
|
416
|
+
* @deprecated
|
|
417
|
+
* Do not directly reference this property.
|
|
418
|
+
* Use EventNames and EventTypes helpers from \@arcgis/core/Evented
|
|
419
|
+
*/
|
|
420
|
+
"@eventTypes": CSVLayerEvents;
|
|
552
421
|
/**
|
|
553
422
|
* @example
|
|
554
423
|
* // Typical usage
|
|
@@ -556,31 +425,6 @@ export default class CSVLayer extends __FeatureLayerSansType {
|
|
|
556
425
|
* // URL to the CSV file
|
|
557
426
|
* url: "https://mydomain.com/files/POIs.csv"
|
|
558
427
|
* });
|
|
559
|
-
* @see [Client-side FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#client-side)
|
|
560
|
-
* @example
|
|
561
|
-
* // Typical usage
|
|
562
|
-
* // Create featurelayer from feature service
|
|
563
|
-
* const layer = new FeatureLayer({
|
|
564
|
-
* // URL to the service
|
|
565
|
-
* url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0"
|
|
566
|
-
* });
|
|
567
|
-
*
|
|
568
|
-
* // Typical usage
|
|
569
|
-
* // Create featurelayer from client-side graphics
|
|
570
|
-
* const layer = new FeatureLayer({
|
|
571
|
-
* source: graphics,
|
|
572
|
-
* fields: [{
|
|
573
|
-
* name: "ObjectID",
|
|
574
|
-
* alias: "ObjectID",
|
|
575
|
-
* type: "oid"
|
|
576
|
-
* }, {
|
|
577
|
-
* name: "place",
|
|
578
|
-
* alias: "Place",
|
|
579
|
-
* type: "string"
|
|
580
|
-
* }],
|
|
581
|
-
* objectIdField: "ObjectID",
|
|
582
|
-
* geometryType: "point"
|
|
583
|
-
* });
|
|
584
428
|
*/
|
|
585
429
|
constructor(properties?: CSVLayerProperties);
|
|
586
430
|
/**
|
|
@@ -591,7 +435,6 @@ export default class CSVLayer extends __FeatureLayerSansType {
|
|
|
591
435
|
* > This property differs from the [FeatureTable's tableTemplate](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/support/TableTemplate/) property. The `TableTemplate` provides more fine-grained control over how the table is rendered within the application by offering more advanced configurations such as custom cell rendering, column formatting, and more. `TableTemplate` is useful for application-level development that remains within an application. Use the `attributeTableTemplate` property to access the table's settings across different applications. By using this property, the settings can be saved within a webmap or layer. Please refer to the [AttributeTableTemplate](https://developers.arcgis.com/javascript/latest/references/core/tables/AttributeTableTemplate/) and [TableTemplate](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/support/TableTemplate/) documentation for more information.
|
|
592
436
|
*
|
|
593
437
|
* @since 4.31
|
|
594
|
-
* @see [Sample - FeatureTable Component](https://developers.arcgis.com/javascript/latest/sample-code/feature-table/)
|
|
595
438
|
*/
|
|
596
439
|
get attributeTableTemplate(): AttributeTableTemplate | null | undefined;
|
|
597
440
|
set attributeTableTemplate(value: AttributeTableTemplateProperties | null | undefined);
|
|
@@ -610,17 +453,10 @@ export default class CSVLayer extends __FeatureLayerSansType {
|
|
|
610
453
|
* }
|
|
611
454
|
* let query = layer.createQuery();
|
|
612
455
|
* query.outStatistics = [ sumPopulation ];
|
|
613
|
-
* const
|
|
614
|
-
* //
|
|
615
|
-
* }
|
|
616
|
-
*
|
|
617
|
-
* // Once the layer loads, check if the
|
|
618
|
-
* // supportsAdd operations is enabled on the layer
|
|
619
|
-
* await featureLayer.load();
|
|
620
|
-
* if (featureLayer.capabilities.operations.supportsAdd) {
|
|
621
|
-
* // if new features can be created in the layer
|
|
622
|
-
* // set up the UI for editing
|
|
623
|
-
* setupEditing();
|
|
456
|
+
* const { features } = await layer.queryFeatures(query);
|
|
457
|
+
* // display the total population
|
|
458
|
+
* console.log(`Total Population: ${features.at(0).attributes.Pop_2015_sum}`);
|
|
459
|
+
*
|
|
624
460
|
* }
|
|
625
461
|
*/
|
|
626
462
|
get capabilities(): FeatureLayerCapabilities;
|
|
@@ -661,34 +497,6 @@ export default class CSVLayer extends __FeatureLayerSansType {
|
|
|
661
497
|
* This property may be useful when constructing date or time [where clauses](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#date-query).
|
|
662
498
|
*
|
|
663
499
|
* @since 4.28
|
|
664
|
-
* @see [Wikipedia - List of tz database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
|
|
665
|
-
* @see [Date and time queries](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#date-query)
|
|
666
|
-
* @see [Date-time queries | Time zone properties](https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer/#time-zone-properties)
|
|
667
|
-
* @example
|
|
668
|
-
* const layer = new FeatureLayer({
|
|
669
|
-
* // layer's fields definition
|
|
670
|
-
* fields: [
|
|
671
|
-
* {
|
|
672
|
-
* name: "ObjectID",
|
|
673
|
-
* alias: "ObjectID",
|
|
674
|
-
* type: "oid"
|
|
675
|
-
* }, {
|
|
676
|
-
* name: "type",
|
|
677
|
-
* alias: "Type",
|
|
678
|
-
* type: "string"
|
|
679
|
-
* }, {
|
|
680
|
-
* name: "recordedDate",
|
|
681
|
-
* alias: "recordedDate",
|
|
682
|
-
* type: "date"
|
|
683
|
-
* }],
|
|
684
|
-
* dateFieldsTimeZone: "America/New_York", // date field values in are eastern time zone
|
|
685
|
-
* objectIdField: "ObjectID", // inferred from fields array if not specified
|
|
686
|
-
* geometryType: "point", // geometryType and spatialReference are inferred from the first feature
|
|
687
|
-
* // in the source array if they are not specified.
|
|
688
|
-
* spatialReference: { wkid: 4326 },
|
|
689
|
-
* source: graphics // an array of graphics with geometry and attributes
|
|
690
|
-
* });
|
|
691
|
-
* map.add(layer);
|
|
692
500
|
*/
|
|
693
501
|
get dateFieldsTimeZone(): TimeZone | null | undefined;
|
|
694
502
|
/**
|
|
@@ -709,15 +517,6 @@ export default class CSVLayer extends __FeatureLayerSansType {
|
|
|
709
517
|
* @example
|
|
710
518
|
* // Set the definition expression directly on layer instance after it has loaded
|
|
711
519
|
* layer.definitionExpression = "mag >= 5";
|
|
712
|
-
* @example
|
|
713
|
-
* // Set definition expression in constructor to only display trees with scientific name Ulmus pumila
|
|
714
|
-
* const layer = new FeatureLayer({
|
|
715
|
-
* url: "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Landscape_Trees/FeatureServer/0",
|
|
716
|
-
* definitionExpression: "Sci_Name = 'Ulmus pumila'"
|
|
717
|
-
* });
|
|
718
|
-
* @example
|
|
719
|
-
* // Set the definition expression directly on layer instance to only display trees taller than 50ft
|
|
720
|
-
* layer.definitionExpression = "HEIGHT > 50";
|
|
721
520
|
*/
|
|
722
521
|
accessor definitionExpression: string | null | undefined;
|
|
723
522
|
/**
|
|
@@ -759,46 +558,18 @@ export default class CSVLayer extends __FeatureLayerSansType {
|
|
|
759
558
|
* "name": "ObjectID",
|
|
760
559
|
* "alias": "ObjectID",
|
|
761
560
|
* "type": "oid"
|
|
762
|
-
* }),
|
|
561
|
+
* }),
|
|
562
|
+
* new Field({
|
|
763
563
|
* "name": "description",
|
|
764
564
|
* "alias": "Description",
|
|
765
565
|
* "type": "string"
|
|
766
|
-
* }),
|
|
566
|
+
* }),
|
|
567
|
+
* new Field ({
|
|
767
568
|
* "name": "title",
|
|
768
569
|
* "alias": "Title",
|
|
769
570
|
* "type": "string"
|
|
770
571
|
* })
|
|
771
572
|
* ];
|
|
772
|
-
* @see [FeatureLayer.source](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#source)
|
|
773
|
-
* @see [FeatureLayer.objectIdField](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#objectIdField)
|
|
774
|
-
* @see [Add an array of client-side features](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#client-side)
|
|
775
|
-
* @example
|
|
776
|
-
* // define each field's schema
|
|
777
|
-
* const fields = [
|
|
778
|
-
* new Field({
|
|
779
|
-
* name: "ObjectID",
|
|
780
|
-
* alias: "ObjectID",
|
|
781
|
-
* type: "oid"
|
|
782
|
-
* }), new Field({
|
|
783
|
-
* name: "description",
|
|
784
|
-
* alias: "Description",
|
|
785
|
-
* type: "string"
|
|
786
|
-
* }), new Field ({
|
|
787
|
-
* name: "title",
|
|
788
|
-
* alias: "Title",
|
|
789
|
-
* type: "string"
|
|
790
|
-
* })
|
|
791
|
-
* ];
|
|
792
|
-
*
|
|
793
|
-
* // See the sample snippet for the source and renderer properties
|
|
794
|
-
* const layer = new FeatureLayer({
|
|
795
|
-
* // geometryType and spatialReference are inferred
|
|
796
|
-
* // from the input source features
|
|
797
|
-
* source: features,
|
|
798
|
-
* // Object ID field is inferred from the fields array
|
|
799
|
-
* fields: fields,
|
|
800
|
-
* renderer: renderer
|
|
801
|
-
* });
|
|
802
573
|
*/
|
|
803
574
|
get fields(): Field[];
|
|
804
575
|
set fields(value: FieldProperties[]);
|
|
@@ -814,21 +585,32 @@ export default class CSVLayer extends __FeatureLayerSansType {
|
|
|
814
585
|
* if (field) {
|
|
815
586
|
* console.log(field.name); // SomeField
|
|
816
587
|
* }
|
|
817
|
-
* @example
|
|
818
|
-
* // lookup a field by name. name is case-insensitive
|
|
819
|
-
* const field = layer.fieldsIndex.get("SoMeFiEld");
|
|
820
|
-
*
|
|
821
|
-
* if (field) {
|
|
822
|
-
* console.log(field.name); // SomeField
|
|
823
|
-
* }
|
|
824
588
|
*/
|
|
825
589
|
get fieldsIndex(): FieldsIndex<Field>;
|
|
590
|
+
/**
|
|
591
|
+
* When a layer is configured as floor-aware, it has a `floorInfo` property defined.
|
|
592
|
+
* A floor-aware layer is a layer that contains indoor GIS data representing features that
|
|
593
|
+
* can be located on a specific floor of a building.
|
|
594
|
+
*
|
|
595
|
+
* @since 4.19
|
|
596
|
+
*/
|
|
597
|
+
get floorInfo(): LayerFloorInfo | null | undefined;
|
|
598
|
+
set floorInfo(value: LayerFloorInfoProperties | null | undefined);
|
|
599
|
+
/**
|
|
600
|
+
* The full extent of the layer.
|
|
601
|
+
*
|
|
602
|
+
* @example
|
|
603
|
+
* // Once the layer loads, set the view's extent to the layer's full extent
|
|
604
|
+
* layer.when(function(){
|
|
605
|
+
* view.extent = layer.fullExtent;
|
|
606
|
+
* });
|
|
607
|
+
*/
|
|
608
|
+
accessor fullExtent: Extent | null | undefined;
|
|
826
609
|
/**
|
|
827
610
|
* The geometry type of features in the CSVLayer. CSVLayer only supports [Point](https://developers.arcgis.com/javascript/latest/references/core/geometry/Point/) geometry type.
|
|
828
611
|
* The geometry type is `null` if [isTable](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/#isTable) is `true`.
|
|
829
612
|
*
|
|
830
613
|
* @since 4.24
|
|
831
|
-
* @see [Add an array of client-side features](https://developers.arcgis.com/javascript/latest/references/core/layers/mixins/FeatureLayerBase/#client-side)
|
|
832
614
|
*/
|
|
833
615
|
get geometryType(): "point";
|
|
834
616
|
/**
|
|
@@ -838,18 +620,30 @@ export default class CSVLayer extends __FeatureLayerSansType {
|
|
|
838
620
|
*
|
|
839
621
|
* Non-spatial table instance can be created from the [url](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/#url) and the table must be loaded by calling [load()](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/#load) method.
|
|
840
622
|
*
|
|
841
|
-
* @default false
|
|
842
623
|
* @since 4.24
|
|
843
624
|
* @see [Map.tables](https://developers.arcgis.com/javascript/latest/references/core/Map/#tables)
|
|
844
625
|
* @see [WebMap.tables](https://developers.arcgis.com/javascript/latest/references/core/WebMap/#tables)
|
|
845
626
|
* @see [Map.allTables](https://developers.arcgis.com/javascript/latest/references/core/Map/#allTables)
|
|
846
627
|
* @see [WebMap.allTables](https://developers.arcgis.com/javascript/latest/references/core/WebMap/#allTables)
|
|
847
|
-
* @see [Map.tables](https://developers.arcgis.com/javascript/latest/references/core/Map/#tables)
|
|
848
|
-
* @see [WebMap.tables](https://developers.arcgis.com/javascript/latest/references/core/WebMap/#tables)
|
|
849
|
-
* @see [Map.allTables](https://developers.arcgis.com/javascript/latest/references/core/Map/#allTables)
|
|
850
|
-
* @see [WebMap.allTables](https://developers.arcgis.com/javascript/latest/references/core/WebMap/#allTables)
|
|
851
628
|
*/
|
|
852
629
|
get isTable(): boolean;
|
|
630
|
+
/**
|
|
631
|
+
* The label definition for this layer, specified as an array of
|
|
632
|
+
* [LabelClass](https://developers.arcgis.com/javascript/latest/references/core/layers/support/LabelClass/). Use this property to specify
|
|
633
|
+
* labeling properties for the layer such as label expression, placement, and size.
|
|
634
|
+
*
|
|
635
|
+
* Multiple Label classes with different `where` clauses can be used to define several
|
|
636
|
+
* labels with varying styles on the same feature. Likewise, multiple label classes
|
|
637
|
+
* may be used to label different types of features
|
|
638
|
+
*
|
|
639
|
+
* > [!WARNING]
|
|
640
|
+
* >
|
|
641
|
+
* > **Known Limitations**
|
|
642
|
+
* >
|
|
643
|
+
* > 3D [SceneViews](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/) only support displaying one [LabelClass](https://developers.arcgis.com/javascript/latest/references/core/layers/support/LabelClass/) per feature.
|
|
644
|
+
*/
|
|
645
|
+
get labelingInfo(): LabelClass[] | null | undefined;
|
|
646
|
+
set labelingInfo(value: LabelClassProperties[] | null | undefined);
|
|
853
647
|
/**
|
|
854
648
|
* Indicates whether to display labels for this layer. If `true`, labels will
|
|
855
649
|
* appear as defined in the [labelingInfo](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/#labelingInfo) property.
|
|
@@ -866,7 +660,7 @@ export default class CSVLayer extends __FeatureLayerSansType {
|
|
|
866
660
|
accessor labelsVisible: boolean;
|
|
867
661
|
/**
|
|
868
662
|
* The latitude field name.
|
|
869
|
-
* If not specified, the API will look for following field names in the CSV source:
|
|
663
|
+
* If not specified, the API will look for the following field names in the CSV source:
|
|
870
664
|
* "lat", "latitude", "y", "ycenter", "latitude83", "latdecdeg", "point-y".
|
|
871
665
|
*/
|
|
872
666
|
accessor latitudeField: string | null | undefined;
|
|
@@ -874,59 +668,31 @@ export default class CSVLayer extends __FeatureLayerSansType {
|
|
|
874
668
|
* Indicates whether the layer will be included in the legend.
|
|
875
669
|
*
|
|
876
670
|
* @default true
|
|
877
|
-
* @since 4.24
|
|
878
671
|
*/
|
|
879
672
|
accessor legendEnabled: boolean;
|
|
880
673
|
/**
|
|
881
674
|
* The longitude field name.
|
|
882
|
-
* If not specified, the API will look for following field names in the CSV source:
|
|
675
|
+
* If not specified, the API will look for the following field names in the CSV source:
|
|
883
676
|
* "lon", "lng", "long", "longitude", "x", "xcenter", "longitude83", "longdecdeg", "point-x".
|
|
884
677
|
*/
|
|
885
678
|
accessor longitudeField: string | null | undefined;
|
|
886
679
|
/**
|
|
887
|
-
* The name of
|
|
680
|
+
* The name of the layer's `oid` [field](https://developers.arcgis.com/javascript/latest/references/core/layers/support/Field/) containing
|
|
888
681
|
* a unique value or identifier for each feature in the layer.
|
|
889
682
|
*
|
|
890
683
|
* @since 4.11
|
|
891
684
|
* @see [fields](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/#fields)
|
|
892
|
-
* @see [Add an array of client-side features](https://developers.arcgis.com/javascript/latest/references/core/layers/mixins/FeatureLayerBase/#client-side)
|
|
893
|
-
* @example
|
|
894
|
-
* // See the sample snippet for the source and fields properties
|
|
895
|
-
* const layer = new FeatureLayer({
|
|
896
|
-
* source: features,
|
|
897
|
-
* fields: fields,
|
|
898
|
-
* objectIdField: "ObjectID", // field name of the Object IDs
|
|
899
|
-
* geometryType: "point",
|
|
900
|
-
* renderer: <renderer>
|
|
901
|
-
* });
|
|
902
685
|
*/
|
|
903
686
|
accessor objectIdField: string;
|
|
904
687
|
/**
|
|
905
|
-
* An array of field names to include in the CSVLayer.
|
|
688
|
+
* An array of field names to include in the CSVLayer.
|
|
906
689
|
*
|
|
907
690
|
* @example
|
|
908
|
-
* // Use all fields
|
|
691
|
+
* // Use all fields
|
|
909
692
|
* layer.outFields = ["*"];
|
|
910
693
|
* @example
|
|
911
694
|
* // Use a subset of fields
|
|
912
695
|
* layer.outFields = ["NAME", "POP_2016", "FIPS"];
|
|
913
|
-
* @see [FeatureLayerView.availableFields](https://developers.arcgis.com/javascript/latest/references/core/views/layers/FeatureLayerView/#availableFields)
|
|
914
|
-
* @see [fieldUtils](https://developers.arcgis.com/javascript/latest/references/core/layers/support/fieldUtils/)
|
|
915
|
-
* @example
|
|
916
|
-
* // Includes all fields from the service in the layer
|
|
917
|
-
* fl.outFields = ["*"];
|
|
918
|
-
* @example
|
|
919
|
-
* // Get the specified fields from the service in the layer
|
|
920
|
-
* // These fields will be added to FeatureLayerView.availableFields
|
|
921
|
-
* // along with rendering and labeling fields. Use these fields
|
|
922
|
-
* // for client-side filtering and querying.
|
|
923
|
-
* fl.outFields = ["NAME", "POP_2010", "FIPS", "AREA"];
|
|
924
|
-
* @example
|
|
925
|
-
* // set the outFields for the layer coming from webmap
|
|
926
|
-
* webmap.when(function () {
|
|
927
|
-
* layer = webmap.layers.at(1);
|
|
928
|
-
* layer.outFields = ["*"];
|
|
929
|
-
* });
|
|
930
696
|
*/
|
|
931
697
|
accessor outFields: string[] | null | undefined;
|
|
932
698
|
/**
|
|
@@ -937,11 +703,23 @@ export default class CSVLayer extends __FeatureLayerSansType {
|
|
|
937
703
|
* @default true
|
|
938
704
|
* @see [SceneView.popup](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#popup)
|
|
939
705
|
* @see [View2D.popup](https://developers.arcgis.com/javascript/latest/references/core/views/View2D/#popup)
|
|
940
|
-
|
|
706
|
+
*/
|
|
707
|
+
accessor popupEnabled: boolean;
|
|
708
|
+
/**
|
|
709
|
+
* The popup template for the layer. When set on the layer, the `popupTemplate`
|
|
710
|
+
* allows users to access attributes and display their values in the view's Popup when a feature is selected
|
|
711
|
+
* using text and/or charts.
|
|
712
|
+
*
|
|
713
|
+
* A default popup template is automatically used if no `popupTemplate` has been defined when
|
|
714
|
+
* [Popup.defaultPopupTemplateEnabled](https://developers.arcgis.com/javascript/latest/references/core/widgets/Popup/#defaultPopupTemplateEnabled)
|
|
715
|
+
* is set to `true`.
|
|
716
|
+
*
|
|
717
|
+
* @see [createPopupTemplate()](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/#createPopupTemplate)
|
|
941
718
|
* @see [SceneView.popup](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#popup)
|
|
942
719
|
* @see [View2D.popup](https://developers.arcgis.com/javascript/latest/references/core/views/View2D/#popup)
|
|
943
720
|
*/
|
|
944
|
-
|
|
721
|
+
get popupTemplate(): PopupTemplate | null | undefined;
|
|
722
|
+
set popupTemplate(value: PopupTemplateProperties | null | undefined);
|
|
945
723
|
/**
|
|
946
724
|
* The portal item referencing the CSV file from which the CSVLayer is loaded.
|
|
947
725
|
*
|
|
@@ -1028,27 +806,31 @@ export default class CSVLayer extends __FeatureLayerSansType {
|
|
|
1028
806
|
get portalItem(): PortalItem | null | undefined;
|
|
1029
807
|
set portalItem(value: PortalItemProperties | null | undefined);
|
|
1030
808
|
/**
|
|
1031
|
-
*
|
|
1032
|
-
*
|
|
1033
|
-
*
|
|
1034
|
-
*
|
|
1035
|
-
*
|
|
1036
|
-
* @see [
|
|
1037
|
-
* @
|
|
1038
|
-
*
|
|
1039
|
-
* layer
|
|
1040
|
-
*
|
|
1041
|
-
*
|
|
1042
|
-
*
|
|
1043
|
-
*
|
|
1044
|
-
*
|
|
1045
|
-
*
|
|
1046
|
-
*
|
|
1047
|
-
*
|
|
1048
|
-
*
|
|
1049
|
-
*
|
|
809
|
+
* The renderer assigned to the layer. The renderer defines how to
|
|
810
|
+
* visualize each feature in the layer. Depending on the renderer type,
|
|
811
|
+
* features may be visualized with the same symbol, or with varying symbols
|
|
812
|
+
* based on the values of provided attribute fields or functions.
|
|
813
|
+
*
|
|
814
|
+
* @see [Visualization guide pages](https://developers.arcgis.com/javascript/latest/visualization/)
|
|
815
|
+
* @see [Data driven styles](https://developers.arcgis.com/javascript/latest/visualization/data-driven-styles)
|
|
816
|
+
* @example
|
|
817
|
+
* // all features in the layer will be visualized with
|
|
818
|
+
* // a 6pt black marker symbol and a thin, white outline
|
|
819
|
+
* layer.renderer = {
|
|
820
|
+
* type: "simple", // autocasts as new SimpleRenderer()
|
|
821
|
+
* symbol: {
|
|
822
|
+
* type: "simple-marker", // autocasts as new SimpleMarkerSymbol()
|
|
823
|
+
* size: 6,
|
|
824
|
+
* color: "black",
|
|
825
|
+
* outline: { // autocasts as new SimpleLineSymbol()
|
|
826
|
+
* width: 0.5,
|
|
827
|
+
* color: "white"
|
|
828
|
+
* }
|
|
829
|
+
* }
|
|
830
|
+
* };
|
|
1050
831
|
*/
|
|
1051
|
-
|
|
832
|
+
get renderer(): RendererUnion | null | undefined;
|
|
833
|
+
set renderer(value: (((SimpleRendererProperties & { type: "simple" }) | (ClassBreaksRendererProperties & { type: "class-breaks" }) | (UniqueValueRendererProperties & { type: "unique-value" }) | (DotDensityRendererProperties & { type: "dot-density" }) | (DictionaryRendererProperties & { type: "dictionary" }) | (PieChartRendererProperties & { type: "pie-chart" })) | (HeatmapRendererProperties & { type: "heatmap" })) | null | undefined);
|
|
1052
834
|
/**
|
|
1053
835
|
* Apply perspective scaling to screen-size symbols in a [SceneView](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/).
|
|
1054
836
|
* When `true`, screen sized objects such as [icons](https://developers.arcgis.com/javascript/latest/references/core/symbols/IconSymbol3DLayer/),
|
|
@@ -1074,7 +856,6 @@ export default class CSVLayer extends __FeatureLayerSansType {
|
|
|
1074
856
|
*
|
|
1075
857
|
* @default true
|
|
1076
858
|
* @since 4.4
|
|
1077
|
-
* @see [Sample: Point styles for cities](https://developers.arcgis.com/javascript/latest/sample-code/visualization-point-styles/)
|
|
1078
859
|
*/
|
|
1079
860
|
accessor screenSizePerspectiveEnabled: boolean;
|
|
1080
861
|
/**
|
|
@@ -1092,7 +873,6 @@ export default class CSVLayer extends __FeatureLayerSansType {
|
|
|
1092
873
|
* > The browser must support [WebAssembly](https://caniuse.com/#feat=wasm)
|
|
1093
874
|
* > if a spatial reference other than WGS84 or Web Mercator is specified.
|
|
1094
875
|
*
|
|
1095
|
-
* @default SpatialReference.WGS84
|
|
1096
876
|
* @since 4.7
|
|
1097
877
|
* @see [SpatialReference.WGS84](https://developers.arcgis.com/javascript/latest/references/core/geometry/SpatialReference/#WGS84)
|
|
1098
878
|
* @example
|
|
@@ -1136,30 +916,135 @@ export default class CSVLayer extends __FeatureLayerSansType {
|
|
|
1136
916
|
* const layer = new CSVLayer({
|
|
1137
917
|
* url: url
|
|
1138
918
|
* });
|
|
919
|
+
*/
|
|
920
|
+
accessor url: string | null | undefined;
|
|
921
|
+
/**
|
|
922
|
+
* Creates a popup template for the layer, populated with all the fields of the layer.
|
|
923
|
+
*
|
|
924
|
+
* @param options - Options for creating the popup template.
|
|
925
|
+
* @returns The popup template, or `null` if the layer does not
|
|
926
|
+
* have any fields.
|
|
927
|
+
*/
|
|
928
|
+
createPopupTemplate(options?: CreatePopupTemplateOptions): PopupTemplate | null | undefined;
|
|
929
|
+
/**
|
|
930
|
+
* Creates query parameter object that can be used to fetch features that
|
|
931
|
+
* satisfy the layer's configurations such as [definitionExpression](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/#definitionExpression).
|
|
932
|
+
* It sets the query parameter's [Query.outFields](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#outFields) property to `["*"]`.
|
|
933
|
+
*
|
|
934
|
+
* @returns The query object representing the layer's definition expression
|
|
935
|
+
* and other configurations.
|
|
1139
936
|
* @example
|
|
1140
|
-
* //
|
|
1141
|
-
*
|
|
1142
|
-
*
|
|
1143
|
-
*
|
|
1144
|
-
*
|
|
1145
|
-
*
|
|
1146
|
-
* //
|
|
1147
|
-
*
|
|
1148
|
-
*
|
|
1149
|
-
*
|
|
1150
|
-
*
|
|
937
|
+
* // Get a query object for the layer's current configuration
|
|
938
|
+
* // queryParams.outFields will be set to ["*"] to get values
|
|
939
|
+
* // for all available fields.
|
|
940
|
+
* const queryParams = layer.createQuery();
|
|
941
|
+
* // set a geometry for filtering features by a region of interest
|
|
942
|
+
* queryParams.geometry = extentForRegionOfInterest;
|
|
943
|
+
* // Add to the layer's current definitionExpression
|
|
944
|
+
* queryParams.where = queryParams.where + " AND TYPE = 'Extreme'";
|
|
945
|
+
*
|
|
946
|
+
* // query the layer with the modified params object
|
|
947
|
+
* layer.queryFeatures(queryParams).then(function(results){
|
|
948
|
+
* // prints the array of result graphics to the console
|
|
949
|
+
* console.log(results.features);
|
|
1151
950
|
* });
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
*
|
|
951
|
+
*/
|
|
952
|
+
createQuery(): Query;
|
|
953
|
+
/**
|
|
954
|
+
* Returns a [Field](https://developers.arcgis.com/javascript/latest/references/core/layers/support/Field/) based on a case-insensitive name search.
|
|
955
|
+
*
|
|
956
|
+
* @param fieldName - The name of the field.
|
|
957
|
+
* @returns The matching field or `undefined` if not found.
|
|
958
|
+
* @see [GeoJSONLayer.fields](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/#fields)
|
|
959
|
+
*/
|
|
960
|
+
getField(fieldName: string): Field | null | undefined;
|
|
961
|
+
/**
|
|
962
|
+
* Returns the Domain associated with the given field name. The domain can be either a CodedValueDomain or RangeDomain.
|
|
963
|
+
*
|
|
964
|
+
* @param fieldName - Name of the field.
|
|
965
|
+
* @param options - An object with the following properties.
|
|
966
|
+
* @returns The Domain associated with the given field name for the given feature.
|
|
967
|
+
*/
|
|
968
|
+
getFieldDomain(fieldName: string, options?: FieldDomainOptions): DomainUnion | null | undefined;
|
|
969
|
+
/**
|
|
970
|
+
* Executes a [AttributeBinsQuery](https://developers.arcgis.com/javascript/latest/references/core/rest/support/AttributeBinsQuery/) against a the layer, which groups features into bins based on ranges in numeric or date fields, and returns a
|
|
971
|
+
* [AttributeBinsFeatureSet](https://developers.arcgis.com/javascript/latest/references/core/rest/support/AttributeBinsFeatureSet/) containing the series of bins. Please refer to the [AttributeBinsQuery](https://developers.arcgis.com/javascript/latest/references/core/rest/support/AttributeBinsQuery/) document for more detailed information
|
|
972
|
+
* on how to configure the bin parameters.
|
|
973
|
+
*
|
|
974
|
+
* Binned data can condense complex information into meaningful insight. This query allows you to classify data into meaningful categories and summarize the data within each bin with summary statistics.
|
|
975
|
+
* Binned data can be effectively visualized in histograms (or bar charts), providing clearer insights into data distributions and trends.
|
|
976
|
+
* It can reveal underlying patterns that might be obscured in raw data. For example, bins can show concentrations of values in common ranges.
|
|
977
|
+
*
|
|
978
|
+
* > [!WARNING]
|
|
979
|
+
* >
|
|
980
|
+
* > **Notes**
|
|
981
|
+
* >
|
|
982
|
+
* > The `queryAttributeBins()` method is unrelated to querying bins in [FeatureReductionBinning](https://developers.arcgis.com/javascript/latest/references/core/layers/support/FeatureReductionBinning/).
|
|
983
|
+
*
|
|
984
|
+
* @param binsQuery - Specifies the parameters of the `queryAttributeBins()` operation. The [AttributeBinsQuery.binParameters](https://developers.arcgis.com/javascript/latest/references/core/rest/support/AttributeBinsQuery/#binParameters) property must be set.
|
|
985
|
+
* @param options - An object with the following properties.
|
|
986
|
+
* @returns When resolved, returns a [FeatureSet](https://developers.arcgis.com/javascript/latest/references/core/rest/support/FeatureSet/) containing
|
|
987
|
+
* a series of bins. Each feature in the [AttributeBinsFeatureSet](https://developers.arcgis.com/javascript/latest/references/core/rest/support/AttributeBinsFeatureSet/) represents a bin. The attributes of each feature contains statistics summarizing the data in the bin, including count, average, standard deviation, etc.
|
|
988
|
+
* @since 4.32
|
|
989
|
+
* @see [Sample - Attribute Bins Query](https://developers.arcgis.com/javascript/latest/sample-code/query-attribute-bins/)
|
|
990
|
+
* @see [AttributeBinsQuery](https://developers.arcgis.com/javascript/latest/references/core/rest/support/AttributeBinsQuery/)
|
|
991
|
+
* @example
|
|
992
|
+
* // Query the temperature field in the layer and create a histogram
|
|
993
|
+
* // Analyze temperature data over a year, create 100 bins for different temperature ranges
|
|
994
|
+
* // to assess frequency and identify patterns.
|
|
995
|
+
* const binQuery = new AttributeBinsQuery({
|
|
996
|
+
* where: "UnitTop = 0",
|
|
997
|
+
* binParameters: new AutoIntervalBinParameters({
|
|
998
|
+
* bins: 100,
|
|
999
|
+
* field: "temp",
|
|
1000
|
+
* start: 0, // lowest temp value to be included in the bin query
|
|
1001
|
+
* end: 30 // highest temp value to be included
|
|
1002
|
+
* })
|
|
1156
1003
|
* });
|
|
1157
|
-
*
|
|
1158
|
-
*
|
|
1159
|
-
*
|
|
1004
|
+
*
|
|
1005
|
+
* layer.queryAttributeBins(query).then((results) => {
|
|
1006
|
+
* const bins = results.features.map((bin) => {
|
|
1007
|
+
* return {
|
|
1008
|
+
* minValue: bin.attributes.lowerBoundary,
|
|
1009
|
+
* maxValue: bin.attributes.upperBoundary,
|
|
1010
|
+
* count: bin.attributes.temperature_count,
|
|
1011
|
+
* };
|
|
1012
|
+
* });
|
|
1013
|
+
*
|
|
1014
|
+
* // get the lower boundary of the first bin
|
|
1015
|
+
* const min = results.features[0].attributes.lowerBoundary;
|
|
1016
|
+
* // get the upper boundary of the last bin
|
|
1017
|
+
* const max = results.features[results.features.length - 1].attributes.upperBoundary;
|
|
1018
|
+
* // calculate the average for the bins
|
|
1019
|
+
* const average = results.features[0].attributes.lowerBoundary + results.features[results.features.length - 1].attributes.upperBoundary) / 2;
|
|
1020
|
+
*
|
|
1021
|
+
* const histogram = new Histogram({
|
|
1022
|
+
* container: "histogramDiv",
|
|
1023
|
+
* bins: bins,
|
|
1024
|
+
* min: min,
|
|
1025
|
+
* max: max,
|
|
1026
|
+
* average: average,
|
|
1027
|
+
* barCreatedFunction:(index, element) => {
|
|
1028
|
+
* element.setAttribute("fill", "#FFA500");
|
|
1029
|
+
* element.setAttribute("opacity", 0.5);
|
|
1030
|
+
* },
|
|
1031
|
+
* labelFormatFunction: (value, type) => {
|
|
1032
|
+
* return (Math.round(value)).toLocaleString();
|
|
1033
|
+
* },
|
|
1034
|
+
* dataLines: [{
|
|
1035
|
+
* value: histogram.min,
|
|
1036
|
+
* label: histogram.min.toLocaleString()
|
|
1037
|
+
* }, {
|
|
1038
|
+
* value: histogram.average,
|
|
1039
|
+
* label: histogram.average.toLocaleString()
|
|
1040
|
+
* }, {
|
|
1041
|
+
* value: histogram.max,
|
|
1042
|
+
* label: histogram.max.toLocaleString()
|
|
1043
|
+
* }]
|
|
1044
|
+
* });
|
|
1160
1045
|
* });
|
|
1161
1046
|
*/
|
|
1162
|
-
|
|
1047
|
+
queryAttributeBins(binsQuery: AttributeBinsQueryProperties, options?: RequestOptions): Promise<AttributeBinsFeatureSet>;
|
|
1163
1048
|
/**
|
|
1164
1049
|
* Executes a [Query](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/) against the CSV data and
|
|
1165
1050
|
* returns the [Extent](https://developers.arcgis.com/javascript/latest/references/core/geometry/Extent/) of features that satisfy the query. If no
|
|
@@ -1200,25 +1085,6 @@ export default class CSVLayer extends __FeatureLayerSansType {
|
|
|
1200
1085
|
* console.log(error)
|
|
1201
1086
|
* });
|
|
1202
1087
|
* });
|
|
1203
|
-
* @see [Sample - Zoom to extent of all features](https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-queryextent/)
|
|
1204
|
-
* @example
|
|
1205
|
-
* // Queries for the extent of all features matching the layer's configurations
|
|
1206
|
-
* // e.g. definitionExpression
|
|
1207
|
-
* layer.queryExtent().then(function(results){
|
|
1208
|
-
* // go to the extent of the results satisfying the query
|
|
1209
|
-
* view.goTo(results.extent);
|
|
1210
|
-
* });
|
|
1211
|
-
* @example
|
|
1212
|
-
* const layer = new FeatureLayer({
|
|
1213
|
-
* url: fsUrl // points to a Feature Service layer url
|
|
1214
|
-
* });
|
|
1215
|
-
*
|
|
1216
|
-
* const query = new Query();
|
|
1217
|
-
* query.where = "region = 'Southern California'";
|
|
1218
|
-
*
|
|
1219
|
-
* layer.queryExtent(query).then((results) =>{
|
|
1220
|
-
* view.goTo(results.extent); // go to the extent of the results satisfying the query
|
|
1221
|
-
* });
|
|
1222
1088
|
*/
|
|
1223
1089
|
queryExtent(query?: QueryProperties | null | undefined, options?: RequestOptions): Promise<{
|
|
1224
1090
|
count: number;
|
|
@@ -1255,24 +1121,6 @@ export default class CSVLayer extends __FeatureLayerSansType {
|
|
|
1255
1121
|
* .catch(function (error) {
|
|
1256
1122
|
* console.log(error)
|
|
1257
1123
|
* });
|
|
1258
|
-
* @see [Sample - Query features from a FeatureLayer](https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query/)
|
|
1259
|
-
* @example
|
|
1260
|
-
* // Queries for the count of all features matching the layer's configurations
|
|
1261
|
-
* // e.g. definitionExpression
|
|
1262
|
-
* layer.queryFeatureCount().then((numFeatures) => {
|
|
1263
|
-
* // prints the total count to the console
|
|
1264
|
-
* console.log(numFeatures);
|
|
1265
|
-
* });
|
|
1266
|
-
* @example
|
|
1267
|
-
* const layer = new FeatureLayer({
|
|
1268
|
-
* url: fsUrl // points to a Feature Service layer url
|
|
1269
|
-
* });
|
|
1270
|
-
*
|
|
1271
|
-
* const query = new Query();
|
|
1272
|
-
* query.where = "region = 'Southern California'";
|
|
1273
|
-
*
|
|
1274
|
-
* const featureCount = await layer.queryFeatureCount(query);
|
|
1275
|
-
* console.log(featureCount); // prints the number of results satisfying the query
|
|
1276
1124
|
*/
|
|
1277
1125
|
queryFeatureCount(query?: QueryProperties | null | undefined, options?: RequestOptions): Promise<number>;
|
|
1278
1126
|
/**
|
|
@@ -1330,57 +1178,6 @@ export default class CSVLayer extends __FeatureLayerSansType {
|
|
|
1330
1178
|
* .catch(function (error) {
|
|
1331
1179
|
* console.log(error)
|
|
1332
1180
|
* });
|
|
1333
|
-
* @see [Sample - Query features from a FeatureLayer](https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query/)
|
|
1334
|
-
* @see [Query and filter guide](https://developers.arcgis.com/javascript/latest/query-filter/)
|
|
1335
|
-
* @example
|
|
1336
|
-
* // Queries for all the features matching the layer's configurations
|
|
1337
|
-
* // e.g. definitionExpression
|
|
1338
|
-
* layer.queryFeatures().then((results) => {
|
|
1339
|
-
* // prints the array of result graphics to the console
|
|
1340
|
-
* console.log(results.features);
|
|
1341
|
-
* });
|
|
1342
|
-
* @example
|
|
1343
|
-
* const layer = new FeatureLayer({
|
|
1344
|
-
* url: fsUrl // points to a Feature Service layer url
|
|
1345
|
-
* });
|
|
1346
|
-
*
|
|
1347
|
-
* const query = new Query();
|
|
1348
|
-
* query.where = "STATE_NAME = 'Washington'";
|
|
1349
|
-
* query.outSpatialReference = { wkid: 102100 };
|
|
1350
|
-
* query.returnGeometry = true;
|
|
1351
|
-
* query.outFields = [ "CITY_NAME" ];
|
|
1352
|
-
*
|
|
1353
|
-
* layer.queryFeatures(query).then((results) => {
|
|
1354
|
-
* console.log(results.features); // prints the array of features to the console
|
|
1355
|
-
* });
|
|
1356
|
-
* @example
|
|
1357
|
-
* // Get a query object for the layer's current configuration
|
|
1358
|
-
* const queryParams = layer.createQuery();
|
|
1359
|
-
* // set a geometry for filtering features by a region of interest
|
|
1360
|
-
* queryParams.geometry = extentForRegionOfInterest;
|
|
1361
|
-
* // Add to the layer's current definitionExpression
|
|
1362
|
-
* queryParams.where = queryParams.where + " AND TYPE = 'Extreme'";
|
|
1363
|
-
*
|
|
1364
|
-
* // query the layer with the modified params object
|
|
1365
|
-
* layer.queryFeatures(queryParams).then((results) => {
|
|
1366
|
-
* // prints the array of result graphics to the console
|
|
1367
|
-
* console.log(results.features);
|
|
1368
|
-
* });
|
|
1369
|
-
* @example
|
|
1370
|
-
* const layer = new FeatureLayer({
|
|
1371
|
-
* url: fsUrl // points to a Feature Service layer url
|
|
1372
|
-
* });
|
|
1373
|
-
*
|
|
1374
|
-
* // query all features from the layer and only return
|
|
1375
|
-
* // attributes specified in outFields.
|
|
1376
|
-
* const query = { // autocasts as Query
|
|
1377
|
-
* where: "1=1", // select all features
|
|
1378
|
-
* returnGeometry: false,
|
|
1379
|
-
* outFields: ["State_Name", "City_Name", "pop2010"]
|
|
1380
|
-
* };
|
|
1381
|
-
*
|
|
1382
|
-
* const results = await layer.queryFeatures(query);
|
|
1383
|
-
* console.log(results.features); // prints the array of features to the console
|
|
1384
1181
|
*/
|
|
1385
1182
|
queryFeatures(query?: QueryProperties | null | undefined, options?: RequestOptions): Promise<FeatureSet>;
|
|
1386
1183
|
/**
|
|
@@ -1422,25 +1219,6 @@ export default class CSVLayer extends __FeatureLayerSansType {
|
|
|
1422
1219
|
* csvLayer.queryObjectIds(query).then(function(ids){
|
|
1423
1220
|
* console.log(ids); // an array of object IDs
|
|
1424
1221
|
* });
|
|
1425
|
-
* @see [Sample - Query Related Features](https://developers.arcgis.com/javascript/latest/sample-code/query-related-features/)
|
|
1426
|
-
* @example
|
|
1427
|
-
* // Queries for all the Object IDs of features matching the layer's configurations
|
|
1428
|
-
* // e.g. definitionExpression
|
|
1429
|
-
* layer.queryObjectIds().then((results) => {
|
|
1430
|
-
* // prints the array of Object IDs to the console
|
|
1431
|
-
* console.log(results);
|
|
1432
|
-
* });
|
|
1433
|
-
* @example
|
|
1434
|
-
* const layer = new FeatureLayer({
|
|
1435
|
-
* url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/3"
|
|
1436
|
-
* });
|
|
1437
|
-
*
|
|
1438
|
-
* const query = new Query({
|
|
1439
|
-
* where: "SUB_REGION = 'Pacific'"
|
|
1440
|
-
* });
|
|
1441
|
-
*
|
|
1442
|
-
* const ids = await layer.queryObjectIds(query);
|
|
1443
|
-
* console.log(ids); // an array of object IDs
|
|
1444
1222
|
*/
|
|
1445
1223
|
queryObjectIds(query?: QueryProperties | null | undefined, options?: RequestOptions): Promise<number[]>;
|
|
1446
1224
|
/**
|
|
@@ -1454,10 +1232,9 @@ export default class CSVLayer extends __FeatureLayerSansType {
|
|
|
1454
1232
|
* // refresh method to fetch new features from the csv feed
|
|
1455
1233
|
* csvLayer.customParameters.limit = 10;
|
|
1456
1234
|
* csvLayer.refresh();
|
|
1457
|
-
* @see [FeatureLayer.refreshInterval](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#refreshInterval)
|
|
1458
|
-
* @see [refresh event](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#event-refresh)
|
|
1459
1235
|
* @see [RefreshableLayer.refreshInterval](https://developers.arcgis.com/javascript/latest/references/core/layers/mixins/RefreshableLayer/#refreshInterval)
|
|
1460
1236
|
* @see [refresh event](https://developers.arcgis.com/javascript/latest/references/core/layers/mixins/RefreshableLayer/#event-refresh)
|
|
1461
1237
|
*/
|
|
1462
1238
|
refresh(): void;
|
|
1463
|
-
}
|
|
1239
|
+
}
|
|
1240
|
+
declare const CSVLayerSuperclass: typeof Layer & typeof MultiOriginJSONSupportMixin & typeof PortalLayer & typeof OperationalLayer & typeof RefreshableLayer & typeof ScaleRangeLayer & typeof TrackableLayer & typeof TemporalLayer & typeof BlendLayer & typeof FeatureEffectLayer & typeof FeatureReductionLayer & typeof CustomParametersMixin & typeof DisplayFilteredLayer & typeof OrderedLayer
|