class
DrawPolygonTool
implements ITool
Polygon drawing tool. Click to add vertices, double-click to close and finish.
Constructor
new DrawPolygonTool(options: DrawPolygonToolOptions) | Parameter | Type | Description | |
|---|---|---|---|
options | DrawPolygonToolOptions | required | Tool configuration |
DrawPolygonToolOptions
| Field | Type | Description | |
|---|---|---|---|
targetLayer | ITargetLayer | required | Layer to add drawn features to |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
id | 'draw-polygon' | readonly | Tool ID |
name | 'Draw Polygon' | readonly | Display name |