@arcgis/core 6.0.0-next.22 → 6.0.0-next.23
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/PopupTemplate.js +1 -1
- package/analysis/LineOfSightAnalysis.d.ts +1 -1
- package/analysis/LineOfSightAnalysisObserver.d.ts +5 -4
- package/analysis/LineOfSightAnalysisTarget.d.ts +4 -4
- package/analysis/Viewshed.d.ts +4 -4
- package/arcgisGlobal.d.ts +0 -5
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{3c277a0f099d67090d07.js → 02335385b1476fe322eb.js} +1 -1
- package/assets/esri/core/workers/chunks/{4911ce62421a6c3320b0.js → 13c64087be3b2985a21b.js} +1 -1
- package/assets/esri/core/workers/chunks/{8e19629899a5becf8e19.js → 150e7a7bd5df25693da7.js} +1 -1
- package/assets/esri/core/workers/chunks/2c0cb214fedb29487eef.js +1 -0
- package/assets/esri/core/workers/chunks/{2e096537a3a5555a4a93.js → 4cb751dc8d00bdaeb04c.js} +1 -1
- package/assets/esri/core/workers/chunks/517106048980a3cbe072.js +1 -0
- package/assets/esri/core/workers/chunks/{d08ff41e2a9bcd58b64a.js → 636cd05abfbdff19029e.js} +1 -1
- package/assets/esri/core/workers/chunks/{84940d8e14caf5a27e04.js → 64b360625c68cb863a08.js} +1 -1
- package/assets/esri/core/workers/chunks/{814751e705c05099f864.js → 7c75a8ee266c36baa902.js} +1 -1
- package/assets/esri/core/workers/chunks/947674b2ca8be65b9bcc.js +1 -0
- package/assets/esri/core/workers/chunks/{baed828b7846c0863289.js → 96c4ea9cfa3930f1c3fb.js} +21 -17
- package/assets/esri/core/workers/chunks/{8a485130781b49dbf608.js → 9d40786c5ceface786ba.js} +1 -1
- package/assets/esri/core/workers/chunks/{a35c69a4751d28c39907.js → 9e7c4eda135c4911b268.js} +1 -1
- package/assets/esri/core/workers/chunks/ad96132bc89671e595f3.js +1 -0
- package/assets/esri/themes/base/_core.scss +0 -2
- 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/Component.glsl.js +9 -12
- package/chunks/DefaultMaterial.glsl.js +4 -5
- package/chunks/Path.glsl.js +2 -4
- package/chunks/RealisticTree.glsl.js +3 -3
- package/chunks/SSAO.glsl.js +1 -2
- package/config.js +1 -1
- package/geometry/support/clipRay.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/interfaces.d.ts +0 -55
- package/kernel.js +1 -1
- package/layers/ElevationLayer.d.ts +6 -2
- package/layers/GeoJSONLayer.d.ts +2 -107
- package/layers/IntegratedMeshLayer.js +1 -1
- package/layers/SceneLayer.d.ts +40 -16
- package/layers/ViewshedLayer.d.ts +10 -4
- package/layers/WMSLayer.d.ts +2 -69
- package/layers/mixins/TemporalLayer.d.ts +70 -48
- package/layers/mixins/TiledImagery.d.ts +0 -11
- package/package.json +2 -2
- package/popup/content.d.ts +38 -1
- package/popup/content.js +1 -1
- package/smartMapping/popup/support/clusterUtils.js +1 -1
- package/smartMapping/popup/support/utils.js +2 -2
- package/smartMapping/renderers/size.js +1 -1
- package/smartMapping/renderers/support/regenerateUtils.js +1 -1
- package/support/timeUtils.d.ts +11 -0
- package/views/2d/engine/webgl/GlyphWorker.js +1 -1
- package/views/2d/layers/features/Processor.js +1 -1
- package/views/2d/layers/features/aggregation/GeohashSpatialIndex.js +1 -1
- package/views/2d/layers/features/aggregation/GridSpatialIndex.js +1 -1
- package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
- package/views/2d/layers/features/processor/AggregateStrategy.js +1 -1
- package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
- package/views/2d/layers/features/processor/bins/BinAdapter.js +1 -1
- package/views/2d/layers/features/processor/bins/BinLevelState.js +1 -1
- package/views/2d/layers/features/processor/clusters/ClusterAdapter.js +1 -1
- package/views/2d/layers/features/processor/clusters/ClusterLevelState.js +1 -1
- package/views/2d/layers/features/processor/tracks/TrackAdapter.js +1 -1
- package/views/2d/layers/features/processor/tracks/TrackLevelState.js +1 -1
- package/views/2d/layers/features/schema/processor/SimpleProcessorSchema.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/ASourceChunk.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/ByReferenceTileSourceChunk.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/FeatureSnapshotSourceChunk.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/ParquetSnapshotSourceChunk.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/StreamSourceChunk.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/FeatureFilterEvaluator.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/features/support/GraphicsReader.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/3d/environment/SunLighting.d.ts +0 -1
- package/views/3d/environment/SunLighting.js +1 -1
- package/views/3d/environment/VirtualLighting.d.ts +0 -1
- package/views/3d/environment/VirtualLighting.js +1 -1
- package/views/3d/input/handlers/ground/GroundDoubleClickMove.js +1 -1
- package/views/3d/interactive/placementTools/GroundNavigationPlacementTool3D.js +1 -1
- package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
- package/views/3d/state/utils/groundNavigationUtils.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/Component.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +1 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceRayMarching.glsl.js +1 -2
- package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +9 -4
- package/views/3d/webgl-engine/effects/snowcover/applySnow.glsl.js +18 -0
- package/views/3d/webgl-engine/lib/Intersector.js +1 -1
- package/views/3d/webgl-engine/materials/Path.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/internal/worldSizedRibbonLineIntersectionUtils.js +2 -0
- package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
- package/views/layers/LineOfSightLayerView.d.ts +2 -2
- package/views/layers/ViewshedLayerView.d.ts +2 -1
- package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
- package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
- package/widgets/Locate.d.ts +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/widgets/Search/support/layerSearchUtils.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Sketch/support/PluginManager.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
- package/widgets/support/GeolocationPositioning.d.ts +1 -2
- package/assets/esri/core/workers/chunks/42045cf46497828cd3c0.js +0 -1
- package/assets/esri/core/workers/chunks/576248e9ae2654569420.js +0 -1
- package/assets/esri/core/workers/chunks/6059853ef3b6cddbe869.js +0 -1
- package/assets/esri/core/workers/chunks/a679207c3458cc0b1fec.js +0 -1
- package/assets/esri/themes/base/widgets/_DirectionalPad.scss +0 -85
- package/assets/esri/widgets/DirectionalPad/t9n/messages.ar.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.bg.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.bs.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.ca.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.cs.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.da.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.de.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.el.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.en.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.es.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.et.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.fi.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.fr.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.he.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.hr.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.hu.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.id.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.it.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.ja.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.ko.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.lt.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.lv.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.nl.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.no.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.pl.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.pt-BR.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.pt-PT.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.ro.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.ru.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.sk.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.sl.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.sr.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.sv.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.th.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.tr.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.uk.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.vi.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.zh-CN.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.zh-HK.json +0 -1
- package/assets/esri/widgets/DirectionalPad/t9n/messages.zh-TW.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.ar.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.bg.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.bs.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.ca.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.cs.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.da.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.de.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.el.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.en.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.es.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.et.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.fi.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.fr.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.he.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.hr.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.hu.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.id.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.it.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.ja.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.ko.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.lt.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.lv.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.nl.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.no.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.pl.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.pt-BR.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.pt-PT.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.ro.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.ru.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.sk.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.sl.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.sr.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.sv.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.th.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.tr.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.uk.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.vi.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.zh-CN.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.zh-HK.json +0 -1
- package/assets/esri/widgets/Track/t9n/messages.zh-TW.json +0 -1
- package/views/2d/layers/features/FeatureSpatialIndex.js +0 -2
- package/views/2d/layers/features/support/FeatureSetReaderIndirect.js +0 -2
- package/views/3d/webgl-engine/effects/snowcover/SnowCover.glsl.js +0 -12
- package/widgets/DirectionalPad/DirectionalPadViewModel.d.ts +0 -85
- package/widgets/DirectionalPad/DirectionalPadViewModel.js +0 -2
- package/widgets/DirectionalPad/VisibleElements.d.ts +0 -40
- package/widgets/DirectionalPad/VisibleElements.js +0 -2
- package/widgets/DirectionalPad/constants.js +0 -2
- package/widgets/DirectionalPad/css.js +0 -2
- package/widgets/DirectionalPad/types.d.ts +0 -27
- package/widgets/DirectionalPad/utils.js +0 -2
- package/widgets/DirectionalPad.d.ts +0 -156
- package/widgets/DirectionalPad.js +0 -2
- package/widgets/Track/TrackViewModel.d.ts +0 -131
- package/widgets/Track/TrackViewModel.js +0 -2
- package/widgets/Track/types.d.ts +0 -6
- package/widgets/Track.d.ts +0 -278
- package/widgets/Track.js +0 -2
package/layers/SceneLayer.d.ts
CHANGED
|
@@ -266,21 +266,33 @@ export interface SceneLayerProperties extends LayerProperties, APIKeyMixinProper
|
|
|
266
266
|
*/
|
|
267
267
|
timeExtent?: TimeExtentProperties | null;
|
|
268
268
|
/**
|
|
269
|
-
*
|
|
270
|
-
* [
|
|
271
|
-
* and
|
|
272
|
-
* for each feature and the [TimeInfo.fullTimeExtent](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#fullTimeExtent)
|
|
273
|
-
* for the layer.
|
|
269
|
+
* Defines temporal information for a layer, such as [start](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#startField) and [end](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#endField)
|
|
270
|
+
* date fields used to track when features remain visible, as well as the layer's [full time extent](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#fullTimeExtent).
|
|
271
|
+
* If `timeInfo` is configured on the underlying service, it is automatically read and used by the layer.
|
|
274
272
|
*
|
|
275
|
-
*
|
|
276
|
-
*
|
|
277
|
-
*
|
|
273
|
+
* The `timeInfo` property can be set or overridden in the scene layer constructor or at runtime.
|
|
274
|
+
* When overriding `timeInfo`, ensure that `startField` and `endField` correspond to valid date fields in the layer's schema.
|
|
275
|
+
* To calculate a `fullTimeExtent` that covers all dates in the configured `startField` and `endField`, call
|
|
276
|
+
* the [getTimeExtentFromLayers()](https://developers.arcgis.com/javascript/latest/references/core/support/timeUtils/#getTimeExtentFromLayers) function. Then assign the result to `layer.timeInfo.fullTimeExtent`.
|
|
278
277
|
*
|
|
279
278
|
* TimeInfo's [startField](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#startField) and [endField](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#endField)
|
|
280
279
|
* can be `date`, `date-only` or `timestamp-offset` [field type](https://developers.arcgis.com/javascript/latest/references/core/layers/support/Field/#type) for [SceneLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SceneLayer/)
|
|
281
280
|
* and [BuildingComponentSublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/buildingSublayers/BuildingComponentSublayer/).
|
|
282
281
|
*
|
|
283
282
|
* @since 4.30
|
|
283
|
+
* @example
|
|
284
|
+
* // update layer's timeInfo at runtime
|
|
285
|
+
* sceneLayer.timeInfo = {
|
|
286
|
+
* startField: "DateField",
|
|
287
|
+
* timeZone: "UTC"
|
|
288
|
+
* };
|
|
289
|
+
*
|
|
290
|
+
* // calculate the fullTimeExtent based on startField
|
|
291
|
+
* const fullTimeExtent = getTimeExtentFromLayers([sceneLayer]);
|
|
292
|
+
* sceneLayer.timeInfo.fullTimeExtent = fullTimeExtent;
|
|
293
|
+
* @example
|
|
294
|
+
* // set layer's timeInfo to null
|
|
295
|
+
* sceneLayer.timeInfo = null;
|
|
284
296
|
*/
|
|
285
297
|
timeInfo?: TimeInfoProperties | null;
|
|
286
298
|
/**
|
|
@@ -1043,21 +1055,33 @@ export default class SceneLayer extends SceneLayerSuperclass {
|
|
|
1043
1055
|
get timeExtent(): TimeExtent | null | undefined;
|
|
1044
1056
|
set timeExtent(value: TimeExtentProperties | null | undefined);
|
|
1045
1057
|
/**
|
|
1046
|
-
*
|
|
1047
|
-
* [
|
|
1048
|
-
* and
|
|
1049
|
-
* for each feature and the [TimeInfo.fullTimeExtent](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#fullTimeExtent)
|
|
1050
|
-
* for the layer.
|
|
1058
|
+
* Defines temporal information for a layer, such as [start](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#startField) and [end](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#endField)
|
|
1059
|
+
* date fields used to track when features remain visible, as well as the layer's [full time extent](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#fullTimeExtent).
|
|
1060
|
+
* If `timeInfo` is configured on the underlying service, it is automatically read and used by the layer.
|
|
1051
1061
|
*
|
|
1052
|
-
*
|
|
1053
|
-
*
|
|
1054
|
-
*
|
|
1062
|
+
* The `timeInfo` property can be set or overridden in the scene layer constructor or at runtime.
|
|
1063
|
+
* When overriding `timeInfo`, ensure that `startField` and `endField` correspond to valid date fields in the layer's schema.
|
|
1064
|
+
* To calculate a `fullTimeExtent` that covers all dates in the configured `startField` and `endField`, call
|
|
1065
|
+
* the [getTimeExtentFromLayers()](https://developers.arcgis.com/javascript/latest/references/core/support/timeUtils/#getTimeExtentFromLayers) function. Then assign the result to `layer.timeInfo.fullTimeExtent`.
|
|
1055
1066
|
*
|
|
1056
1067
|
* TimeInfo's [startField](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#startField) and [endField](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#endField)
|
|
1057
1068
|
* can be `date`, `date-only` or `timestamp-offset` [field type](https://developers.arcgis.com/javascript/latest/references/core/layers/support/Field/#type) for [SceneLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SceneLayer/)
|
|
1058
1069
|
* and [BuildingComponentSublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/buildingSublayers/BuildingComponentSublayer/).
|
|
1059
1070
|
*
|
|
1060
1071
|
* @since 4.30
|
|
1072
|
+
* @example
|
|
1073
|
+
* // update layer's timeInfo at runtime
|
|
1074
|
+
* sceneLayer.timeInfo = {
|
|
1075
|
+
* startField: "DateField",
|
|
1076
|
+
* timeZone: "UTC"
|
|
1077
|
+
* };
|
|
1078
|
+
*
|
|
1079
|
+
* // calculate the fullTimeExtent based on startField
|
|
1080
|
+
* const fullTimeExtent = getTimeExtentFromLayers([sceneLayer]);
|
|
1081
|
+
* sceneLayer.timeInfo.fullTimeExtent = fullTimeExtent;
|
|
1082
|
+
* @example
|
|
1083
|
+
* // set layer's timeInfo to null
|
|
1084
|
+
* sceneLayer.timeInfo = null;
|
|
1061
1085
|
*/
|
|
1062
1086
|
get timeInfo(): TimeInfo | null | undefined;
|
|
1063
1087
|
set timeInfo(value: TimeInfoProperties | null | undefined);
|
|
@@ -84,16 +84,22 @@ export interface ViewshedLayerProperties extends LayerProperties, OperationalLay
|
|
|
84
84
|
*
|
|
85
85
|
* > [!WARNING]
|
|
86
86
|
* >
|
|
87
|
-
* > **
|
|
88
|
-
* >
|
|
89
|
-
* >
|
|
90
|
-
* >
|
|
87
|
+
* > **Things to consider:**
|
|
88
|
+
* > * This analysis is only supported in a 3D [SceneView](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/).
|
|
89
|
+
* > * The results of the tool vary depending on the zoom level, as changes in zoom level affect the level of detail (LOD) of the scene geometry.
|
|
90
|
+
* > * Snapping, tooltips, display units, and input units used during interactive placement and editing are inherited from
|
|
91
|
+
* [ViewOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/).
|
|
92
|
+
* > * Snapping is enabled by default. This can be temporarily disabled by holding the `CTRL` key.
|
|
93
|
+
* > * Layer types currently supported for snapping are: [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/), [GraphicsLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GraphicsLayer/) (except Mesh geometries),
|
|
94
|
+
* > [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/), [WFSLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/WFSLayer/), [CSVLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/),
|
|
95
|
+
* > [3D Object SceneLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SceneLayer/), and [BuildingSceneLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/BuildingSceneLayer/).
|
|
91
96
|
*
|
|
92
97
|
* @since 4.31
|
|
93
98
|
* @see [ViewshedLayerView](https://developers.arcgis.com/javascript/latest/references/core/views/layers/ViewshedLayerView/)
|
|
94
99
|
* @see [Viewshed](https://developers.arcgis.com/javascript/latest/references/core/analysis/Viewshed/)
|
|
95
100
|
* @see [ViewshedAnalysis](https://developers.arcgis.com/javascript/latest/references/core/analysis/ViewshedAnalysis/)
|
|
96
101
|
* @see [ViewshedAnalysisView3D](https://developers.arcgis.com/javascript/latest/references/core/views/3d/analysis/ViewshedAnalysisView3D/)
|
|
102
|
+
* @see [ViewOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/ViewOptions/)
|
|
97
103
|
* @see [Sample - ViewshedLayer in slides](https://developers.arcgis.com/javascript/latest/sample-code/layers-viewshed/)
|
|
98
104
|
*/
|
|
99
105
|
export default class ViewshedLayer extends ViewshedLayerSuperclass {
|
package/layers/WMSLayer.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import type Collection from "../core/Collection.js";
|
|
|
3
3
|
import type Extent from "../geometry/Extent.js";
|
|
4
4
|
import type SpatialReference from "../geometry/SpatialReference.js";
|
|
5
5
|
import type Layer from "./Layer.js";
|
|
6
|
-
import type TimeInfo from "./support/TimeInfo.js";
|
|
7
6
|
import type WMSSublayer from "./support/WMSSublayer.js";
|
|
8
7
|
import type TimeExtent from "../time/TimeExtent.js";
|
|
9
8
|
import type TimeInterval from "../time/TimeInterval.js";
|
|
@@ -17,7 +16,6 @@ import type { PortalLayer, PortalLayerProperties } from "./mixins/PortalLayer.js
|
|
|
17
16
|
import type { RefreshableLayer, RefreshableLayerEvents, RefreshableLayerProperties } from "./mixins/RefreshableLayer.js";
|
|
18
17
|
import type { ScaleRangeLayer, ScaleRangeLayerProperties } from "./mixins/ScaleRangeLayer.js";
|
|
19
18
|
import type { TemporalLayer, TemporalLayerProperties } from "./mixins/TemporalLayer.js";
|
|
20
|
-
import type { TimeInfoProperties } from "./support/TimeInfo.js";
|
|
21
19
|
import type { WMSDimension } from "./wms/types.js";
|
|
22
20
|
import type { TimeExtentProperties } from "../time/TimeExtent.js";
|
|
23
21
|
import type { TimeIntervalProperties } from "../time/TimeInterval.js";
|
|
@@ -150,39 +148,6 @@ export interface WMSLayerProperties extends LayerProperties, PortalLayerProperti
|
|
|
150
148
|
* });
|
|
151
149
|
*/
|
|
152
150
|
timeExtent?: TimeExtentProperties | null;
|
|
153
|
-
/**
|
|
154
|
-
* TimeInfo provides information such as date fields that store
|
|
155
|
-
* [start](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#startField)
|
|
156
|
-
* and [end](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#endField) time
|
|
157
|
-
* for each feature and the [TimeInfo.fullTimeExtent](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#fullTimeExtent)
|
|
158
|
-
* for the layer. The `timeInfo` property is automatically set at layer initialization if the layer has one or more time dimensions.
|
|
159
|
-
* The [TimeInfo.fullTimeExtent](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#fullTimeExtent) for `timeInfo` is
|
|
160
|
-
* automatically set to the union of all time dimension extents.
|
|
161
|
-
* The timeInfo parameters cannot be changed after the layer is [loaded](https://developers.arcgis.com/javascript/latest/references/core/layers/WMSLayer/#load).
|
|
162
|
-
*
|
|
163
|
-
* @since 4.17
|
|
164
|
-
* @example
|
|
165
|
-
* // create geojson layer from usgs earthquakes geojson feed
|
|
166
|
-
* const geojsonLayer = new GeoJSONLayer({
|
|
167
|
-
* url: "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.geojson",
|
|
168
|
-
* copyright: "USGS Earthquakes",
|
|
169
|
-
* fields: [
|
|
170
|
-
* { "name": "mag", "type": "double" },
|
|
171
|
-
* { "name": "place", "type": "string" },
|
|
172
|
-
* { "name": "time", "type": "date" }, // date field
|
|
173
|
-
* { "name": "depth", "type": "double" }
|
|
174
|
-
* ],
|
|
175
|
-
* // timeInfo can be used to do temporal queries
|
|
176
|
-
* // set the startField and endField.
|
|
177
|
-
* // timeExtent is automatically calculated from the
|
|
178
|
-
* // the start and end date fields
|
|
179
|
-
* // The date values must be in milliseconds number from the UNIX epoch specified in UTC.
|
|
180
|
-
* timeInfo: {
|
|
181
|
-
* startField: "time"
|
|
182
|
-
* }
|
|
183
|
-
* });
|
|
184
|
-
*/
|
|
185
|
-
timeInfo?: TimeInfoProperties | null;
|
|
186
151
|
/**
|
|
187
152
|
* A temporary offset of the time data based on a certain [TimeInterval](https://developers.arcgis.com/javascript/latest/references/core/time/TimeInterval/). This allows
|
|
188
153
|
* users to overlay features from two or more time-aware layers with different time extents.
|
|
@@ -215,6 +180,7 @@ export interface WMSLayerProperties extends LayerProperties, PortalLayerProperti
|
|
|
215
180
|
* }
|
|
216
181
|
* }
|
|
217
182
|
* });
|
|
183
|
+
* @see [Sample - Time Bar with actions and layer timeOffset](https://developers.arcgis.com/javascript/latest/sample-code/time-bar-time-offset/)
|
|
218
184
|
* @example
|
|
219
185
|
* // Offset a CSV Layer containing hurricanes from 2015 so that they appear in 2019 (+4 years).
|
|
220
186
|
* let layer = new CSVLayer({
|
|
@@ -678,40 +644,6 @@ export default class WMSLayer extends WMSLayerSuperclass {
|
|
|
678
644
|
*/
|
|
679
645
|
get timeExtent(): TimeExtent | null | undefined;
|
|
680
646
|
set timeExtent(value: TimeExtentProperties | null | undefined);
|
|
681
|
-
/**
|
|
682
|
-
* TimeInfo provides information such as date fields that store
|
|
683
|
-
* [start](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#startField)
|
|
684
|
-
* and [end](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#endField) time
|
|
685
|
-
* for each feature and the [TimeInfo.fullTimeExtent](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#fullTimeExtent)
|
|
686
|
-
* for the layer. The `timeInfo` property is automatically set at layer initialization if the layer has one or more time dimensions.
|
|
687
|
-
* The [TimeInfo.fullTimeExtent](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#fullTimeExtent) for `timeInfo` is
|
|
688
|
-
* automatically set to the union of all time dimension extents.
|
|
689
|
-
* The timeInfo parameters cannot be changed after the layer is [loaded](https://developers.arcgis.com/javascript/latest/references/core/layers/WMSLayer/#load).
|
|
690
|
-
*
|
|
691
|
-
* @since 4.17
|
|
692
|
-
* @example
|
|
693
|
-
* // create geojson layer from usgs earthquakes geojson feed
|
|
694
|
-
* const geojsonLayer = new GeoJSONLayer({
|
|
695
|
-
* url: "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.geojson",
|
|
696
|
-
* copyright: "USGS Earthquakes",
|
|
697
|
-
* fields: [
|
|
698
|
-
* { "name": "mag", "type": "double" },
|
|
699
|
-
* { "name": "place", "type": "string" },
|
|
700
|
-
* { "name": "time", "type": "date" }, // date field
|
|
701
|
-
* { "name": "depth", "type": "double" }
|
|
702
|
-
* ],
|
|
703
|
-
* // timeInfo can be used to do temporal queries
|
|
704
|
-
* // set the startField and endField.
|
|
705
|
-
* // timeExtent is automatically calculated from the
|
|
706
|
-
* // the start and end date fields
|
|
707
|
-
* // The date values must be in milliseconds number from the UNIX epoch specified in UTC.
|
|
708
|
-
* timeInfo: {
|
|
709
|
-
* startField: "time"
|
|
710
|
-
* }
|
|
711
|
-
* });
|
|
712
|
-
*/
|
|
713
|
-
get timeInfo(): TimeInfo | null | undefined;
|
|
714
|
-
set timeInfo(value: TimeInfoProperties | null | undefined);
|
|
715
647
|
/**
|
|
716
648
|
* A temporary offset of the time data based on a certain [TimeInterval](https://developers.arcgis.com/javascript/latest/references/core/time/TimeInterval/). This allows
|
|
717
649
|
* users to overlay features from two or more time-aware layers with different time extents.
|
|
@@ -744,6 +676,7 @@ export default class WMSLayer extends WMSLayerSuperclass {
|
|
|
744
676
|
* }
|
|
745
677
|
* }
|
|
746
678
|
* });
|
|
679
|
+
* @see [Sample - Time Bar with actions and layer timeOffset](https://developers.arcgis.com/javascript/latest/sample-code/time-bar-time-offset/)
|
|
747
680
|
* @example
|
|
748
681
|
* // Offset a CSV Layer containing hurricanes from 2015 so that they appear in 2019 (+4 years).
|
|
749
682
|
* let layer = new CSVLayer({
|
|
@@ -57,28 +57,24 @@ export interface TemporalLayerProperties extends Partial<Pick<TemporalLayer, "us
|
|
|
57
57
|
*/
|
|
58
58
|
timeExtent?: TimeExtentProperties | null;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
61
|
-
* [
|
|
62
|
-
* and
|
|
63
|
-
* for each feature and the [fullTimeExtent](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#fullTimeExtent)
|
|
64
|
-
* for the layer. The `timeInfo` property, along with its `startField` and `endField` properties, must be set at the
|
|
65
|
-
* time of layer initialization if it is being set for a
|
|
66
|
-
* [CSVLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/),
|
|
67
|
-
* [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/),
|
|
68
|
-
* [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/OGCFeatureLayer/) or
|
|
69
|
-
* [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/)
|
|
70
|
-
* initialized from [client-side features](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#creating-a-featurelayer).
|
|
71
|
-
* The [fullTimeExtent](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#fullTimeExtent) for `timeInfo` is
|
|
72
|
-
* automatically calculated based on its `startField` and `endField` properties.
|
|
73
|
-
* The timeInfo parameters cannot be changed after the layer is [loaded](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#load).
|
|
60
|
+
* Defines temporal information for a layer, such as [start](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#startField) and [end](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#endField)
|
|
61
|
+
* date fields used to track when features remain visible, as well as the layer's [full time extent](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#fullTimeExtent).
|
|
62
|
+
* If `timeInfo` is configured on the underlying service, it is automatically read and used by the layer.
|
|
74
63
|
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
64
|
+
* The `timeInfo` can be set or overridden on the following feature based layers in the layer constructor or at runtime: [AnnotationFeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/AnnotationFeatureLayer/),
|
|
65
|
+
* [CSVLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/), [CatalogLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CatalogLayer/), [DimensionFeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/DimensionFeatureLayer/), [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/),
|
|
66
|
+
* [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/), [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/OGCFeatureLayer/), [OrientedImageryLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/OrientedImageryLayer/), [SceneLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SceneLayer/),
|
|
67
|
+
* [StreamLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/StreamLayer/), and [SubtypeGroupLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SubtypeGroupLayer/).
|
|
78
68
|
*
|
|
79
|
-
*
|
|
69
|
+
* When overriding a layer's `timeInfo`, ensure that `startField` and `endField` correspond to valid date fields in the layer's schema.
|
|
70
|
+
* To calculate a `fullTimeExtent` that covers all dates in the configured `startField` and `endField`, call
|
|
71
|
+
* [getTimeExtentFromLayers()](https://developers.arcgis.com/javascript/latest/references/core/support/timeUtils/#getTimeExtentFromLayers) method. Then assign the result to `layer.timeInfo.fullTimeExtent`.
|
|
72
|
+
*
|
|
73
|
+
* The `startField` and `endField` properties accept `date`, `date-only`, or `timestamp-offset` field types.
|
|
74
|
+
*
|
|
75
|
+
* @see [Samples using time-aware layers](https://developers.arcgis.com/javascript/latest/sample-code/?tagged=arcgis-time-bar)
|
|
80
76
|
* @example
|
|
81
|
-
* // create geojson layer from
|
|
77
|
+
* // create geojson layer from USGS earthquakes GeoJSON feed
|
|
82
78
|
* const geojsonLayer = new GeoJSONLayer({
|
|
83
79
|
* url: "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.geojson",
|
|
84
80
|
* copyright: "USGS Earthquakes",
|
|
@@ -89,14 +85,28 @@ export interface TemporalLayerProperties extends Partial<Pick<TemporalLayer, "us
|
|
|
89
85
|
* { "name": "depth", "type": "double" }
|
|
90
86
|
* ],
|
|
91
87
|
* // timeInfo can be used to do temporal queries
|
|
92
|
-
* // set the startField and endField.
|
|
93
|
-
* // timeExtent is automatically calculated from the
|
|
94
|
-
* // the start and end date fields
|
|
95
|
-
* // The date values must be in milliseconds number from the UNIX epoch specified in UTC.
|
|
96
88
|
* timeInfo: {
|
|
97
|
-
* startField: "time"
|
|
89
|
+
* startField: "time",
|
|
90
|
+
* fullTimeExtent: {
|
|
91
|
+
* start: new Date(1970, 0, 1),
|
|
92
|
+
* end: new Date(2000, 11, 31)
|
|
93
|
+
* },
|
|
94
|
+
* timeZone: "UTC"
|
|
98
95
|
* }
|
|
99
96
|
* });
|
|
97
|
+
* @example
|
|
98
|
+
* // update layer's timeInfo at runtime after the feature layer is loaded
|
|
99
|
+
* featureLayer.timeInfo = {
|
|
100
|
+
* startField: "DateField",
|
|
101
|
+
* timeZone: "UTC"
|
|
102
|
+
* };
|
|
103
|
+
*
|
|
104
|
+
* // calculate the fullTimeExtent based on startField
|
|
105
|
+
* const fullTimeExtent = getTimeExtentFromLayers([featureLayer]);
|
|
106
|
+
* featureLayer.timeInfo.fullTimeExtent = fullTimeExtent;
|
|
107
|
+
* @example
|
|
108
|
+
* // set layer's timeInfo to null
|
|
109
|
+
* layer.timeInfo = null;
|
|
100
110
|
*/
|
|
101
111
|
timeInfo?: TimeInfoProperties | null;
|
|
102
112
|
/**
|
|
@@ -107,6 +117,7 @@ export interface TemporalLayerProperties extends Partial<Pick<TemporalLayer, "us
|
|
|
107
117
|
* A time offset can be used for display purposes only. The query and selection are not affected by the offset.
|
|
108
118
|
*
|
|
109
119
|
* @since 4.14
|
|
120
|
+
* @see [Sample - Time Bar with actions and layer timeOffset](https://developers.arcgis.com/javascript/latest/sample-code/time-bar-time-offset/)
|
|
110
121
|
* @example
|
|
111
122
|
* // Offset a CSV Layer containing hurricanes from 2015 so that they appear in 2019 (+4 years).
|
|
112
123
|
* let layer = new CSVLayer({
|
|
@@ -195,28 +206,24 @@ export abstract class TemporalLayer {
|
|
|
195
206
|
get timeExtent(): TimeExtent | null | undefined;
|
|
196
207
|
set timeExtent(value: TimeExtentProperties | null | undefined);
|
|
197
208
|
/**
|
|
198
|
-
*
|
|
199
|
-
* [
|
|
200
|
-
* and
|
|
201
|
-
* for each feature and the [fullTimeExtent](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#fullTimeExtent)
|
|
202
|
-
* for the layer. The `timeInfo` property, along with its `startField` and `endField` properties, must be set at the
|
|
203
|
-
* time of layer initialization if it is being set for a
|
|
204
|
-
* [CSVLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/),
|
|
205
|
-
* [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/),
|
|
206
|
-
* [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/OGCFeatureLayer/) or
|
|
207
|
-
* [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/)
|
|
208
|
-
* initialized from [client-side features](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#creating-a-featurelayer).
|
|
209
|
-
* The [fullTimeExtent](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#fullTimeExtent) for `timeInfo` is
|
|
210
|
-
* automatically calculated based on its `startField` and `endField` properties.
|
|
211
|
-
* The timeInfo parameters cannot be changed after the layer is [loaded](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#load).
|
|
209
|
+
* Defines temporal information for a layer, such as [start](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#startField) and [end](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#endField)
|
|
210
|
+
* date fields used to track when features remain visible, as well as the layer's [full time extent](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#fullTimeExtent).
|
|
211
|
+
* If `timeInfo` is configured on the underlying service, it is automatically read and used by the layer.
|
|
212
212
|
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
213
|
+
* The `timeInfo` can be set or overridden on the following feature based layers in the layer constructor or at runtime: [AnnotationFeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/AnnotationFeatureLayer/),
|
|
214
|
+
* [CSVLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/), [CatalogLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CatalogLayer/), [DimensionFeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/DimensionFeatureLayer/), [FeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/),
|
|
215
|
+
* [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/), [OGCFeatureLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/OGCFeatureLayer/), [OrientedImageryLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/OrientedImageryLayer/), [SceneLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SceneLayer/),
|
|
216
|
+
* [StreamLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/StreamLayer/), and [SubtypeGroupLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SubtypeGroupLayer/).
|
|
216
217
|
*
|
|
217
|
-
*
|
|
218
|
+
* When overriding a layer's `timeInfo`, ensure that `startField` and `endField` correspond to valid date fields in the layer's schema.
|
|
219
|
+
* To calculate a `fullTimeExtent` that covers all dates in the configured `startField` and `endField`, call
|
|
220
|
+
* [getTimeExtentFromLayers()](https://developers.arcgis.com/javascript/latest/references/core/support/timeUtils/#getTimeExtentFromLayers) method. Then assign the result to `layer.timeInfo.fullTimeExtent`.
|
|
221
|
+
*
|
|
222
|
+
* The `startField` and `endField` properties accept `date`, `date-only`, or `timestamp-offset` field types.
|
|
223
|
+
*
|
|
224
|
+
* @see [Samples using time-aware layers](https://developers.arcgis.com/javascript/latest/sample-code/?tagged=arcgis-time-bar)
|
|
218
225
|
* @example
|
|
219
|
-
* // create geojson layer from
|
|
226
|
+
* // create geojson layer from USGS earthquakes GeoJSON feed
|
|
220
227
|
* const geojsonLayer = new GeoJSONLayer({
|
|
221
228
|
* url: "https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.geojson",
|
|
222
229
|
* copyright: "USGS Earthquakes",
|
|
@@ -227,14 +234,28 @@ export abstract class TemporalLayer {
|
|
|
227
234
|
* { "name": "depth", "type": "double" }
|
|
228
235
|
* ],
|
|
229
236
|
* // timeInfo can be used to do temporal queries
|
|
230
|
-
* // set the startField and endField.
|
|
231
|
-
* // timeExtent is automatically calculated from the
|
|
232
|
-
* // the start and end date fields
|
|
233
|
-
* // The date values must be in milliseconds number from the UNIX epoch specified in UTC.
|
|
234
237
|
* timeInfo: {
|
|
235
|
-
* startField: "time"
|
|
238
|
+
* startField: "time",
|
|
239
|
+
* fullTimeExtent: {
|
|
240
|
+
* start: new Date(1970, 0, 1),
|
|
241
|
+
* end: new Date(2000, 11, 31)
|
|
242
|
+
* },
|
|
243
|
+
* timeZone: "UTC"
|
|
236
244
|
* }
|
|
237
245
|
* });
|
|
246
|
+
* @example
|
|
247
|
+
* // update layer's timeInfo at runtime after the feature layer is loaded
|
|
248
|
+
* featureLayer.timeInfo = {
|
|
249
|
+
* startField: "DateField",
|
|
250
|
+
* timeZone: "UTC"
|
|
251
|
+
* };
|
|
252
|
+
*
|
|
253
|
+
* // calculate the fullTimeExtent based on startField
|
|
254
|
+
* const fullTimeExtent = getTimeExtentFromLayers([featureLayer]);
|
|
255
|
+
* featureLayer.timeInfo.fullTimeExtent = fullTimeExtent;
|
|
256
|
+
* @example
|
|
257
|
+
* // set layer's timeInfo to null
|
|
258
|
+
* layer.timeInfo = null;
|
|
238
259
|
*/
|
|
239
260
|
get timeInfo(): TimeInfo | null | undefined;
|
|
240
261
|
set timeInfo(value: TimeInfoProperties | null | undefined);
|
|
@@ -246,6 +267,7 @@ export abstract class TemporalLayer {
|
|
|
246
267
|
* A time offset can be used for display purposes only. The query and selection are not affected by the offset.
|
|
247
268
|
*
|
|
248
269
|
* @since 4.14
|
|
270
|
+
* @see [Sample - Time Bar with actions and layer timeOffset](https://developers.arcgis.com/javascript/latest/sample-code/time-bar-time-offset/)
|
|
249
271
|
* @example
|
|
250
272
|
* // Offset a CSV Layer containing hurricanes from 2015 so that they appear in 2019 (+4 years).
|
|
251
273
|
* let layer = new CSVLayer({
|
|
@@ -4,7 +4,6 @@ import type SpatialReference from "../../geometry/SpatialReference.js";
|
|
|
4
4
|
import type DimensionalDefinition from "../support/DimensionalDefinition.js";
|
|
5
5
|
import type MultidimensionalSubset from "../support/MultidimensionalSubset.js";
|
|
6
6
|
import type RasterInfo from "../support/RasterInfo.js";
|
|
7
|
-
import type TimeInfo from "../support/TimeInfo.js";
|
|
8
7
|
import type ImageSampleParameters from "../../rest/support/ImageSampleParameters.js";
|
|
9
8
|
import type ImageSampleResult from "../../rest/support/ImageSampleResult.js";
|
|
10
9
|
import type TimeExtent from "../../time/TimeExtent.js";
|
|
@@ -273,16 +272,6 @@ export abstract class TiledImagery {
|
|
|
273
272
|
* });
|
|
274
273
|
*/
|
|
275
274
|
abstract accessor timeExtent: TimeExtent | null | undefined;
|
|
276
|
-
/**
|
|
277
|
-
* TimeInfo provides information such as date fields that store
|
|
278
|
-
* [start](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#startField)
|
|
279
|
-
* and [end](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#endField) time
|
|
280
|
-
* for each feature and the [TimeInfo.fullTimeExtent](https://developers.arcgis.com/javascript/latest/references/core/layers/support/TimeInfo/#fullTimeExtent)
|
|
281
|
-
* for the layer.
|
|
282
|
-
*
|
|
283
|
-
* @since 4.22
|
|
284
|
-
*/
|
|
285
|
-
abstract accessor timeInfo: TimeInfo | null | undefined;
|
|
286
275
|
/**
|
|
287
276
|
* A temporary offset of the time data based on a certain [TimeInterval](https://developers.arcgis.com/javascript/latest/references/core/time/TimeInterval/). This allows
|
|
288
277
|
* users to overlay features from two or more time-aware layers with different time extents.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/core",
|
|
3
|
-
"version": "6.0.0-next.
|
|
3
|
+
"version": "6.0.0-next.23",
|
|
4
4
|
"description": "ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ArcGIS",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@amcharts/amcharts5": "~5.21.5",
|
|
23
|
-
"@arcgis/toolkit": "6.0.0-next.
|
|
23
|
+
"@arcgis/toolkit": "6.0.0-next.23",
|
|
24
24
|
"@esri/arcgis-html-sanitizer": "~4.2.0-next.2",
|
|
25
25
|
"@esri/calcite-components": "^5.2.0",
|
|
26
26
|
"@vaadin/grid": "~25.3.4",
|
package/popup/content.d.ts
CHANGED
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
* }
|
|
37
37
|
* ```
|
|
38
38
|
*
|
|
39
|
+
* @deprecated at 5.2. Use individual content imports instead.
|
|
39
40
|
* @since 4.11
|
|
40
41
|
* @see [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/)
|
|
41
42
|
* @see [TextContent](https://developers.arcgis.com/javascript/latest/references/core/popup/content/TextContent/)
|
|
@@ -58,98 +59,134 @@ import type UtilityNetworkAssociationsContentClass from "./content/UtilityNetwor
|
|
|
58
59
|
/**
|
|
59
60
|
* AttachmentsContent represents an attachment element associated with a
|
|
60
61
|
* feature.
|
|
62
|
+
*
|
|
63
|
+
* @deprecated at 5.2. Import [AttachmentsContent](https://developers.arcgis.com/javascript/latest/references/core/popup/content/AttachmentsContent/) directly instead.
|
|
61
64
|
*/
|
|
62
65
|
export type AttachmentsContent = AttachmentsContentClass;
|
|
63
66
|
|
|
64
67
|
/**
|
|
65
68
|
* AttachmentsContent represents an attachment element associated with a
|
|
66
69
|
* feature.
|
|
70
|
+
*
|
|
71
|
+
* @deprecated at 5.2. Import [AttachmentsContent](https://developers.arcgis.com/javascript/latest/references/core/popup/content/AttachmentsContent/) directly instead.
|
|
67
72
|
*/
|
|
68
73
|
export const AttachmentsContent: typeof AttachmentsContentClass;
|
|
69
74
|
|
|
70
75
|
/**
|
|
71
76
|
* CustomContent represents a custom content element associated with a
|
|
72
77
|
* feature.
|
|
78
|
+
*
|
|
79
|
+
* @deprecated at 5.2. Import [CustomContent](https://developers.arcgis.com/javascript/latest/references/core/popup/content/CustomContent/) directly instead.
|
|
73
80
|
*/
|
|
74
81
|
export type CustomContent = CustomContentClass;
|
|
75
82
|
|
|
76
83
|
/**
|
|
77
84
|
* CustomContent represents a custom content element associated with a
|
|
78
85
|
* feature.
|
|
86
|
+
*
|
|
87
|
+
* @deprecated at 5.2. Import [CustomContent](https://developers.arcgis.com/javascript/latest/references/core/popup/content/CustomContent/) directly instead.
|
|
79
88
|
*/
|
|
80
89
|
export const CustomContent: typeof CustomContentClass;
|
|
81
90
|
|
|
82
91
|
/**
|
|
83
92
|
* ExpressionContent represents an expression element associated with a
|
|
84
93
|
* feature.
|
|
94
|
+
*
|
|
95
|
+
* @deprecated at 5.2. Import [ExpressionContent](https://developers.arcgis.com/javascript/latest/references/core/popup/content/ExpressionContent/) directly instead.
|
|
85
96
|
*/
|
|
86
97
|
export type ExpressionContent = ExpressionContentClass;
|
|
87
98
|
|
|
88
99
|
/**
|
|
89
100
|
* ExpressionContent represents an expression element associated with a
|
|
90
101
|
* feature.
|
|
102
|
+
*
|
|
103
|
+
* @deprecated at 5.2. Import [ExpressionContent](https://developers.arcgis.com/javascript/latest/references/core/popup/content/ExpressionContent/) directly instead.
|
|
91
104
|
*/
|
|
92
105
|
export const ExpressionContent: typeof ExpressionContentClass;
|
|
93
106
|
|
|
94
107
|
/**
|
|
95
108
|
* FieldsContent represents the [FieldInfo](https://developers.arcgis.com/javascript/latest/references/core/popup/FieldInfo/) associated with a
|
|
96
109
|
* feature.
|
|
110
|
+
*
|
|
111
|
+
* @deprecated at 5.2. Import [FieldsContent](https://developers.arcgis.com/javascript/latest/references/core/popup/content/FieldsContent/) directly instead.
|
|
97
112
|
*/
|
|
98
113
|
export type FieldsContent = FieldsContentClass;
|
|
99
114
|
|
|
100
115
|
/**
|
|
101
116
|
* FieldsContent represents the [FieldInfo](https://developers.arcgis.com/javascript/latest/references/core/popup/FieldInfo/) associated with a
|
|
102
117
|
* feature.
|
|
118
|
+
*
|
|
119
|
+
* @deprecated at 5.2. Import [FieldsContent](https://developers.arcgis.com/javascript/latest/references/core/popup/content/FieldsContent/) directly instead.
|
|
103
120
|
*/
|
|
104
121
|
export const FieldsContent: typeof FieldsContentClass;
|
|
105
122
|
|
|
106
123
|
/**
|
|
107
124
|
* MediaContent contains an individual or array of chart and/or image media elements
|
|
108
125
|
* to display within a popup's content.
|
|
126
|
+
*
|
|
127
|
+
* @deprecated at 5.2. Import [MediaContent](https://developers.arcgis.com/javascript/latest/references/core/popup/content/MediaContent/) directly instead.
|
|
109
128
|
*/
|
|
110
129
|
export type MediaContent = MediaContentClass;
|
|
111
130
|
|
|
112
131
|
/**
|
|
113
132
|
* MediaContent contains an individual or array of chart and/or image media elements
|
|
114
133
|
* to display within a popup's content.
|
|
134
|
+
*
|
|
135
|
+
* @deprecated at 5.2. Import [MediaContent](https://developers.arcgis.com/javascript/latest/references/core/popup/content/MediaContent/) directly instead.
|
|
115
136
|
*/
|
|
116
137
|
export const MediaContent: typeof MediaContentClass;
|
|
117
138
|
|
|
118
139
|
/**
|
|
119
140
|
* RelationshipContent represents a relationship element associated with a
|
|
120
141
|
* feature.
|
|
142
|
+
*
|
|
143
|
+
* @deprecated at 5.2. Import [RelationshipContent](https://developers.arcgis.com/javascript/latest/references/core/popup/content/RelationshipContent/) directly instead.
|
|
121
144
|
*/
|
|
122
145
|
export type RelationshipContent = RelationshipContentClass;
|
|
123
146
|
|
|
124
147
|
/**
|
|
125
148
|
* RelationshipContent represents a relationship element associated with a
|
|
126
149
|
* feature.
|
|
150
|
+
*
|
|
151
|
+
* @deprecated at 5.2. Import [RelationshipContent](https://developers.arcgis.com/javascript/latest/references/core/popup/content/RelationshipContent/) directly instead.
|
|
127
152
|
*/
|
|
128
153
|
export const RelationshipContent: typeof RelationshipContentClass;
|
|
129
154
|
|
|
130
155
|
/**
|
|
131
156
|
* TextContent defines descriptive text as an element within the [PopupTemplate's](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/)
|
|
132
157
|
* content.
|
|
158
|
+
*
|
|
159
|
+
* @deprecated at 5.2. Import [TextContent](https://developers.arcgis.com/javascript/latest/references/core/popup/content/TextContent/) directly instead.
|
|
133
160
|
*/
|
|
134
161
|
export type TextContent = TextContentClass;
|
|
135
162
|
|
|
136
163
|
/**
|
|
137
164
|
* TextContent defines descriptive text as an element within the [PopupTemplate's](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/)
|
|
138
165
|
* content.
|
|
166
|
+
*
|
|
167
|
+
* @deprecated at 5.2. Import [TextContent](https://developers.arcgis.com/javascript/latest/references/core/popup/content/TextContent/) directly instead.
|
|
139
168
|
*/
|
|
140
169
|
export const TextContent: typeof TextContentClass;
|
|
141
170
|
|
|
142
171
|
/**
|
|
143
172
|
* UtilityNetworkAssociationsContent represents an utility network associations element associated with a
|
|
144
173
|
* feature.
|
|
174
|
+
*
|
|
175
|
+
* @deprecated at 5.2. Import [UtilityNetworkAssociationsContent](https://developers.arcgis.com/javascript/latest/references/core/popup/content/UtilityNetworkAssociationsContent/) directly instead.
|
|
145
176
|
*/
|
|
146
177
|
export type UtilityNetworkAssociationsContent = UtilityNetworkAssociationsContentClass;
|
|
147
178
|
|
|
148
179
|
/**
|
|
149
180
|
* UtilityNetworkAssociationsContent represents an utility network associations element associated with a
|
|
150
181
|
* feature.
|
|
182
|
+
*
|
|
183
|
+
* @deprecated at 5.2. Import [UtilityNetworkAssociationsContent](https://developers.arcgis.com/javascript/latest/references/core/popup/content/UtilityNetworkAssociationsContent/) directly instead.
|
|
151
184
|
*/
|
|
152
185
|
export const UtilityNetworkAssociationsContent: typeof UtilityNetworkAssociationsContentClass;
|
|
153
186
|
|
|
154
|
-
/**
|
|
187
|
+
/**
|
|
188
|
+
* Popup content element types.
|
|
189
|
+
*
|
|
190
|
+
* @deprecated at 5.2. Use individual content imports instead.
|
|
191
|
+
*/
|
|
155
192
|
export type Content = AttachmentsContent | FieldsContent | MediaContent | TextContent | CustomContent | ExpressionContent | RelationshipContent | UtilityNetworkAssociationsContent;
|
package/popup/content.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import e from"./content/AttachmentsContent.js";import
|
|
2
|
+
import{deprecatedModule as e}from"../core/deprecate.js";import t from"../core/Logger.js";import n from"./content/AttachmentsContent.js";import r from"./content/Content.js";import i from"./content/CustomContent.js";import a from"./content/ExpressionContent.js";import o from"./content/FieldsContent.js";import s from"./content/MediaContent.js";import c from"./content/RelationshipContent.js";import l from"./content/TextContent.js";import u from"./content/UtilityNetworkAssociationsContent.js";e(t.getLogger(`esri.popup.content`),`esri.popup.content`,{replacement:`Individual content module imports`,version:`5.2`,warnOnce:!0});const d=n,f=r,p=i,m=a,h=o,g=s,_=c,v=l,y=u;function b(e){return e instanceof f}const x={base:null,key:`type`,typeMap:{attachment:d,media:g,text:v,expression:m,field:h,relationship:_,utilityNetworkAssociations:y}},S={base:null,key:`type`,typeMap:{attachment:d,media:g,text:v,expression:m,field:h,relationship:_}};export{d as AttachmentsContent,f as BaseContent,p as CustomContent,m as ExpressionContent,h as FieldsContent,g as MediaContent,_ as RelationshipContent,v as TextContent,y as UtilityNetworkAssociationsContent,b as isContent,x as persistableTypes,S as persistableWebSceneTypes};
|