XUIOmlMap()

new XUIOmlMap()

Methods

GetSelectItemText() → {String}

获取当前选中节点的名称
Returns:
String

SetAllempty(bAllempty)

是否清空样式
Parameters:
Name Type Description
bAllempty Boolean 是否清空
Properties:
Name Type Description
bAllempty Boolean false

SetButtonState(strTubeName, nButton, nButtonState)

修改管道按钮状态
Parameters:
Name Type Description
strTubeName String 状态改变管道名
nButton Number 0风机1电灯2红外线3监控4水泵5井盖
nButtonState Number 0为正常1为报警
Properties:
Name Type Description
ButtonState Collection ["ACU406",2,1]

SetCloseTriggerPolice(strCloseTrgerName)

关闭指定管道触发报警状态
Parameters:
Name Type Description
strCloseTrgerName String 关闭报警管道名称
Properties:
Name Type Description
CloseTriggerPolice String "ACU406"

SetControlState(strControlStateName, nControlState, nConState)

设置指定管道电子井盖或门禁的状态
Parameters:
Name Type Description
strControlStateName String 指定管道名
nControlState Number 0电子井盖1门禁
nConState Number 0正常状态1报错状态
Properties:
Name Type Description
HideButton Collection ["ACU506",0,1]

SetCoordinate(strCoordinateName, nCoordinate1, nCoordinate2)

修改指定管道坐标
Parameters:
Name Type Description
strCoordinateName String 需修改管道
nCoordinate1 Number 新管道坐标1
nCoordinate2 Number 新管道坐标2
Properties:
Name Type Description
Coordinate Collection ["ACU406",44.286722, 86.084053]

Setempty(bempty)

是否清空所有按钮样式
Parameters:
Name Type Description
bempty Boolean 是否清空
Properties:
Name Type Description
bempty Boolean false

SethideButton(nhide, bhide)

关闭或开启指定的全部类别按钮
Parameters:
Name Type Description
nhide Number 0风机1电灯2红外线3监控4水泵5井盖
bhide Boolean 关闭或开启
Properties:
Name Type Description
hideButton Collection [0,false]

SetIconImagess(strImgName, imgSrc, nIconwidth, nIconheight)

增加标记样式
Parameters:
Name Type Description
strImgName String 标记样式名称
imgSrc ImageProp 标记样式路径
nIconwidth Number 标记宽度
nIconheight Number 标记高度

SetMapCenter(nMapLongitude, nMaplatitude)

设定地图中心点
Parameters:
Name Type Description
nMapLongitude Number 坐标1
nMaplatitude Number 坐标2
Properties:
Name Type Description
MapCenter Collection [44.286608,86.039557]

SetPersonnelempty(bPersonnelempty)

是否清空人员图标
Parameters:
Name Type Description
bPersonnelempty Boolean 是否清空
Properties:
Name Type Description
bPersonnelempty Boolean false

SetPopupContentValue(strSubFont, temValue, levelValue, humidityValue, methaneValue, oxygenValue, hydrogen)

设置各管道弹窗状态数据
Parameters:
Name Type Description
strSubFont String 管道名称
temValue Array 四个舱室的温度数据
levelValue Array 四个舱室的液位数据
humidityValue Array 四个舱室的湿度数据
methaneValue Array 四个舱室的甲烷浓度数据
oxygenValue Array 四个舱室的氧气浓度数据
hydrogen Array 四个舱室的硫化氢浓度数据

SetstateState(strstateName, nState)

改变指定管道状态
Parameters:
Name Type Description
strstateName String 需修改管道名称
nState Number 改变的状态0为蓝1为红2为绿

SetTriggerContent(strTrgStateName, strTrgStateTime, strTrgStateContent)

设置指定管道报警状态内容自定义
Parameters:
Name Type Description
strTrgStateName String 指定管道
strTrgStateTime String 报警状态时间
strTrgStateContent String 报警状态内容
Properties:
Name Type Description
strTriggerContent Collection ["ACU401","2020.08.12","动力舱异常"]

SetTriggerPolice()

开启管道轮播状态

SetTriggerType(strTriggerName, nType)

设置指定管道弹窗的类型及其内容
Parameters:
Name Type Description
strTriggerName String 管道名字
nType Number 0为属性弹窗1为报警弹窗