Class: SketchStage

SketchStage

new SketchStage(options)

sketchEditor/base/SketchStage.js, line 2

草图图形集合

Name Type Description
options Object

构造参数

Name Type Description
view MapView | SceneView 可选

地图视图对象

layer GraphicsLayer 可选

草图图层管对象

sketchStyle SketchStyle 可选

草图符号

_hitTestEvent function 可选

草图拾取事件

Members

currentVertexIndex

当前顶点序号

midVertexGraphics

草图中点实图形

movingLineGraphics

草图正移动线图形

selectBoxGraphics

选中草图时外包盒

selectBoxVertexGraphics

选中草图时外包盒顶点

snapGraphics

捕获时的图形

vertexGraphics

草图顶点图形

Methods

clone(){Feature}

sketchEditor/base/SketchStage.js, line 117

克隆并返回新要素

Returns:
Type Description
Feature 克隆后的新要素

toJSON(){Object}

sketchEditor/base/SketchStage.js, line 125

导出一个JSON对像

Returns:
Type Description
Object JSON对像