| 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 jsonObjObject json对象 -
获取标牌柄样式
Returns:
标牌标牌柄样式(setBarStyle()接口) -
获取标牌内容框样式
Returns:
标牌内容框样式(object详见setContentFrameStyle()接口) -
获取标牌文本数组
Returns:
文本数组 -
获取标牌标题样式
Returns:
标牌标题样式(object详见setTitleStyle()接口) -
获取标牌标题
Returns:
标牌标题 -
获取标牌标题框样式
Returns:
标牌标题框样式(object详见setTitleFrameStyle()接口) -
获取标牌标题样式
Returns:
标牌标题样式(object详见setTitleStyle()接口) -
获取标牌托盘样式
Returns:
标牌托盘样式(setTrayStyle()接口) -
设置标牌柄样式,(createMode == 1)时生效
Name Type Description barStyleObject 标牌柄样式 Name Type Description visibleBoolean 是否显示 lineWidthNumber 线宽(像素) lineColorString 线色(例:"rgba(255, 0, 0, 1)") barHeightString 柄高(像素) -
设置标牌内容框样式,(createMode == 1)时生效
Name Type Description contentFrameStyleObject 标牌内容框样式 Name Type Description visibleBoolean 是否显示 lineWidthNumber 线宽(像素) lineColorString 线色(例:"rgba(255, 0, 0, 1)") backgroundColorString 背景色(例例:"rgba(255, 0, 0, 0.4)") arcCornerString 是否圆角(boolean) imageString 背景图片(例:"http://localhost:8090/iserver/mgis/situationSimulation/Sign/科技.png") -
设置标牌文本数组
Name Type Description textsArray.<String> 文本数组 -
设置标牌内容文本样式,(createMode == 1)时生效
Name Type Description textStyleObject 标牌内容文本样式 Name Type Description visibleBoolean 是否显示 colorNumber 文字颜色(例:"rgba(255, 0, 0, 1)") fontFamilyString 字体系列 fontStyleString 字体样式(例:1.默认值:nomal(正常) 2.italic(倾斜)) fontSizeString 字体大小(例:22) fontWeightString 字体粗细(例:1.关键字nomal(正常)bold(加粗) 2.纯数字100-900的整百数 400(正常) 700加粗) -
设置标牌标题
Name Type Description titleString 标牌标题 -
设置标牌标题框样式,(createMode == 1)时生效
Name Type Description titleFrameStyleObject 标牌标题框样式 Name Type Description visibleBoolean 是否显示 lineWidthNumber 线宽(像素) lineColorString 线色(例:"rgba(255, 0, 0, 1)") backgroundColorString 背景色(例例:"rgba(255, 0, 0, 0.4)") arcCornerString 是否圆角(boolean) imageString 背景图片(例:"http://localhost:8090/iserver/mgis/situationSimulation/Sign/科技.png") -
设置标牌标题样式,(createMode == 1)时生效
Name Type Description titleStyleObject 标牌标题样式 Name Type Description visibleBoolean 是否显示 colorNumber 文字颜色(例:"rgba(255, 0, 0, 1)") fontFamilyString 字体系列 fontStyleString 字体样式(例:1.默认值:nomal(正常) 2.italic(倾斜)) fontSizeString 字体大小(例:22) fontWeightString 字体粗细(例:1.关键字nomal(正常)bold(加粗) 2.纯数字100-900的整百数 400(正常) 700加粗) -
设置标牌托盘样式,(createMode == 1)时生效
Name Type Description trayStyleObject 标牌托盘样式 Name Type Description visibleBoolean 是否显示 lineWidthNumber 线宽(像素) lineColorString 线色(例:"rgba(255, 0, 0, 1)") -
特效对象转Json对象, 注意:json对象中没有包含scene和geoGraphicObject对象(未完成)
Returns:
Json字符串 -
Name Type Description optionsObject optional Object with the following properties: Name Type Description pointMPoint3D optional 位置点
