-
layers
FeatureLayer[]
要在小部件中顯示的 Featurelayers 數組。這些層在數組中的設置順序決定了它們在小部件中的顯示方式。
該小部件旨在僅顯示啟用編輯的圖層。它不會顯示啟用僅編輯屬性的圖層。
例子:
// The layers to display within the widget let militaryUnits = new FeatureLayer({ url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Military/FeatureServer/2" }); let militaryHostile = new FeatureLayer({ url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Military/FeatureServer/6" }); let layers = [militaryUnits, militaryHostile]; // Create FeatureTemplates widget templates = new FeatureTemplates({ container: "templatesDiv", layers: layers });
基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/widgets/FeatureTemplates"], (FeatureTemplates) => { /* code goes here */ });
ESM:
import FeatureTemplates from "@arcgis/core/widgets/FeatureTemplates";
類:
esri/widgets/FeatureTemplates
繼承: FeatureTemplates > Widget > Accessor
自從:用於 JavaScript 4.10 的 ArcGIS API
用法說明
FeatureTemplates.layers
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS FeatureTemplates.on用法及代碼示例
- JavaScript ArcGIS FeatureTemplates.GroupByFunction用法及代碼示例
- JavaScript ArcGIS FeatureTemplates.classes用法及代碼示例
- JavaScript ArcGIS FeatureTemplates.headingLevel用法及代碼示例
- JavaScript ArcGIS FeatureTemplates.FilterFunction用法及代碼示例
- JavaScript ArcGIS FeatureTemplates.container用法及代碼示例
- JavaScript ArcGIS FeatureTemplates.filterFunction用法及代碼示例
- JavaScript ArcGIS FeatureTemplates.visible用法及代碼示例
- JavaScript ArcGIS FeatureTemplates.groupBy用法及代碼示例
- JavaScript ArcGIS FeatureTemplates.visibleElements用法及代碼示例
- JavaScript ArcGIS FeatureTemplates.when用法及代碼示例
- JavaScript ArcGIS FeatureTemplates用法及代碼示例
- JavaScript ArcGIS FeatureTemplates select事件用法及代碼示例
- JavaScript ArcGIS FeatureTemplate.prototype用法及代碼示例
- JavaScript ArcGIS FeatureTable.visible用法及代碼示例
- JavaScript ArcGIS FeatureTable.visibleElements用法及代碼示例
- JavaScript ArcGIS FeatureTable.on用法及代碼示例
- JavaScript ArcGIS FeatureTable.multiSortEnabled用法及代碼示例
- JavaScript ArcGIS FeatureTable.filterGeometry用法及代碼示例
- JavaScript ArcGIS FeatureTable.container用法及代碼示例
- JavaScript ArcGIS FeatureTable.classes用法及代碼示例
- JavaScript ArcGIS FeatureTable.when用法及代碼示例
- JavaScript ArcGIS FeatureTable selection-change事件用法及代碼示例
- JavaScript ArcGIS FeatureLayer.queryExtent用法及代碼示例
- JavaScript ArcGIS FeatureLayer.when用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 FeatureTemplates.layers。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。