GeoEntityEffectExtendFactory

new Cesium.GeoEntityEffectExtendFactory()

扩展特效工厂

Methods

clearText()

清空文本

createCameraFlyExtendEffect()GeoEntityEffectExtend

创建相机飞行特效
Name Type Description
options.position Cartesian3 相机位置
options.heading Number 相机朝向角
options.pitch Number 相机俯仰角
options.roll Number 相机翻滚角
options.duration Number 相机飞行时间
Returns:
相机飞行特效

createTextExtendEffect()GeoEntityEffectExtend

创建文本特效
Name Type Description
options.time Number 显示时长(单位:秒)
options.position.type Number 位置类型(0为自定义位置,1、2、3、4、5、6、7、8、9分别为左上、上中、右上、左中、正中、右中、左下、中下、右下)
options.width Number 背景宽度(若不设置则自适应)(像素单位)
options.height Number 背景高度(若不设置则自适应)(像素单位)
options.backColor String 背景颜色
options.borderColor String 边框颜色
options.borderStyle String 边框类型
options.borderWidth Number 边框宽度(像素单位)
options.borderRadius Number 边框圆角半径(像素单位)
options.paddingLeft Number 左内边距(像素单位)
options.paddingRight Number 右内边距(像素单位)
options.paddingTop Number 上内边距(像素单位)
options.paddingBottom Number 下内边距(像素单位)
text.text String 文本内容
text.color String 文本颜色
text.fontSize Number 文本字体大小(像素单位)
text.fontFamily String 文本字体类型
text.fontStyle String 文本字体样式(normal/italic/oblique)
text.fontWeight Number 文本字体加粗
text.lineHeight Number 文本行距(字号的倍数)
text.letterSpacing Number 文本字间距(像素单位)
text.textDecoration.type String 文本装饰(underline/overline/line-through)
text.textDecoration.color String 文本装饰颜色
text.textAlign String 文本对齐方式(left/center/right)
text.margin Number 文本左对齐或右对齐时距离左边或右边的距离
text.textShadow.color String 阴影颜色
text.textShadow.left Number 阴影距左边距离(像素单位)
text.textShadow.top Number 阴影距上边距离(像素单位)
text.textShadow.size Number 阴影宽度(像素单位)
text.stroke.width Number 描边宽度(像素单位)
text.stroke.color String 描边颜色
Returns:
文本特效

init()

初始化扩展动作工厂
Name Type Description
options.viewer Viewer 可视化主窗口
options.document Document 文档节点