new XUICesiumEarth()
Methods
-
ClearLocData()
-
地点数据
-
SetAlarmInfo()
-
报警框
-
SetAlarmLocData(strFlag, strCity, strLoc, strLon)
-
地点数据
Parameters:
Name Type Description strFlag
ImageProp 国旗 strCity
String 城市 strLoc
String 经度 strLon
String 纬度 -
SetAlarmPoint(nIndex)
-
报警点
Parameters:
Name Type Description nIndex
Number 地理索引 -
SetAlarmPosition(nX, nY)
-
报警框位置偏移
Parameters:
Name Type Description nX
Number x方向 nY
Number y方向 Properties:
Name Type Description AlarmPosition
Collection [0,0] -
SetAlarmTipInfo(strInfo)
-
报警信息
Parameters:
Name Type Description strInfo
String -
SetAttackCircleImage(strImage)
-
攻击扩散圈图片
Parameters:
Name Type Description strImage
ImageProp 颜色 Properties:
Name Type Description AttackCircleImage
ImageProp "websiteCase/XUICesiumEarth/images/redCircle2.png" -
SetAttackLineColor(strColor)
-
攻击线颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description AttackLineColor
Color "0xffff0000" -
SetDefenseCircleImage(strImage)
-
防守扩散圈图片
Parameters:
Name Type Description strImage
ImageProp 颜色 Properties:
Name Type Description DefenseCircleImage
ImageProp "websiteCase/XUICesiumEarth/images/yellowCircle2.png" -
SetDefenseLineColor(strColor)
-
防守线颜色
Parameters:
Name Type Description strColor
String 颜色 Properties:
Name Type Description DefenseLineColor
Color "0xffffff00" -
SetEagleEyePosition(nX, nY)
-
鹰眼图位置偏移
Parameters:
Name Type Description nX
Number x方向 nY
Number y方向 Properties:
Name Type Description EagleEyePosition
Collection [0,0] -
SetEarthDirection(nDirection)
-
控制地球转动
Parameters:
Name Type Description nDirection
Number 方向,0右,1左,2上,3下 -
SetEarthRotate(bRotate)
-
地球自转
Parameters:
Name Type Description bRotate
Boolean true自转false停转 Properties:
Name Type Description EarthRotate
Boolean true -
SetEarthSacle(nSacle)
-
地球缩放
Parameters:
Name Type Description nSacle
Number 缩放值 -
SetEarthSkin(strImg)
-
地球皮肤
Parameters:
Name Type Description strImg
ImageProp 皮肤 Properties:
Name Type Description EarthSkin
ImageProp "websiteCase/XUICesiumEarth/images/worldtietu.png" -
SetReduction()
-
复位
-
SetSliderBotBtnImage(strImage)
-
滚动轴下按钮背景图
Parameters:
Name Type Description strImage
ImageProp 背景图 Properties:
Name Type Description SliderBotBtnImage
ImageProp "websiteCase/XUICesiumEarth/images/btn_jian.png" -
SetSliderPosition(nTop, nLeft)
-
滚动轴位置
Parameters:
Name Type Description nTop
Number y轴位置 nLeft
Number x轴位置 Properties:
Name Type Description SliderPosition
Collection [308,348] -
SetSliderTopBtnImage(strImage)
-
滚动轴上按钮背景图
Parameters:
Name Type Description strImage
ImageProp 背景图 Properties:
Name Type Description SliderTopBtnImage
ImageProp "websiteCase/XUICesiumEarth/images/btn_jia.png" -
SetSliderTrackImage(strImage)
-
滚动轴轨道背景图
Parameters:
Name Type Description strImage
ImageProp 背景图 Properties:
Name Type Description SliderTrackImage
ImageProp "websiteCase/XUICesiumEarth/images/sf_bg.png" -
ShowSlider(bShow)
-
显示滚动轴
Parameters:
Name Type Description bShow
Boolean true显示false不显示 Properties:
Name Type Description Slider
Boolean true