该图层用于渲染标号。
| SuperMap. | 该图层用于渲染标号。 | 
| Constants | |
| EVENT_TYPES | {Array(String)} | 
| Properties | |
| description | {String} description表示图层的描述信息 | 
| drawGraphicObject | {SuperMap.Control.DrawFeature} drawGraphicObject表示该图层上标号的绘制控件 | 
| isEditable | {Boolean} isEditable表示图层是否可编辑 | 
| isSelected | {Boolean} isSelected表示图层是否可选择 | 
| locked | {Boolean} locked表示图层是否锁定 | 
| plottingEdit | {SuperMap.Control.PlottingEdit} plottingEdit表示该图层上标号的编辑控件 | 
| serverUrl | {String} serverUrl表示标绘服务的URI | 
| tolerancePixel | {Integer} tolerancePixel标识选择对象时的容限。 | 
| Functions | |
| getEditable | 获取图层的可编辑 | 
| getLocked | 获取图层的可锁定 | 
| getSelected | 获取图层的可选择 | 
| setEditable | 设置图层的可编辑。 | 
| setLocked | 设置图层的可锁定。 | 
| setSelected | 设置图层的可选择。 | 
| setVisibility | 设置图层可见性,设置图层的隐藏、显示、重绘的相应可见标记。 | 
| Constructor | |
| SuperMap. | 创建一个标绘图层。 | 
| Functions | |
| addFeatures | 给这个图层添加features。 | 
| createAirDeployment | 创建KJBL部署 | 
| createAirRoute | 创建KJ航线 | 
| createArcRegion | 创建扇形区域(空域、海域、电子卫星覆盖区域、雷达覆盖范围) | 
| createInterferenceBeam | 创建干扰波束 | 
| createLineRelation | 创建对象间(打击、侦察、干扰等)关系连线 | 
| createMissileRoute | 创建DD航线 | 
| createNavyDeployment | 创建HJBL部署 | 
| createNavyRoute | 创建HJ航线 | 
| createPolygonRegion | 创建多边形区域(空域、海域、光学卫星覆盖区域、雷达覆盖范围) | 
| createSatellite | 创建卫星 | 
| createSatelliteTimeWindows | 根据卫星轨迹点序号创建卫星可见时间窗口(时间窗口没有type则不创建时间窗口) | 
| createSatelliteTimeWindows1 | 根据卫星轨迹点序号创建卫星可见时间窗口 | 
| createSymbol | 根据屏幕坐标绘制标号 | 
| createSymbolWC | 根据地理坐标绘制标号 | 
| destroy | 销毁标绘图层,释放资源。 | 
| drawFeature | 在当前图层中绘制一个feature。如果参数中的样式(style)被设置则使用。 否则使用矢量要素的样式。如果未设置要素的样式,则使用图层上的样式。 点标号需要重新计算点,线面标号则沿用以前的处理方式 | 
| getFeatureAt | 获取图层上指定索引的feature | 
| getFeatureByUuid | 根据用户定义的唯一ID获取图层上指定的feature | 
| removeAllFeatures | 清除当前图层所有的矢量要素。 | 
| removeFeatureAt | 删除图层上指定索引的feature | 
| removeFeatureByID | 根据ID删除指定的feature | 
| removeFeatures | 从当前图层中删除feature。这个函数擦除所有传递进来的矢量要素。 参数中的features数组中的每一项,必须是已经添加到当前图层中的feature, 如果无法确定feature数组,则可以调用 removeAllFeatures 来删除所有feature。 如果要删除的feature数组中的元素特别多,推荐使用 removeAllFeatures , 删除所有feature后再重新添加。这样效率会更高。 | 
| Types | |
| “Number”, | |
| Functions | |
| createSatelliteTimeWindows2 | 根据卫星轨迹时刻创建卫星可见时间窗口 | 
| Types | |
| “Time”, | |
| Functions | |
| createArrowLine | 根据两点创建箭头线对象 | 
| createAvoidRegion | 创建避让区域 | 
| createCombinationalCircle | 创建组合圆 | 
| createConcentricCircle | 创建同心圆 | 
| createFlags | 创建多旗 | 
| createGroupObject | 根据屏幕坐标创建组合对象 | 
| createPathText | 创建沿线文本 | 
| createSymbolText | 创建对象标注 | 
| createSymbolText1 | 创建对象标注(带指示线) | 
| createText | 根据屏幕坐标绘制文本 | 
| createTextWC | 根据地理坐标绘制文本 | 
| geoJsonToFeature | 根据 GeoJson 串返回标绘对象 | 
| selectFeature | 判断输入点有没有选中标号。 | 
| setCursorShape | 设置鼠标形状。 | 
| unGroupObject | 解组组合对象 | 
{SuperMap.Control.DrawFeature} drawGraphicObject表示该图层上标号的绘制控件
{SuperMap.Control.PlottingEdit} plottingEdit表示该图层上标号的编辑控件
创建一个标绘图层。
       //创建一个名为“PlottingLayer” 、采用 Canvas2 渲染方式渲染的标绘图层。
 var plottingLayer = new SuperMap.Layer.PlottingLayer("PlottingLayer", serverUrl, {renderers: ["Canvas2"]});
      
      | name | {String} 此图层的图层名。 | 
| serverUrl | {String} 标绘服务地址 | 
| options | {Object} 此类与父类提供的属性,详见下表 | 
本函数中options可设属性:
| renderers | {Array(String)} 可支持渲染器的列表,支持的渲染方式有’SVG’, ‘VML’, ‘Canvas’,’Canvas2’ 。 如果在可选属性中未设置 ‘renderers’ 选项,则使用当前浏览器支持的此列表中的第一个渲染方式。 | 
| credential | {<Supermap.Credential>} 安全验证信息 | 
{SuperMap.Layer.PlottingLayer} 新的标绘图层。
addFeatures: function( features, options ) 
给这个图层添加features。
| features | {Array(SuperMap.Feature.Vector)}需要添加的要素数组。 | 
drawFeature: function( feature, style, option ) 
在当前图层中绘制一个feature。如果参数中的样式(style)被设置则使用。 否则使用矢量要素的样式。如果未设置要素的样式,则使用图层上的样式。 点标号需要重新计算点,线面标号则沿用以前的处理方式
当要素的样式更改或者要素已经添加到图层上需要更新时使用该函数。
| feature | {SuperMap.Feature.Vector}需要绘制的要素 | 
| style | {Object} 风格 | 
removeFeatures: function( features ) 
从当前图层中删除feature。这个函数擦除所有传递进来的矢量要素。 参数中的features数组中的每一项,必须是已经添加到当前图层中的feature, 如果无法确定feature数组,则可以调用 removeAllFeatures 来删除所有feature。 如果要删除的feature数组中的元素特别多,推荐使用 removeAllFeatures , 删除所有feature后再重新添加。这样效率会更高。
| features | {Array(SuperMap.Feature.Vector)} 要删除feature的数组。 | 
createSymbol: function( libID, code, positionPoints, uuid, style, options, custom ) 
根据屏幕坐标绘制标号
       var positionPoints = new SuperMap.Pixel(500,300);
//根据屏幕坐标绘制一个点标号
plottingLayer.createSymbol(421, 20100, positionPoints, "symbol_01", {strokeColor:"#ff00ae"}, {scaleByMap:true});
      
      | libID | {Integer} 标号库ID | 
| code | {Integer} 标号代码 | 
| positionPoints | {Array(SuperMap.Pixel)} 标号位置点 | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 指定标号的样式,详见下表style属性设置 | 
| options | {Object} 指定标号的属性,详见下表options属性设置 | 
| custom | {Object} 用户的自定义属性 | 
本函数中style可设属性:
| display | {String} 如果display属性设置为”none”,标号不显示,默认为”display”。 | 
| fill | {Boolean} 填充是否启用,不需要填充则设置为false。 | 
| fillBackColor | {String} 填充背景颜色,默认为”#ff0000”。(当fillGradientMode属性不为”NONE”时,设置该属性有效。) | 
| fillBackOpacity | {String} 填充背景透明度。默认为”1.00”。(当fillGradientMode属性不为”NONE”时,设置该属性有效。) | 
| fillColor | {String} 填充颜色,默认为”#ff0000”。(当fill属性为true或者fillGradientMode属性不为”NONE”时,设置该属性有效。) | 
| fillGradientMode | {String} 渐变填充方式,有三种方式:”NONE”无渐变,”LINEAR”线性渐变,”RADIAL”辐射渐变,默认为”NONE”。 | 
| fillOpacity | {Number} 填充透明度。默认为0.31。(当fill属性为true或者fillGradientMode属性不为”NONE”时,设置该属性有效。) | 
| fontBackground | {Boolean} 文字背景是否启用,默认为false。 | 
| fontBackgroundColor | {String} 文字背景颜色,默认为”#ff0000”。(当fontBackground属性为true时,设置该属性有效。) | 
| fontColor | {String} 字体颜色,默认为”#000000”。 | 
| fontFamily | {String} 字体类型,默认为”微软雅黑”。 | 
| fontOpacity | {Number} 字体透明度 (0-1)。 | 
| fontPercent | {Number} 字宽百分比 (0-400)。 | 
| fontShadow | {Boolean} 文字阴影是否启用,默认为false。 | 
| fontShadowColor | {String} 文字阴影颜色,默认为”#ff0000”。(当fontShadow属性为true时,设置该属性有效。) | 
| fontShadowOffsetX | {Number} 文字阴影X方向偏移量,单位是:Pixe。 | 
| fontShadowOffsetY | {Number} 文字阴影Y方向偏移量,单位是:Pixe。 | 
| fontSize | {Number} 字体大小,默认为14。 | 
| fontSpace | {Number} 文字之间的间距(0-30),默认为0。 | 
| fontStroke | {Boolean} 字体描边是否启用,默认为false。 | 
| fontStrokeColor | {String} 字体描边颜色,默认为”#ff0000”。(当fontStroke属性为true时,设置该属性有效。) | 
| fontStrokeWidth | {String} 字体描边宽度,默认为”2px”。 | 
| fontStyle | {String} 字体样式。 | 
| fontWeight | {String} 字体粗细,可设值:”normal”, “bold”, “bolder”, “lighter”,默认为”bold”。 | 
| strokeColor | {String} 线颜色,默认为”#ff0000”。 | 
| strokeDashstyle | {String} 线型,有dot,dash,dashdot,longdash,longdashdot,solid几种样式,默认为”solid”,solid表示实线。 | 
| strokeLinecap | {String} 线连接拐点处理,有三种类型butt,round,square,默认为”round”。 | 
| strokeOpacity | {Number} 线透明度(0-1),默认为1。 | 
| strokeWidth | {Number} 线宽度,单位:pixel,默认为2。 | 
| surroundLineColor | {String} 衬线颜色,默认为”#ffff00”。 | 
| surroundLineColorOpacity | {String} 衬线透明度(0-1),默认为”1.00”。 | 
| surroundLineWidth | {Number} 衬线宽度,单位:pixel,默认为4。 | 
本函数中options可设属性:
| dRotate | {Number} 点标号旋转角度,默认为0。 | 
| scaleByMap | {Boolean} 标号是否随图缩放,默认为false。 | 
| maxScale | {Number} 标号最大缩放比例,默认为5。 | 
| minScale | {Number} 标号最小缩放比例,默认为1。 | 
| negativeImage | {Boolean} 是否启用镜像,默认为false。 | 
| positionOffset | {Boolean} 位置点偏移,默认为false。 | 
| positionOffsetType | {Number} 偏移线类型,有两种类型:0直线,1线粗渐变。(当positionOffset属性为true时,设置该属性有效。) | 
| positionOffsetX | {Number} 点标号X方向偏移量。 | 
| positionOffsetY | {Number} 点标号Y方向偏移量。 | 
| space | {Number} 注记与标号的距离,默认为7。 | 
| surroundLineType | {Number} 衬线类型, 点标号有两种类型:0无衬线,1有衬线;线面标号有四种类型:0无衬线,1内侧衬线,2外侧衬线,3双侧衬线。 | 
| textContent | {String} 标号注记内容。 | 
| textDisplay | {Boolean} 注记是否显示,默认为true。 | 
| textPosition | {Number} 注记位置,注记相对于点标号的位置有:0左上,1左下,2右上,3右下,4上,5下,6左,7右,8中间。 | 
createSymbolWC: function( libID, code, positionPoints, uuid, style, options, custom ) 
根据地理坐标绘制标号
       var positionPoints = [];
positionPoints.push(new SuperMap.Geometry.Point(0, 0));
positionPoints.push(new SuperMap.Geometry.Point(30, 20));
//根据地理坐标绘制一个线面标号
plottingLayer.createSymbolWC(22, 1003, positionPoints,"algoSymbol_01", {strokeColor:"#000dff"},{surroundLineType:1});
      
      | libID | {Integer}标号库ID | 
| code | {Integer} 标号代码 | 
| positionPoints | {Array(SuperMap.Geometry.Point)} 标号位置点,高度可以由 SuperMap.Geometry.Point 的tag值保存 | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 指定标号的样式,可参考 createSymbol 中style可设属性进行设置 | 
| options | {Object} 指定标号的属性,可参考 createSymbol 中options可设属性进行设置 | 
| custom | {Object} 用户的自定义属性 | 
createLineRelation: function( startAssociatedUuid, endAssociatedUuid, lineRelationType, uuid, style, options, custom ) 
创建对象间(打击、侦察、干扰等)关系连线
| startAssociatedUuid | {String} 关联对象的唯一ID | 
| endAssociatedUuid | {String} 关联对象的唯一ID | 
| lineRelationType | {SuperMap.Plot.LineRelationType} 连接线类型 | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 指定标号的样式, 可设样式包括: display显示状态、strokeColor线色、strokeDashstyle线型、strokeOpacity线透明度、strokeWidth线宽, 详细说明可参见 createSymbol 中的style表格 | 
| options | {Object} 指定标号的属性,扩展参数 | 
| custom | {Object} 用户的自定义属性 | 
createInterferenceBeam: function( associatedUuid, positionPoints, uuid, style, options, custom ) 
创建干扰波束
| associatedUuid | {String} 关联实体对象的唯一ID,即创建该关联实体时的uuid | 
| positionPoints | {Array(SuperMap.Geometry.Point)} 标号位置点,高度可以由 SuperMap.Geometry.Point 的tag值保存 | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 指定标号的样式, 可设样式包括: display显示状态、strokeColor线色、strokeDashstyle线型、strokeOpacity线透明度、strokeWidth线宽, fill填充、fillBackColor填充背景色、fillBackOpacity填充背景透明度、fillColor填充色、fillGradientMode渐变填充方式、fillOpacity填充透明度、 详细说明可参见 createSymbol 中的style表格 | 
| options | {Object} 指定标号的属性,扩展参数,可设属性包括:textContent注记, 详细说明可参见 createSymbol 中的options表格 | 
| custom | {Object} 用户的自定义属性 | 
createPolygonRegion: function( positionPoints, textContent, textPos, uuid, style, options, custom ) 
创建多边形区域(空域、海域、光学卫星覆盖区域、雷达覆盖范围)
| positionPoints | {Array(SuperMap.Geometry.Point)} 区域管理定位点,高度可以由 SuperMap.Geometry.Point 的tag值保存 | 
| textContent | {String} 多边形区域文字说明 | 
| textPos | {Integer} 文字说明的位置,0代表中心点,1,2,...代表某一个索引点的位置 | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 指定标号的样式,可参考 createSymbol 中style可设属性,其中与衬线相关的属性在此处不可设置 | 
| options | {Object} 指定标号的属性,扩展参数 | 
| custom | {Object} 用户的自定义属性 | 
createArcRegion: function( centerPoint, radius, startAngle, endAngle, textContent, textPos, uuid, style, options, custom ) 
创建扇形区域(空域、海域、电子卫星覆盖区域、雷达覆盖范围)
| centerPoint | {SuperMap.Geometry.Point} 扇形区域的中心点 | 
| radius | {String} 扇形区域的半径 | 
| startAngle | {Integer} 扇形区域的起始角 | 
| endAngle | {Integer} 扇形区域的结束角 | 
| textContent | {String} 扇形区域说明 | 
| textPos | {Integer} 扇形区域说明的位置,为文字角度,-1代表中心点 | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 指定标号的样式,可参考 createSymbol 中style可设属性,其中与衬线相关的属性在此处不可设置 | 
| options | {Object} 指定标号的属性,详见下表 | 
| custom | {Object} 用户的自定义属性 | 
本函数中options可设属性:
| radiusText | {String} 半径文字 | 
| radiusPosAngle | {Integer} 半径线文字角度 | 
| radiusLineType | {SuperMap.Plot.RadiusLineType} 半径线类型 | 
createAirRoute: function( arrRoutePts, routeNodes, uuid, lineStyle, options, custom ) 
创建KJ航线
| arrRoutePts | {Array(Array(SuperMap.Geometry.Point))} 航线点串 | 
| routeNodes | {Array(SuperMap.Plot.RouteNode)} 航站点数组。 | 
| uuid | {String} 实体的唯一标识 | 
| lineStyle | {Object} 航线的样式, 可设样式包括: strokeColor线色、strokeDashstyle线型、strokeOpacity线透明度、strokeWidth线宽, 详细说明可参见 createSymbol 中的style表格 | 
| options | {Object} 指定标号的属性,扩展参数 | 
| custom | {Object} 用户的自定义属性 | 
createNavyRoute: function( arrRoutePts, routeNodes, uuid, lineStyle, options, custom ) 
创建HJ航线
| arrRoutePts | {Array(Array(SuperMap.Geometry.Point))} 航线点串 | 
| routeNodes | {Array(SuperMap.Plot.RouteNode)} 航站点数组。 | 
| uuid | {String} 实体的唯一标识 | 
| lineStyle | {Object} 航线的样式, 可设样式包括: strokeColor线色、strokeDashstyle线型、strokeOpacity线透明度、strokeWidth线宽, 详细说明可参见 createSymbol 中的style表格 | 
| options | {Object} 指定标号的属性,扩展参数 | 
| custom | {Object} 用户的自定义属性 | 
createMissileRoute: function( arrRoutePts, routeNodes, uuid, lineStyle, options, custom ) 
创建DD航线
| arrRoutePts | {Array(Array(SuperMap.Geometry.Point))} 航线点串 | 
| routeNodes | {Array(SuperMap.Plot.RouteNode)} 航站点数组。 | 
| uuid | {String} 实体的唯一标识 | 
| lineStyle | {Object} 航线的样式, 可设样式包括: strokeColor线色、strokeDashstyle线型、strokeOpacity线透明度、strokeWidth线宽, 详细说明可参见 createSymbol 中的style表格 | 
| options | {Object} 指定标号的属性,扩展参数 | 
| custom | {Object} 用户的自定义属性 | 
createNavyDeployment: function ( associatedUuid, subSymbols, uuid, style, options, custom ) 
创建HJBL部署
| associatedUuid | {String} HJBL部署关联的实体对象的唯一ID,即创建该关联实体时的uuid | 
| subSymbols | {Array(SuperMap.Plot.SubSymbol)} 标号的libID、code及textContent信息。 | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 指定标号的样式, 可设样式包括:strokeColor线色、strokeWidth线宽,详细说明可参见 createSymbol 中的style表格 | 
| options | {Object} 指定标号的属性,详见下表 | 
| custom | {Object} 用户的自定义属性 | 
本函数中options可设属性:
| colNum | {Integer} HJBL部署排列的列数,默认为1 | 
| space | {Integer} 行列之间的间距,默认是10,单位是:0.1mm | 
| textContent | {String} 注记内容 | 
createAirDeployment: function ( associatedUuid, subSymbols, uuid, style, options, custom ) 
创建KJBL部署
| associatedUuid | {String} KJBL部署关联的实体对象的唯一ID,即创建该关联实体时的uuid | 
| subSymbols | {Array(SuperMap.Plot.SubSymbol)} 标号的libID、code及textContent信息。 | 
| column | {Integer} KJBL部署对象的列数 | 
| textContent | {String} KJBL部署的注记 | 
| isShowTooltip | {Boolean} 是否显示指示框 | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 指定标号的样式, 可设样式包括:strokeColor线色、strokeWidth线宽、与文字相关的属性,详细说明可参见 createSymbol 中的style表格 | 
| options | {Object} 指定标号的属性,详见下表 | 
| custom | {Object} 用户的自定义属性 | 
本函数中options可设属性:
| colNum | {Integer} KJBL部署排列的列数,默认为1 | 
| space | {Integer} 行列之间的间距,默认是10,单位是:0.1mm | 
| isShowTooltip | {Boolean} 是否显示指示框,默认为显示 | 
createSatellite: function( libID, code, orbitPoints, textContent, uuid, style, options, custom ) 
创建卫星
| libID | {Integer} 标号库ID | 
| code | {Integer} 标号代码 | 
| orbitPoints | {Array(SuperMap.Plot.OrbitPoint)} 卫星轨道星下点轨迹 | 
| textContent | {String} 卫星说明 | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 指定标号的样式,可参考 createSymbol 中style可设属性,其中与衬线相关的属性在此处不可设置 | 
| options | {Object} 指定标号的属性,详见下表 | 
| custom | {Object} 用户的自定义属性 | 
本函数中options可设属性:
| visible | {Boolean} 卫星轨道的可见性,默认为可见 | 
createSatelliteTimeWindows: function( associatedUuid, timeWindows, uuid, style, custom ) 
根据卫星轨迹点序号创建卫星可见时间窗口(时间窗口没有type则不创建时间窗口)
| associatedUuid | {String} 关联的卫星的唯一ID,即创建该关联实体时的uuid | 
| timeWindows | {SuperMap.Plot.TimeWindowParameter} 卫星可见时间窗(起始、结束轨道点序号)数组 | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 指定标号的样式, 可设样式包括: display显示状态、strokeColor线色、strokeDashstyle线型、strokeOpacity线透明度, 详细说明可参见 createSymbol 中的style表格 | 
| custom | {Object} 用户的自定义属性 | 
createSatelliteTimeWindows1: function( associatedUuid, timeWindows, uuid, style, custom ) 
根据卫星轨迹点序号创建卫星可见时间窗口
| associatedUuid | {String} 关联的卫星的唯一ID,即创建该关联实体时的uuid | 
| timeWindows | {SuperMap.Plot.TimeWindowParameter} 卫星可见时间窗(起始、结束轨道点序号)数组 | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 指定标号的样式, 可设样式包括: display显示状态、strokeColor线色、strokeDashstyle线型、strokeOpacity线透明度, 详细说明可参见 createSymbol 中的style表格 | 
| custom | {Object} 用户的自定义属性 | 
createSatelliteTimeWindows2: function( associatedUuid, timeWindows, uuid, style, custom ) 
根据卫星轨迹时刻创建卫星可见时间窗口
| associatedUuid | {String} 关联的卫星的唯一ID,即创建该关联实体时的uuid | 
| timeWindows | {SuperMap.Plot.TimeWindowParameter} 卫星可见时间窗(起始、结束轨道点时间)数组 | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 指定标号的样式, 可设样式包括: display显示状态、strokeColor线色、strokeDashstyle线型、strokeOpacity线透明度, 详细说明可参见 createSymbol 中的style表格 | 
| custom | {Object} 用户的自定义属性 | 
createSymbolText1: function( associatedUuid, textContents, uuid, style, options, custom ) 
创建对象标注(带指示线)
| associatedUuid | {String} 关联实体对象的唯一ID,即创建该关联实体时的uuid | 
| textContents | {Array(String)} 文字内容的数组 | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 指定标号的样式, 可设样式包括: strokeColor线色、strokeDashstyle线型、strokeOpacity线透明度、strokeWidth线宽、与文字相关的属性, 详细说明可参见 createSymbol 中的style表格 | 
| options | {Object} 指定标号的属性,扩展参数 | 
| custom | {Object} 用户的自定义属性 | 
createSymbolText: function( associatedUuid, symbolTexts, uuid, style, options, custom ) 
创建对象标注
| associatedUuid | {String} 关联实体对象的唯一ID,即创建该关联实体时的uuid | 
| symbolTexts | {Array(SuperMap.Plot.SymbolText)} 文字内容的数组 | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 指定标号的样式, 可设样式包括:与文字相关的属性, 详细说明可参见 createSymbol 中的style表格 | 
| options | {Object} 指定标号的属性,详见下表 | 
| custom | {Object} 用户的自定义属性 | 
本函数中options可设属性:
| addFrame | {Boolean} 是否添加边框线,默认为false | 
createText: function( content, pos, uuid, style, custom ) 
根据屏幕坐标绘制文本
| content | {String} 文字内容 | 
| pos | {SuperMap.Pixel} 文本内容的位置 | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 文本的样式, 可参考 createSymbol 中与文字相关的属性设置 | 
| custom | {Object} 用户的自定义属性 | 
{SuperMap.Feature.Vector}创建成功返回相应的feature,否则返回空。
createTextWC: function( content, pos, uuid, style, custom ) 
根据地理坐标绘制文本
| content | {String} 文字内容 | 
| pos | {SuperMap.Geometry.Point} 文本内容的位置 | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 文本的样式, 可参考 createSymbol 中与文字相关的属性设置 | 
| custom | {Object} 用户的自定义属性 | 
{SuperMap.Feature.Vector} 创建成功返回相应的feature,否则返回空。
createPathText: function( content, pts, relLineText, showPathLine, isCurve, isAvoid, uuid, style, options, custom ) 
创建沿线文本
| content | {String} 文字内容 | 
| relLineText | {SuperMap.Plot.RelLineText} 文字在路径线的显示位置 | 
| showPathLine | {Boolean} 是否显示路径线 | 
| isCurve | {Boolean} 路径线是否是贝塞尔曲线 | 
| isAvoid | {Bollean} 是否避让 | 
| pts | {Array(SuperMap.Geometry.Point)} 文本内容的位置 | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 文本的样式, 可设样式包括: display显示状态、strokeColor线色、strokeDashstyle线型、strokeOpacity线透明度、strokeWidth线宽、与衬线相关的属性、 fontColor字体颜色、fontFamily字体类型、fontOpacity字体透明度、fontPercent字宽百分比、fontSize字体大小, 详细说明可参见 createSymbol 中的style表格 | 
| options | {Object} 指定标号的属性,详见下表 | 
| custom | {Object} 用户的自定义属性 | 
本函数中options可设属性:
| showPathLineArrow | {Boolean} 是否显示线的箭头,默认为false | 
| textToLineDistance | {Number} 文字到线的距离(单位像素),默认为0 | 
createArrowLine: function( pts, nArrowTypeStart, nArrowTypeEnd, uuid, style, options, custom ) 
根据两点创建箭头线对象
| pts | {Array(SuperMap.Geometry.Point)} 线的两个端点位置 | 
| nArrowTypeStart | {SuperMap.Plot.ArrowType} 起始箭头类型 | 
| nArrowTypeEnd | {SuperMap.Plot.ArrowType} 结尾箭头类型 | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 标号的样式, 可设样式包括: display显示状态、strokeColor线色、strokeDashstyle线型、strokeOpacity线透明度、strokeWidth线宽、与衬线相关的属性, 详细说明可参见 createSymbol 中的style表格 | 
| options | {Object} 指定标号的属性,可设属性包括:surroundLineType衬线类型,详细说明可参见 createSymbol 中的options表格 | 
| custom | {Object} 用户的自定义属性 | 
createConcentricCircle: function( pts, startAngle, endAngle, uuid, style, options, custom ) 
创建同心圆
| pts | {Array(SuperMap.Geometry.Point)} 线的两个端点位置 | 
| startAngle | {Double} 起始角度 | 
| endAngle | {Double} 结束角度 | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 标号的样式, 可设样式包括: display显示状态、strokeColor线色、strokeDashstyle线型、strokeOpacity线透明度、strokeWidth线宽、与衬线、填充相关的属性, 详细说明可参见 createSymbol 中的style表格 | 
| options | {Object} 指定标号的属性,可设属性包括:surroundLineType衬线类型,详细说明可参见 createSymbol 中的options表格 | 
| custom | {Object} 用户的自定义属性 | 
createCombinationalCircle: function( pts, radius, uuid, style, options, custom ) 
创建组合圆
| pts | {Array(SuperMap.Geometry.Point)} 线的两个端点位置 | 
| radius | {Array(Double)} 每个圆半径集合 | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 标号的样式, 可设样式包括: display显示状态、strokeColor线色、strokeDashstyle线型、strokeOpacity线透明度、strokeWidth线宽、与衬线、填充相关的属性, 详细说明可参见 createSymbol 中的style表格 | 
| options | {Object} 指定标号的属性,可设属性包括:surroundLineType衬线类型,详细说明可参见 createSymbol 中的options表格 | 
| custom | {Object} 用户的自定义属性 | 
createGroupObject: function( features, uuid, style ) 
根据屏幕坐标创建组合对象
| features | {Array(SuperMap.Feature.Vector)} 组合对象的feature | 
| uuid | {String} 实体的唯一标识 | 
| style | {Object} 指定标号的样式, 可设样式包括:strokeColor线色、strokeWidth线宽,详细说明可参见 createSymbol 中的style表格 | 
createFlags: function( features, ratio, uuid, style ) 
创建多旗
| features | {Array(SuperMap.Feature.Vector)} 旗帜标号 | 
| ratio | {Float} 多旗间距与旗子高度的比值,默认是0.8 | 
| uuid | {String} 组合对象的唯一ID或FeatureId。 | 
| style | {Object} 指定标号的样式, 可设样式包括:strokeColor线色、strokeWidth线宽,详细说明可参见 createSymbol 中的style表格 | 
createAvoidRegion: function( controlPoints, style ) 
创建避让区域
| controlPoints | {Array(SuperMap.Geometry.Point)} 避让区域点串 | 
| style | {Object} 指定避让区域的样式, 可设样式包括:strokeColor线色、strokeWidth线宽,详细说明可参见 createSymbol 中的style表格 | 
{SuperMap.Feature.Vector} 返回避让区域的Feature。
geoJsonToFeature: function( geoJson ) 
根据 GeoJson 串返回标绘对象
| geoJson | {String} 需要转换标绘对象的 GeoJson 串 | 
{SuperMap.Feature.Vector} 返回转换后标绘对象,
selectFeature: function( feature, mousePoint, tolerance ) 
判断输入点有没有选中标号。
| feature | {SuperMap.Feature.Vector} 要判断是否选中的feature | 
| mousePoint | {SuperMap.Geometry.Point} 鼠标点,单位经纬度 | 
| tolerance | {Float} 容限,如果不输入,默认使用图层设定的容限,单位像素 | 
{SuperMap.Feature.Vector} 选中的对象。
获取图层的可选择
getSelected: function () 
设置图层的可选择。
setSelected: function ( isSelected ) 
获取图层的可编辑
getEditable: function () 
设置图层的可编辑。
setEditable: function ( isEditable ) 
获取图层的可锁定
getLocked: function () 
设置图层的可锁定。
setLocked: function ( isLocked ) 
设置图层可见性,设置图层的隐藏、显示、重绘的相应可见标记。
setVisibility: function( visibility ) 
销毁标绘图层,释放资源。
destroy: function() 
给这个图层添加features。
addFeatures: function( features, options ) 
在当前图层中绘制一个feature。如果参数中的样式(style)被设置则使用。 否则使用矢量要素的样式。如果未设置要素的样式,则使用图层上的样式。 点标号需要重新计算点,线面标号则沿用以前的处理方式
drawFeature: function( feature, style, option ) 
从当前图层中删除feature。这个函数擦除所有传递进来的矢量要素。 参数中的features数组中的每一项,必须是已经添加到当前图层中的feature, 如果无法确定feature数组,则可以调用 removeAllFeatures 来删除所有feature。 如果要删除的feature数组中的元素特别多,推荐使用 removeAllFeatures , 删除所有feature后再重新添加。这样效率会更高。
removeFeatures: function( features ) 
清除当前图层所有的矢量要素。
removeAllFeatures: function() 
获取图层上指定索引的feature
getFeatureAt: function( index ) 
根据用户定义的唯一ID获取图层上指定的feature
getFeatureByUuid: function( uuid ) 
根据ID删除指定的feature
removeFeatureByID: function( id ) 
删除图层上指定索引的feature
removeFeatureAt: function( index ) 
根据屏幕坐标绘制标号
createSymbol: function( libID, code, positionPoints, uuid, style, options, custom ) 
根据地理坐标绘制标号
createSymbolWC: function( libID, code, positionPoints, uuid, style, options, custom ) 
创建对象间(打击、侦察、干扰等)关系连线
createLineRelation: function( startAssociatedUuid, endAssociatedUuid, lineRelationType, uuid, style, options, custom ) 
创建干扰波束
createInterferenceBeam: function( associatedUuid, positionPoints, uuid, style, options, custom ) 
创建多边形区域(空域、海域、光学卫星覆盖区域、雷达覆盖范围)
createPolygonRegion: function( positionPoints, textContent, textPos, uuid, style, options, custom ) 
创建扇形区域(空域、海域、电子卫星覆盖区域、雷达覆盖范围)
createArcRegion: function( centerPoint, radius, startAngle, endAngle, textContent, textPos, uuid, style, options, custom ) 
创建KJ航线
createAirRoute: function( arrRoutePts, routeNodes, uuid, lineStyle, options, custom ) 
创建HJ航线
createNavyRoute: function( arrRoutePts, routeNodes, uuid, lineStyle, options, custom ) 
创建DD航线
createMissileRoute: function( arrRoutePts, routeNodes, uuid, lineStyle, options, custom ) 
创建HJBL部署
createNavyDeployment: function ( associatedUuid, subSymbols, uuid, style, options, custom ) 
创建KJBL部署
createAirDeployment: function ( associatedUuid, subSymbols, uuid, style, options, custom ) 
创建卫星
createSatellite: function( libID, code, orbitPoints, textContent, uuid, style, options, custom ) 
根据卫星轨迹点序号创建卫星可见时间窗口(时间窗口没有type则不创建时间窗口)
createSatelliteTimeWindows: function( associatedUuid, timeWindows, uuid, style, custom ) 
根据卫星轨迹点序号创建卫星可见时间窗口
createSatelliteTimeWindows1: function( associatedUuid, timeWindows, uuid, style, custom ) 
根据卫星轨迹时刻创建卫星可见时间窗口
createSatelliteTimeWindows2: function( associatedUuid, timeWindows, uuid, style, custom ) 
创建对象标注(带指示线)
createSymbolText1: function( associatedUuid, textContents, uuid, style, options, custom ) 
创建对象标注
createSymbolText: function( associatedUuid, symbolTexts, uuid, style, options, custom ) 
根据屏幕坐标绘制文本
createText: function( content, pos, uuid, style, custom ) 
根据地理坐标绘制文本
createTextWC: function( content, pos, uuid, style, custom ) 
创建沿线文本
createPathText: function( content, pts, relLineText, showPathLine, isCurve, isAvoid, uuid, style, options, custom ) 
根据两点创建箭头线对象
createArrowLine: function( pts, nArrowTypeStart, nArrowTypeEnd, uuid, style, options, custom ) 
创建同心圆
createConcentricCircle: function( pts, startAngle, endAngle, uuid, style, options, custom ) 
创建组合圆
createCombinationalCircle: function( pts, radius, uuid, style, options, custom ) 
根据屏幕坐标创建组合对象
createGroupObject: function( features, uuid, style ) 
解组组合对象
unGroupObject: function( uuid ) 
创建多旗
createFlags: function( features, ratio, uuid, style ) 
创建避让区域
createAvoidRegion: function( controlPoints, style ) 
根据 GeoJson 串返回标绘对象
geoJsonToFeature: function( geoJson ) 
判断输入点有没有选中标号。
selectFeature: function( feature, mousePoint, tolerance ) 
设置鼠标形状。
setCursorShape: function( feature, evt, editMode )