XUIChinaMap()

new XUIChinaMap()

Methods

GetCheckAreaName() → {String}

获取选中区域名称
Returns:
String - 选中区域名称

SetCheckMapColor(CheckMapColor)

选中地图颜色
Parameters:
Name Type Description
CheckMapColor String "0xff027eb3"
Properties:
Name Type Description
CheckMapColor Color "0xff027eb3"

SetFontSize(nFontSize)

字体大小
Parameters:
Name Type Description
nFontSize Number 字体大小
Properties:
Name Type Description
FontSize Number 23

SetMapBgColor(MapBgColor)

地图背景颜色
Parameters:
Name Type Description
MapBgColor String 背景颜色
Properties:
Name Type Description
MapBgColor Color ""

SetMapBorderColor(MapBorderColor)

地图边界颜色
Parameters:
Name Type Description
MapBorderColor String 边界颜色
Properties:
Name Type Description
MapBorderColor Color "0xff154867"

SetMapColor(MapColor)

地图颜色
Parameters:
Name Type Description
MapColor String "0xff072744"
Properties:
Name Type Description
MapColor Color "0xff072744"

SetMapPos(strLeft, strTop)

地图距左上位置
Parameters:
Name Type Description
strLeft String 距左侧百分比
strTop String 距上方百分比
Properties:
Name Type Description
MapPos Collection ["8%","8%"]

SetShowFake3D(bShow)

显示伪3d效果
Parameters:
Name Type Description
bShow Boolean 是否显示
Properties:
Name Type Description
bShow Boolean false

SetTitleColor(TitleColor)

标题颜色
Parameters:
Name Type Description
TitleColor String "0xffffe87d"
Properties:
Name Type Description
TitleColor Color "0xffffe87d"

SetTitlePos(strLeft, strTop)

标题距左上位置
Parameters:
Name Type Description
strLeft String 距左侧百分比
strTop String 距上方百分比
Properties:
Name Type Description
TitlePos Collection ["25%","3%"]

ShowMapByIndex(nIndex)

显示地图模块
Parameters:
Name Type Description
nIndex Number 序号
Properties:
Name Type Description
MapIndex Number 0