<< Click to Display Table of Contents >>

 

new sg.Edit (MOVE, ROTATE, SCALE, VERTICES)

 

 

Description

Edit.js

 

 

Parameters

 

Parameter

Type

Description

Map

MapBase

The target Map of the Edit tool.

 

 

Properties

 

Property

Type

Description

MOVE


Move feature

ROTATE


Rotate feature

SCALE


Scale feature

VERTICES


Edit vertices

 

 

Methods

 

Method

Type

Description

activate(tool, graphic, options)

tool:Number

graphic:sg.Graphic

options:Object

Activate edit tool

set object

Name

Type

Description

allowAddVertices

Boolean

Specifies whether users can add new vertices. Valid geometry: Polyline, Polygon.

allowDeleteVertices

Boolean

Specifies whether users can delete vertices. Valid geometry: Polygon, Polygon, Multipoint.

ghostLine

sg.symbols.LineSymbol

Symbol for guide lines, displayed when moving vertices.

newVertexSymbol        

sg.symbols.MarkerSymbol

Symbol for insertable vertices.

scaleSymbol

sg.symbols.MarkerSymbol

Symbol for scale handle.

 

scaleBoxSymbol

sg.symbols.LineSymbol

Symbol for feature outline

uniformScaling

Boolean

Specifies whether the geometry is resized if the aspect ratio will be preserved.

vertexSymbol

sg.symbols.MarkerSymbol

Symbol for vertices.

deactivate()


Deactivate edit tool

 

 


©2015 Supergeo Technologies Inc.