GeoEntityEffectAugment

增强特效,继承自GeoEntityEffect

new Cesium.GeoEntityEffectAugment(options)

Name Type Description
options Object optional 对象具有以下属性:
Name Type Default Description
visible Boolean true optional 特效显隐
pntOffset PlotPoint3D optional 特效偏移量
bChangeSizeFlowModel Boolean true optional 是否随实体缩放发生变化
geoEntity GeoEntity null optional 特效绑定的地理实体对象
augmentPicture String optional 增强图片(资源在mServer包/webapps/iserver/mgis文件夹目录下)
pictureWidth Number 50 optional 增强图片的宽(像素)
pictureHeight Number 50 optional 增强图片的高(像素)
minDistanceDisplay Number 10 optional 限制最小距离的显示
maxDistanceDisplay Number 300000 optional 限制最大距离的显示

Methods

克隆
Returns:
返回克隆对象

fromJSON(jsonObj)

Json字符串转对象
Name Type Description
jsonObj String Json字符串

getAugmentPicture()String

获取增强图片路径
Returns:
增强图片路径

getMaxDistanceDisplay()Number

获取最大显示距离(单位:米)
Returns:
最小显示距离

getMinDistanceDisplay()Number

获取最小显示距离(单位:米)
Returns:
最小显示距离

getPictureHeight()Number

获取增强图片高(像素)
Returns:
图片高

getPictureWidth()Number

获取增强图片宽(像素)
Returns:
图片宽

setAugmentPicture(augmentPicture)

设置增强图片路径
Name Type Description
augmentPicture String 增强图片路径

setGeoEntityParameter(geoEntityParameter, linkGeoEntityUuid)

设置特效属性
Name Type Description
geoEntityParameter GeoEntityParameter 地理实体参数类
linkGeoEntityUuid String optional 实体的UUID

setMaxDistanceDisplay(maxDistanceDisplay)

设置最大显示距离, 大于此距离不再显示增强(单位:米)
Name Type Description
maxDistanceDisplay Number

setMinDistanceDisplay(minDistanceDisplay)

设置最小显示距离, 小于此距离不再显示增强(单位:米)
Name Type Description
minDistanceDisplay Number

setPictureHeight(height)

设置增强图片高(像素)
Name Type Description
height Number 图片高

setPictureWidth(width)

设置增强图片宽(像素)
Name Type Description
width Number 图片宽

toJSON()String

对象转Json字符串
Returns:
Json字符串