-
-
克隆
Returns:
克隆对象
-
getBillboardScale() → Number
-
获取二维Billboard标牌的缩放
Returns:
缩放
-
getContentFrameStyle() → Object
-
获取标牌内容框样式
Returns:
标牌内容框样式(object详见setContentFrameStyle()接口)
-
getIndecatorLineLength() → Number
-
获取牵引线长度
Returns:
牵引线长度
-
getIndecatorLineRotation() → Number
-
获取标牌牵引线旋转角度
Returns:
牵引线旋转角度
-
getIndecatorLineStyle() → Object
-
获取牵引线样式
Returns:
样式
-
-
获取标牌类型
Returns:
标牌类型
-
-
获取标牌图片的Base64资源字符串或图片路径
-
-
获取标牌参数模式
Returns:
返回参数模式
-
-
获取标牌渲染模式
Returns:
返回渲染模式
-
getTemplateUrl() → String
-
获取Html模板地址
Returns:
Html模板地址
-
getTexts() → Array.<String>
-
获取标牌文本数组
Returns:
文本数组
-
-
获取标牌文本样式数组
Returns:
文本样式数组(object对象见:setTextStyles()接口)
-
-
获取标牌标题
Returns:
标牌标题
-
getTitleFrameStyle() → Object
-
获取标牌标题框样式
Returns:
标牌标题框样式(object详见setTitleFrameStyle()接口)
-
-
获取标牌标题样式
Returns:
标牌标题样式(object详见setTitleStyle()接口)
-
-
获取标牌托盘样式
Returns:
标牌托盘样式(setTrayStyle()接口)
-
isShowIndecatorLine() → boolean
-
获取标牌是否显示牵引线
Returns:
返回是否显示牵引线
-
setBillboardScale(billboardScale)
-
设置二维Billboard标牌的缩放。当 signRenderMode == SignRenderMode.Billboard 时生效
Name |
Type |
Description |
billboardScale |
Number
|
缩放 |
-
setContentFrameStyle(contentFrameStyle)
-
设置标牌内容框样式,(signParmMode == SignParmMode.Parameter)时生效
Name |
Type |
Description |
contentFrameStyle |
Object
|
标牌内容框样式
Name |
Type |
Description |
visible |
Boolean
|
是否显示 |
lineWidth |
Number
|
线宽(mm) |
lineColor |
Array.<Color>
|
线色(例:[Cesium.Color(1, 0, 0, 1)]) |
lineColorGradientType |
ColorGradientType
|
颜色渐变类型(例:ColorGradientType.Horizontal 横向渐变) |
lineDash |
String
|
虚线间隔(单位:mm) |
backgroundColor |
Array.<Color>
|
背景色(例例:[Cesium.Color(1, 0, 0, 0.4)]) |
backgroundColorGradientType |
ColorGradientType
|
颜色渐变类型(例:ColorGradientType.Horizontal 横向渐变) |
arcCorner |
String
|
是否圆角(boolean) |
imagePath |
String
|
背景图片(例:"http://localhost:8090/iserver/mgis/situationSimulation/Sign/科技.png") |
|
-
setIndecatorLineLength(indecatorLineLength)
-
设置标牌牵引线长度(单位:mm)
Name |
Type |
Description |
indecatorLineLength |
Number
|
牵引线长度 |
-
setIndecatorLineRotation(indecatorLineRotation)
-
设置牵引线旋转角度(以屏幕X轴正向为0,逆时针方向为正的角度,单位:度)
Name |
Type |
Description |
indecatorLineRotation |
Number
|
旋转角度 |
-
setIndecatorLineStyle(indecatorLineStyle)
-
设牵引线样式
Name |
Type |
Description |
indecatorLineStyle |
Object
|
样式
Name |
Type |
Description |
lineWidth |
Number
|
线宽(mm) |
aryLineColors |
Array.<Color>
|
线色(例:[MGIS_SuperMap3D.Color(255, 0, 0, 1)]) |
|
-
setIsShowIndecatorLine(showIndecatorLine)
-
设置是否显示牵引线
Name |
Type |
Description |
showIndecatorLine |
boolean
|
是否显示牵引线 |
-
setSignEffectType(signEffectType)
-
设置标牌类型,(signParmMode == SignParmMode.Parameter)时生效
-
-
设置标牌图片的Base64资源字符串或图片路径 (signRenderMode == 2 生效)
Name |
Type |
Description |
signImage |
String
|
标牌图片的Base64资源字符串或图片路径 |
-
setSignParmMode(signParmMode)
-
设置标牌参数模式
-
setSignRenderMode(signRenderMode)
-
设置标牌渲染模式,不支持三维模式(SignRenderMode.Solid)
-
-
设置Html模板地址,(signParmMode == SignParmMode.Custom)时生效
Name |
Type |
Description |
Html模板地址 |
String
|
|
-
-
设置标牌文本数组
Name |
Type |
Description |
texts |
Array.<String>
|
文本数组 |
-
setTextStyle(textStyle, index)
-
设置标牌内容文本样式 (signParmMode == SignParmMode.Parameter)时生效
Name |
Type |
Description |
textStyle |
Object
|
标牌内容文本样式
Name |
Type |
Description |
visible |
Boolean
|
是否显示 |
color |
Color
|
文字颜色(例:Cesium.Color(1255, 0, 0, 1)) |
fontFamily |
String
|
字体系列 |
fontStyle |
String
|
字体样式(例:1.默认值:normal(正常) 2.italic(倾斜)) |
fontSize |
String
|
字体大小(单位:mm) |
fontWeight |
String
|
字体粗细(例:1.关键字normal(正常)bold(加粗) 2.纯数字100-900的整百数 400(正常) 700加粗) |
|
index |
Number
|
标牌内容指定行索引,如果未设置默认为所有内容样式 |
-
setTextStyles(textStyles, textStyle)
-
设置标牌文本样式数组(文本样式数组需与文本数组一一对应)(signParmMode == SignParmMode.Parameter)时生效
Name |
Type |
Description |
textStyles |
Array
|
文本样式数组 |
textStyle |
Object
|
文本样式JSON对象
Name |
Type |
Description |
color |
Color
|
标牌文本颜色字符串(例:Cesium.Color(1, 0, 0, 1)) |
fontFamily |
String
|
标牌文本字体 Arial | Helvetica | ... (例:"Microsoft YaHei") |
fontStyle |
String
|
标牌文本样式 italic | oblique (例:"normal") |
fontSize |
Number
|
标牌文本大小(单位:mm) |
fontWeight |
String
|
标牌文本粗细 normal | bold | bolder | lighter | 100 | 200 | 300 | ... | 900 (例:"400") |
|
-
-
设置标牌标题 (signParmMode == SignParmMode.Parameter)时生效
Name |
Type |
Description |
title |
String
|
标牌标题 |
-
setTitleFrameStyle(titleFrameStyle)
-
设置标牌标题框样式,(signParmMode == SignParmMode.Parameter)时生效
Name |
Type |
Description |
titleFrameStyle |
Object
|
标牌标题框样式
Name |
Type |
Description |
visible |
Boolean
|
是否显示 |
lineWidth |
Number
|
线宽(mm) |
lineColor |
Array.<Color>
|
线色(例:[Cesium.Color(1, 0, 0, 1)]) |
lineColorGradientType |
ColorGradientType
|
颜色渐变类型(例:ColorGradientType.Horizontal 横向渐变) |
lineDash |
String
|
虚线间隔(例:mm) |
backgroundColor |
Array.<Color>
|
背景色(例:[Cesium.Color(1, 0, 0, 0.4)]) |
backgroundColorGradientType |
ColorGradientType
|
颜色渐变类型(例:ColorGradientType.Horizontal 横向渐变) |
arcCorner |
String
|
是否圆角(boolean) |
imagePath |
String
|
背景图片(例:"http://localhost:8090/iserver/mgis/situationSimulation/Sign/科技.png") |
|
-
setTitleStyle(titleStyle)
-
设置标牌标题样式,(signParmMode == SignParmMode.Parameter)时生效
Name |
Type |
Description |
titleStyle |
Object
|
标牌标题样式
Name |
Type |
Description |
visible |
Boolean
|
是否显示 |
color |
Color
|
文字颜色(例:Cesium.Color(1, 0, 0, 1)) |
fontFamily |
String
|
字体系列 |
fontStyle |
String
|
字体样式(例:1.默认值:normal(正常) 2.italic(倾斜)) |
fontSize |
String
|
字体大小(单位:mm) |
fontWeight |
String
|
字体粗细(例:1.关键字normal(正常)bold(加粗) 2.纯数字100-900的整百数 400(正常) 700加粗) |
|
-
-
设置标牌托盘样式,(signParmMode == SignParmMode.Parameter)时生效
Name |
Type |
Description |
trayStyle |
Object
|
标牌托盘样式
Name |
Type |
Description |
visible |
Boolean
|
是否显示 |
lineWidth |
Number
|
线宽(mm) |
lineColor |
Array.<Color>
|
线色(例:[Cesium.Color(1, 0, 0, 1)]) |
lineDash |
String
|
虚线间隔(单位:mm) |
|