-
draw-complete
在用戶完成幾何圖形繪製後觸發。
-
類型 說明 一個二維數字數組,表示構成幾何的每個頂點的坐標。
preventDefault Function防止事件傳播在事件鏈上冒泡。
defaultPrevented Boolean調用
preventDefault()
時設置為 true。type String事件的類型。
值永遠是"draw-complete".
屬性:
例子:
// listen to SegmentDrawAction.draw-complete // add the graphic representing the completed // polygon to the view action.on("draw-complete", function (evt) { view.graphics.removeAll(); let polygon = new Polygon({ rings: evt.vertices, spatialReference: view.spatialReference }); graphic = createGraphic(polygon); view.graphics.add(graphic); });
-
基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/views/draw/SegmentDrawAction"], (SegmentDrawAction) => { /* code goes here */ });
ESM:
import SegmentDrawAction from "@arcgis/core/views/draw/SegmentDrawAction";
類:
esri/views/draw/SegmentDrawAction
繼承: SegmentDrawAction > DrawAction > Accessor
自從:用於 JavaScript 4.7 的 ArcGIS API
用法說明
SegmentDrawAction draw-complete事件
的定義如下:
相關用法
- JavaScript ArcGIS SegmentDrawAction cursor-update事件用法及代碼示例
- JavaScript ArcGIS SegmentDrawAction vertex-add事件用法及代碼示例
- JavaScript ArcGIS SegmentDrawAction.on用法及代碼示例
- JavaScript ArcGIS SegmentDrawAction.undo用法及代碼示例
- JavaScript ArcGIS SegmentDrawAction.mode用法及代碼示例
- JavaScript ArcGIS SegmentDrawAction.redo用法及代碼示例
- JavaScript Set add()用法及代碼示例
- JavaScript ArcGIS ServiceAreaParameters.apiKey用法及代碼示例
- JavaScript Set.add()用法及代碼示例
- JavaScript Search.classes用法及代碼示例
- JavaScript Search.container用法及代碼示例
- JavaScript Search用法及代碼示例
- JavaScript ArcGIS ServerInfo.hasServer用法及代碼示例
- JavaScript Set delete()用法及代碼示例
- JavaScript Set forEach()用法及代碼示例
- JavaScript Search search-clear事件用法及代碼示例
- JavaScript Set.clear()用法及代碼示例
- JavaScript Search.when用法及代碼示例
- JavaScript Set clear()用法及代碼示例
- JavaScript Set.entries()用法及代碼示例
- JavaScript Set values()用法及代碼示例
- JavaScript Set.delete()用法及代碼示例
- JavaScript Search select-result事件用法及代碼示例
- JavaScript Search.includeDefaultSources用法及代碼示例
- JavaScript Search.on用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 SegmentDrawAction draw-complete event。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。