單個圖層的一組編輯配置。
如果您有一個可編輯的要素圖層但不希望最終用戶進行任何類型的編輯,您可以通過將
enabled
屬性設置為false
來限製這一點。例子:
const editor = new Editor({ layerInfos: [{ view: view, layer: featureLayer, // pass in the feature layer, formTemplate: { // autocastable to FormTemplate elements: [ { // autocastable to FieldElement type: "field", fieldName: "fulladdr", label: "Full Address" } ] }, enabled: true, // default is true, set to false to disable editing functionality addEnabled: true, // default is true, set to false to disable the ability to add a new feature updateEnabled: false // default is true, set to false to disable the ability to edit an existing feature deleteEnabled: false // default is true, set to false to disable the ability to delete features }] });
基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/widgets/Editor"], (Editor) => { /* code goes here */ });
ESM:
import Editor from "@arcgis/core/widgets/Editor";
類:
esri/widgets/Editor
繼承: Editor > Widget > Accessor
自從:用於 JavaScript 4.11 的 ArcGIS API
用法說明
Editor.layerInfos
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS Editor.classes用法及代碼示例
- JavaScript ArcGIS Editor.on用法及代碼示例
- JavaScript ArcGIS Editor.snappingOptions用法及代碼示例
- JavaScript ArcGIS Editor.allowedWorkflows用法及代碼示例
- JavaScript ArcGIS Editor.container用法及代碼示例
- JavaScript ArcGIS Editor.headingLevel用法及代碼示例
- JavaScript ArcGIS Editor.visible用法及代碼示例
- JavaScript ArcGIS Editor.when用法及代碼示例
- JavaScript ArcGIS Editor用法及代碼示例
- JavaScript ArcGIS Expand.when用法及代碼示例
- JavaScript ArcGIS ElementExpressionInfo.expression用法及代碼示例
- JavaScript ArcGIS ExtrudeSymbol3DLayer.castShadows用法及代碼示例
- JavaScript ArcGIS ExtrudeSymbol3DLayer.clone用法及代碼示例
- JavaScript ArcGIS ExpressionContent用法及代碼示例
- JavaScript ArcGIS ExpressionInfo.title用法及代碼示例
- JavaScript ArcGIS ElevationProfile.profiles用法及代碼示例
- JavaScript ArcGIS ElevationLayer.fullExtent用法及代碼示例
- JavaScript ArcGIS ElevationLayer layerview-create-error事件用法及代碼示例
- JavaScript ArcGIS ElevationLayer.on用法及代碼示例
- JavaScript ArcGIS Expand用法及代碼示例
- JavaScript ArcGIS ElevationProfile.visibleElements用法及代碼示例
- JavaScript ArcGIS ElevationSampler.on用法及代碼示例
- JavaScript ArcGIS ElevationLayer用法及代碼示例
- JavaScript ArcGIS ElevationProfile.when用法及代碼示例
- JavaScript ArcGIS ExtrudeSymbol3DLayer.edges用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 Editor.layerInfos。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。