Global

Members

map

Property: map {<SuperMap.Map>}

maxCount

Property: maxCount {int} 可撤销事务步数

redoTransactions

Property: redoTransactions {<Array(<SuperMap.Plot.Transaction>)}操作事务列表

TransactionManager

Class: SuperMap.Plot.TransactionManager 标绘对象的自定义属性类,维护 <SuperMap.Plot.Transaction> 的列表。

undoTransactions

Property: undoTransactions {<Array(<SuperMap.Plot.Transaction>)}操作事务列表

Methods

_calculateParts()

leaflet/layer/ArcRegion.js, line 372

Method: calculateParts 重写了父类的方法

_modifyPoint()

leaflet/layer/ArcRegion.js, line 709

Method: modifyPoint 修改位置点

Parameters: index - {Integer} 位置点索引。 pt - {<SuperMap.Geometry.Point>} 位置点。

_radiusGeometry()

leaflet/layer/ArcRegion.js, line 532

Method: radiusGeometry 创建半径对象。

_resizeLatLngs()

leaflet/layer/ArcRegion.js, line 749

Method: resizeControlPoints 根据拖动的手柄位置,改变编辑点坐标

_reView()

leaflet/layer/ArcRegion.js, line 687

Method: reView 随图缩放时,沿线文字重新计算

_textGeometry()

leaflet/layer/ArcRegion.js, line 449

Method: radiusGeometry 创建半径对象。

add()

leaflet/plot/TransactionManager.js, line 63

APIMethod: add 添加事务

Parameters: transaction - {String} 新的事务。

destroy()

leaflet/layer/ArcRegion.js, line 352

APIMethod: destroy 销毁几何图形。

destroy()

leaflet/plot/TransactionManager.js, line 46

APIMethod: destroy 销毁该类,释放相关资源

getArcPts()

leaflet/layer/ArcRegion.js, line 814

Method: getArcPts 获取扇形点串。

move()

leaflet/layer/ArcRegion.js, line 800

Method: move 沿着x、y轴的正方向上按照给定的位移移动几何图形,move 不仅改变了几何图形的位置并且清理了边界缓存。

Parameters: x - {Float} x轴正方向上移动的距离。 y - {Float} y轴正方向上移动的距离。

redo()

leaflet/plot/TransactionManager.js, line 89

APIMethod: redo 重做。

undo()

leaflet/plot/TransactionManager.js, line 75

APIMethod: undo 撤销。

Type Definitions

styleObject

Properties:
Name Type Default Description
display string "display" 可选

标号显隐。

color string #ff0000 可选

线颜色。

lineSymbolID number 0 可选

线型,支持(0:实线,1:长虚线,2:由点构成的直线,3:由线划线段组成的直线,4:由重复的线划点图案构成的直线)五种线型,随着线宽的变化可以很好的表达线型,但局限于支持的线型,优先级高于dashArray。

dashArray string 可选

线型,它是一个数列,数与数之间用逗号隔开,指定短划线和缺口的长度dashArray,可以自由的设置线型样式,但随着线宽的变化线型表达不理想,优先级低于lineSymbolID。如:"0,0"实线,"5,10"虚线。

opacity number 1 可选

线透明度(0-1)。

weight number 2 可选

线宽度,单位:pixel。

surroundLineColor string "#ffff00" 可选

衬线颜色。

surroundLineColorOpacity number 1.0 可选

衬线透明度。

surroundLineWidth number 4 可选

衬线宽度,单位:pixel。

fill boolean false 可选

填充。适用于面对象

fillColor string "#ff0000" 可选

填充颜色,渐变填充前景色。

fillOpacity number 0.31 可选

填充透明度,渐变填充前景透明度。

fillBackColor string "#ff0000" 可选

渐变填充背景色。

fillBackOpacity number 1.0 可选

渐变填充背景透明度。

fillGradientMode string "NONE" 可选

渐变填充样式,可设值:"NONE","LINEAR","RADIAL"。

fontColor string #000000 可选

字体颜色。

fontSize number 14 可选

字体大小。

fontFamily string 微软雅黑 可选

字体类型。

fontOpacity number 1 可选

字体透明度 (0-1)。

fontStyle string 可选

字体样式。

fontWeight string bold 可选

字体粗细,可设值:"normal", "bold", "bolder", "lighter",默认为"bold"。

fontPercent number 0 可选

字宽百分比 (0-400)。

fontSpace number 0 可选

文字之间的间距(0-30)。

fontBackground boolean false 可选

文字背景是否启用。

fontBackgroundColor string #ff0000 可选

文字背景颜色。(当fontBackground属性为true时,设置该属性有效。)

fontShadow boolean false 可选

文字阴影是否启用。

fontShadowColor string #ff0000 可选

文字阴影颜色。(当fontShadow属性为true时,设置该属性有效。)

fontShadowOffsetX number 0 可选

文字阴影X方向偏移量,单位是:pixel。(当fontShadow属性为true时,设置该属性有效。)

fontShadowOffsetY number 0 可选

文字阴影Y方向偏移量,单位是:pixel。(当fontShadow属性为true时,设置该属性有效。

fontStroke boolean false 可选

字体描边是否启用。

fontStrokeColor string #ff0000 可选

字体描边颜色。(当fontStroke属性为true时,设置该属性有效。)

fontStrokeWidth string 2px 可选

字体描边宽度。(当fontStroke属性为true时,设置该属性有效。)