Sketch

Sketch

基础用法

InLayer

AddUI

WithoutUI

Dialog

Sketch Props

proptypedefaultdescriptions
defaultOptions__esri.SketchProperties{}构造函数参数
v-model__esri.Graphic[]-当前绘制内容
:multiplebooleantrue允许绘制多个
:availableCreatureToolsstring[]-Property controlling the visibility and order of create tool buttons.
:position__UiAddPosition‘top-right’ui添加位置
modelValueInitFrom‘modelValue’|‘layerGraphics’‘modelValue’初始化数据来源
:viewModelPointSymbol__esri.SketchViewModel[‘pointSymbol’]-绘制点样式
:viewModelPolygonSymbol__esri.SketchViewModel[‘polygonSymbol’]-绘制面样式
:viewModelPolylineSymbol__esri.SketchViewModel[‘polylineSymbol’]-绘制线样式
:viewModelActiveFillSymbol__esri.SketchViewModel[‘activeFillSymbol’]-激活面样式

Sketch Emits

nameargumentsdescriptions
loadview: __esri.View
sketch: __esri.Sketch
实例加载后
complete__esri.SketchCreateEvent | __esri.SketchUpdateEvent创建或修改完成时
update__esri.SketchUpdateEvent修改时
create__esri.SketchCreateEvent创建时