-
feature
Graphic
包含可編輯屬性的關聯要素。訪問它的常用方法是通過MapView 或SceneView's
hitTest()
方法。例子:
// Check if a user clicked on an incident feature. view.on("click", function(event) { view.hitTest(event).then(function(response) { // Display the attributes of selected incident feature in the form if (response.results[0].graphic && response.results[0].graphic.layer.id == "incidentsLayer") { formVM.feature = result.results[0].graphic } }); });
基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/widgets/FeatureForm"], (FeatureForm) => { /* code goes here */ });
ESM:
import FeatureForm from "@arcgis/core/widgets/FeatureForm";
類:
esri/widgets/FeatureForm
繼承: FeatureForm > Widget > Accessor
自從:用於 JavaScript 4.9 的 ArcGIS API
用法說明
FeatureForm.feature
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS FeatureForm.formTemplate用法及代碼示例
- JavaScript ArcGIS FeatureForm.when用法及代碼示例
- JavaScript ArcGIS FeatureForm.getValues用法及代碼示例
- JavaScript ArcGIS FeatureForm.visible用法及代碼示例
- JavaScript ArcGIS FeatureForm.classes用法及代碼示例
- JavaScript ArcGIS FeatureForm.container用法及代碼示例
- JavaScript ArcGIS FeatureForm.submit用法及代碼示例
- JavaScript ArcGIS FeatureForm.on用法及代碼示例
- JavaScript ArcGIS FeatureForm.headingLevel用法及代碼示例
- JavaScript ArcGIS FeatureForm.layer用法及代碼示例
- JavaScript ArcGIS FeatureForm用法及代碼示例
- JavaScript ArcGIS FeatureForm submit事件用法及代碼示例
- JavaScript ArcGIS FeatureFilter用法及代碼示例
- JavaScript ArcGIS FeatureFilter.spatialRelationship用法及代碼示例
- JavaScript ArcGIS FeatureFilter.createQuery用法及代碼示例
- JavaScript ArcGIS FeatureFilter.where用法及代碼示例
- JavaScript ArcGIS FeatureLayer.queryExtent用法及代碼示例
- JavaScript ArcGIS FeatureLayer.when用法及代碼示例
- JavaScript ArcGIS FeatureLayer refresh事件用法及代碼示例
- JavaScript ArcGIS FeatureLayer.getFieldDomain用法及代碼示例
- JavaScript ArcGIS FeatureLayer.queryFeatureCount用法及代碼示例
- JavaScript ArcGIS Feature.visible用法及代碼示例
- JavaScript ArcGIS FeatureLayer.formTemplate用法及代碼示例
- JavaScript ArcGIS Feature用法及代碼示例
- JavaScript ArcGIS FeatureLayer.relationships用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 FeatureForm.feature。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。