Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
Object with the following properties:
|
Members
-
标牌创建模式,可设置为0或1; 0-参数创建(需要设置texts、textStyles、frameStyle三个参数);1-模板创建(需要设置texts,templateUrl)
-
特效id
-
标牌是否立体
-
标号标牌偏移量
-
模型标牌偏移量
-
标牌像素缩放比例(清晰度),当createdMode == 1时生效
-
标牌资源准备完成
-
标牌大小缩放比例
-
signEffectType : SignEffectType
-
标牌类型,当createdMode == 0时生效
-
标牌模板资源路径,当createdMode == 1时生效
Methods
-
释放资源
-
Json对象转特效对象, 注意:json对象中没有包含scene和geoGraphicObject对象,需要调用对应接口设置(未完成)
Name Type Description jsonObj
Object json对象 -
获取标牌柄样式
Returns:
标牌标牌柄样式(setBarStyle()接口) -
获取标牌内容框样式
Returns:
标牌内容框样式(object详见setContentFrameStyle()接口) -
获取标牌文本数组
Returns:
文本数组 -
获取标牌标题样式
Returns:
标牌标题样式(object详见setTitleStyle()接口) -
获取标牌标题
Returns:
标牌标题 -
获取标牌标题框样式
Returns:
标牌标题框样式(object详见setTitleFrameStyle()接口) -
获取标牌标题样式
Returns:
标牌标题样式(object详见setTitleStyle()接口) -
获取标牌托盘样式
Returns:
标牌托盘样式(setTrayStyle()接口) -
设置标牌柄样式,(createMode == 1)时生效
Name Type Description barStyle
Object 标牌柄样式 Name Type Description visible
Boolean 是否显示 lineWidth
Number 线宽(像素) lineColor
String 线色(例:"rgba(255, 0, 0, 1)") barHeight
String 柄高(像素) -
设置标牌内容框样式,(createMode == 1)时生效
Name Type Description contentFrameStyle
Object 标牌内容框样式 Name Type Description visible
Boolean 是否显示 lineWidth
Number 线宽(像素) lineColor
String 线色(例:"rgba(255, 0, 0, 1)") backgroundColor
String 背景色(例例:"rgba(255, 0, 0, 0.4)") arcCorner
String 是否圆角(boolean) image
String 背景图片(例:"http://localhost:8090/iserver/mgis/situationSimulation/Sign/科技.png") -
设置标牌文本数组
Name Type Description texts
Array.<String> 文本数组 -
设置标牌内容文本样式,(createMode == 1)时生效
Name Type Description textStyle
Object 标牌内容文本样式 Name Type Description visible
Boolean 是否显示 color
Number 文字颜色(例:"rgba(255, 0, 0, 1)") fontFamily
String 字体系列 fontStyle
String 字体样式(例:1.默认值:nomal(正常) 2.italic(倾斜)) fontSize
String 字体大小(例:22) fontWeight
String 字体粗细(例:1.关键字nomal(正常)bold(加粗) 2.纯数字100-900的整百数 400(正常) 700加粗) -
设置标牌标题
Name Type Description title
String 标牌标题 -
设置标牌标题框样式,(createMode == 1)时生效
Name Type Description titleFrameStyle
Object 标牌标题框样式 Name Type Description visible
Boolean 是否显示 lineWidth
Number 线宽(像素) lineColor
String 线色(例:"rgba(255, 0, 0, 1)") backgroundColor
String 背景色(例例:"rgba(255, 0, 0, 0.4)") arcCorner
String 是否圆角(boolean) image
String 背景图片(例:"http://localhost:8090/iserver/mgis/situationSimulation/Sign/科技.png") -
设置标牌标题样式,(createMode == 1)时生效
Name Type Description titleStyle
Object 标牌标题样式 Name Type Description visible
Boolean 是否显示 color
Number 文字颜色(例:"rgba(255, 0, 0, 1)") fontFamily
String 字体系列 fontStyle
String 字体样式(例:1.默认值:nomal(正常) 2.italic(倾斜)) fontSize
String 字体大小(例:22) fontWeight
String 字体粗细(例:1.关键字nomal(正常)bold(加粗) 2.纯数字100-900的整百数 400(正常) 700加粗) -
设置标牌托盘样式,(createMode == 1)时生效
Name Type Description trayStyle
Object 标牌托盘样式 Name Type Description visible
Boolean 是否显示 lineWidth
Number 线宽(像素) lineColor
String 线色(例:"rgba(255, 0, 0, 1)") -
特效对象转Json对象, 注意:json对象中没有包含scene和geoGraphicObject对象(未完成)
Returns:
Json字符串 -
Name Type Description options
Object optional Object with the following properties: Name Type Description point
MPoint3D optional 位置点