-
timeExtent
TimeExtent
autocast
針對 time-aware layers 的時間查詢的時間範圍。例如,它可用於發現在特定日期從晚上 10 點到早上 6 點的夜班期間發生的所有犯罪。
例子:
// query hurricanes that took place in 1992 and // return a hurricane track with the highest wind speed in each category const query = new TopFeaturesQuery({ outFields: ["STAGE, WINDSPEED, PRESSURE"], topFilter: new TopFilter({ topCount: 1, groupByFields: ["STAGE"], orderByFields: ["WINDSPEED DESC"] }), timeExtent: { start: new Date(1992, 0, 1), end: new Date(1992, 11, 31) } }); featureLayer.queryTopFeatures(query) .then(function(response){ // returns a hurricane with the highest wind speed // in each stage... the query will only run against // hurricanes that happened in 1992 });
基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/rest/support/TopFeaturesQuery"], (TopFeaturesQuery) => { /* code goes here */ });
ESM:
import TopFeaturesQuery from "@arcgis/core/rest/support/TopFeaturesQuery";
類:
esri/rest/support/TopFeaturesQuery
繼承: TopFeaturesQuery > Accessor
自從:用於 JavaScript 4.20 的 ArcGIS API
用法說明
TopFeaturesQuery.timeExtent
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS TopFeaturesQuery.topFilter用法及代碼示例
- JavaScript ArcGIS TopFeaturesQuery.spatialRelationship用法及代碼示例
- JavaScript ArcGIS TopFeaturesQuery.where用法及代碼示例
- JavaScript ArcGIS TopFeaturesQuery.units用法及代碼示例
- JavaScript ArcGIS TopFeaturesQuery.outFields用法及代碼示例
- JavaScript ArcGIS TopFeaturesQuery.orderByFields用法及代碼示例
- JavaScript ArcGIS TopFeaturesQuery用法及代碼示例
- JavaScript ArcGIS TopFilter.orderByFields用法及代碼示例
- JavaScript ArcGIS TopFilter.topCount用法及代碼示例
- JavaScript ArcGIS TopFilter用法及代碼示例
- JavaScript TimeSlider.container用法及代碼示例
- JavaScript TypedArray.sort()用法及代碼示例
- JavaScript TimeSlider.next用法及代碼示例
- JavaScript Track.classes用法及代碼示例
- JavaScript TimeSlider.mode用法及代碼示例
- JavaScript ArcGIS TimeInfo.fullTimeExtent用法及代碼示例
- JavaScript TableList trigger-action事件用法及代碼示例
- JavaScript TypedArray map()用法及代碼示例
- JavaScript ArcGIS Terminal用法及代碼示例
- JavaScript TypedArray every()用法及代碼示例
- JavaScript TimeSlider.loop用法及代碼示例
- JavaScript TypedArray.indexOf()用法及代碼示例
- JavaScript TypedArray findIndex()用法及代碼示例
- JavaScript ArcGIS TileLayer layerview-create-error事件用法及代碼示例
- JavaScript Track.goToOverride用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 TopFeaturesQuery.timeExtent。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。