new XUIScatterMap()
Methods
-
AddScatterData(strName, fLongitude, fDimension, nValue)
-
添加一个散点数据
Parameters:
Name Type Description strName
String 城市名 fLongitude
Float 经度 fDimension
Float 维度 nValue
Number 数值 -
ClearAllData()
-
删除所有数据
-
DelData(strName)
-
删除一个数据
Parameters:
Name Type Description strName
string 要删除的数据名称 -
GetData(strName)
-
获得一个数据
Parameters:
Name Type Description strName
String 城市名称 -
SetDataMaxCount(nCount)
-
显示前多少数据
Parameters:
Name Type Description nCount
Number 缩放比例 Properties:
Name Type Description DataMaxCount
Number 6 -
SetEffectScatterDynamicColor(strColor)
-
动态散点动态颜色
Parameters:
Name Type Description strColor
String 动态颜色 Properties:
Name Type Description EffectScatterDynamicColor
Color "0xff333333" -
SetEffectScatterPointColor(strColor)
-
动态散点颜色
Parameters:
Name Type Description strColor
String 散点颜色 Properties:
Name Type Description EffectScatterPointColor
Color "0xff800080" -
SetMainTittle(strTitle)
-
主标题
Parameters:
Name Type Description strTitle
String 标题 Properties:
Name Type Description MainTittle
String "全国主要城市空气质量 - 百度地图" -
SetMapcenter(fLongitude, fDimension)
-
中心点坐标
Parameters:
Name Type Description fLongitude
Float 经度 fDimension
Float 维度 Properties:
Name Type Description Mapcenter
Collection [104.114129, 37.550339] -
SetMapDrag(bDrag)
-
是否可以拖动
Parameters:
Name Type Description bDrag
Boolean 是否拖动 Properties:
Name Type Description MapDrag
Boolean true -
SetMapStyle(strMapStyle)
-
默认样式
Parameters:
Name Type Description strMapStyle
String 默认样式 Properties:
Name Type Description MapStyle
Combo ["midnight","normal","light","dark","bluish","grayscale","hardedge","darkgreen","pink","grassgreen","googlelite","redalert"] -
SetMapTypeControl(bHave)
-
添加混合图
Parameters:
Name Type Description bHave
Boolean 是否拥有混合图 Properties:
Name Type Description MapTypeControl
Combo [false,true] -
SetMapZoom(nZoom)
-
缩放比例
Parameters:
Name Type Description nZoom
Number 缩放比例 Properties:
Name Type Description MapZoom
Number 5 -
SetNavigationControl(bHave)
-
添加平移缩放控件
Parameters:
Name Type Description bHave
Boolean 是否拥有平移缩放控件 Properties:
Name Type Description NavigationControl
Combo [false,true] -
SetOverviewMapControl(bHave)
-
添加缩略图
Parameters:
Name Type Description bHave
Boolean 是否拥有缩略图 Properties:
Name Type Description OverviewMapControl
Combo [false,true] -
SetScaleControl(bHave)
-
添加比例尺
Parameters:
Name Type Description bHave
Boolean 是否拥有比例尺 Properties:
Name Type Description ScaleControl
Combo [false,true] -
SetScatterData(arrData)
-
设置散点数据
Parameters:
Name Type Description arrData
Array 数据数组 -
SetScatterPointColor(strColor)
-
小散点颜色
Parameters:
Name Type Description strColor
String 散点颜色 Properties:
Name Type Description ScatterPointColor
Color "0xff800080" -
SetSubTittle(strTitle)
-
副标题
Parameters:
Name Type Description strTitle
String 标题 Properties:
Name Type Description SubTittle
String "data from PM25.in" -
SetSubTittleLink(strTitleLink)
-
副标题链接
Parameters:
Name Type Description strTitleLink
String 标题