圖層中的字段數組。每個字段表示一個屬性,該屬性可能包含圖層中每個要素的值。例如,名為
POP_2015
的字段將有關總人口的信息存儲為每個特征的數值;此值表示居住在要素地理範圍內的總人數。從客戶端函數創建 SubtypeGroupLayer 時,應在構造函數中與源屬性一起設置此屬性。還必須在此數組或 objectIdField 屬性中設置
objectId
字段。例子:
// define each field's schema const fields = [ new Field({ name: "ObjectID", alias: "ObjectID", type: "oid" }), new Field({ name: "description", alias: "Description", type: "string" }), new Field ({ name: "title", alias: "Title", type: "string" }) ]; // See the sample snippet for the source property const layer = new SubtypeGroupLayer({ // geometryType and spatialReference are inferred // from the input source features source: features, // Object ID field is inferred from the fields array fields: fields });
基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/layers/SubtypeGroupLayer"], (SubtypeGroupLayer) => { /* code goes here */ });
ESM:
import SubtypeGroupLayer from "@arcgis/core/layers/SubtypeGroupLayer";
類:
esri/layers/SubtypeGroupLayer
繼承: SubtypeGroupLayer > Layer > Accessor
自從:用於 JavaScript 4.20 的 ArcGIS API
用法說明
SubtypeGroupLayer.fields
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS SubtypeGroupLayer.fieldsIndex用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.fullExtent用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.formTemplate用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.on用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.sublayers用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.timeOffset用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.maxScale用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.layerId用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.queryFeatureCount用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.queryAttachments用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.timeExtent用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.objectIdField用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.queryExtent用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.getFieldDomain用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.visible用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.refreshInterval用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.createQuery用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.when用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.addAttachment用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.effect用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.definitionExpression用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.version用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.opacity用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.capabilities用法及代碼示例
- JavaScript ArcGIS SubtypeGroupLayer.url用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 SubtypeGroupLayer.fields。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。