GeoEntityEffectSign

new Cesium.GeoEntityEffectSign(options)

标牌特效,继承自GeoEntityEffect; 注意:此特效不支持bChangeSizeFlowModel属性
Name Type Description
options Object optional 对象具有以下属性:
Name Type Default Description
visible Boolean true optional 特效显隐
pntOffset PlotPoint3D new PlotPoint3D(0, 0, 0.5) optional 特效偏移量
geoEntity GeoEntity null optional 特效绑定的地理实体对象
texts Array.<String> optional 标牌内容(文字在数组中的索引对应html模板的标签id)
styleHtmlPath String optional 样式模板html路径
scale Number optional 标牌大小缩放比例
pixScale Number optional 标牌像素缩放比例(清晰度)

Methods

clone()GeoEntityEffectSign

克隆
Returns:
返回克隆对象

createSignImage()

创建标牌图片

fromJSON(jsonObj)

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

getPixScale()Number

获取标牌像素缩放比例(清晰度)
Returns:
标牌像素缩放比例

getScale()Number

获取标牌大小缩放比例
Returns:
标牌大小缩放比例

getStyleHtmlPath()String

获取样式模板html路径
Returns:
样式模板html路径

getTexts()Array.<String>

获取文本内容
Returns:
文本内容

setGeoEntityParameter(geoEntityParameter, linkGeoEntityUuid)

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

setPixScale(pixScale)

设置标牌像素缩放比例(清晰度)
Name Type Description
pixScale Number 标牌像素缩放比例

setScale(scale)

设置标牌大小缩放比例
Name Type Description
scale Number 标牌大小缩放比例

setStyleHtmlPath(styleHtmlPath)

设置样式模板html路径
Name Type Description
styleHtmlPath String 样式模板html路径

setTexts(texts)

设置文本内容
Name Type Description
texts Array.<String> 文本内容

toJSON()String

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