-
snappingOptions
SnappingOptions
autocast
- 自從:ArcGIS 適用於 JavaScript 4.19 的 API
SnappingOptions 用於編輯。支持自捕捉和特征捕捉。從版本 4.23 開始,SnappingControls UI 自動集成到編輯器小部件中。如果需要修改默認 UI 中提供的內容,請修改
snappingOptions
。例子:
// Creates the Editor with SnappingOptions with no snapping UI const editor = new Editor({ view: view, snappingOptions: { // autocasts to SnappingOptions() enabled: true, featureSources: [{layer: streetsLayer}] // autocasts to FeatureSnappingLayerSource() } });
// Creates the Editor with SnappingControls widget const editor = new Editor({ view: view }); const snappingControls = new SnappingControls({ view: view, snappingOptions: editor.snappingOptions }); // Add the widgets to the view view.ui.add(editor, "top-right"); view.ui.add(snappingControls, "top-left");
基本信息
以下是所在類或對象的基本信息。
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.snappingOptions
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS Editor.classes用法及代碼示例
- JavaScript ArcGIS Editor.on用法及代碼示例
- JavaScript ArcGIS Editor.allowedWorkflows用法及代碼示例
- JavaScript ArcGIS Editor.container用法及代碼示例
- JavaScript ArcGIS Editor.layerInfos用法及代碼示例
- 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.snappingOptions。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。