Class: PrismPoint

Glodon.CIMCube.Animation.Effect. PrismPoint

立体锚点-菱形锥模型

new PrismPoint(map, opt)

立体锚点-菱形锥模型
Parameters:
Name Type Description
map Glodon.CIMCube CIMCube实例
opt Object 菱形锥模型参数
Properties
Name Type Description
originPosition Object 模型位置,对象内属性lon,lat,height
Properties
Name Type Description
lon Number 经度
lat Number 纬度
height Number 高度
numberOfPlies number 层数,默认4
slices number 面数,默认4
height number 模型大小,默认10
silhouetteColor Color 轮廓颜色,默认白色
color Color 模型颜色,默认蓝色
baseAlpha number 基础透明度
increaseAlpha number 递增透明度
topRadius 上半径
duration 动画时长,转角90度需要的时长;每帧转一次
shadow 是否为模型增加阴影
shadowScale 阴影比例;默认:模型是阴影的10倍大小

Members


enableMouseMove :boolean

是否允许鼠标移动事件
Type:
  • boolean

originPosition :Object

原点坐标
Type:
  • Object

Methods


addEventListener(type, listener [, thisArg])

在此事件派发器上添加事件监听.
Parameters:
Name Type Argument Description
type string 事件类型.
listener function 事件监听器.
thisArg Object <optional>
事件监听器的this指针(可选).
Returns:
调用时将删除此事件侦听器的函数.
Type
function

createModel()

创建cesium模型

dispatchEvent(event)

在此事件派发器上派发事件.
Parameters:
Name Type Description
event Object 待派发的事件.

dispose()

释放资源

doAnimation()

开启动画

hasEventListener(type [, listener])

检查此事件派发器上是否存在事件监听,如果不传递事件监听器,则判断是否存在指定事件类型的事件监听.
Parameters:
Name Type Argument Description
type string 事件类型
listener function <optional>
事件监听器(可选).
Returns:
是否存在指定类型及指定事件监听器的事件监听.
Type
boolean

hide()

隐藏

on()

语法糖. on == addEventListener off == removeEventListeners|removeEventListener fire == dispatchEvent

removeEventListener(type, listener)

从此事件派发器上删除指定事件监听.
Parameters:
Name Type Description
type string 事件类型.
listener function 事件监听器.

removeEventListeners(type)

从此事件派发器上删除事件监听,如果不提供事件类型,则删除全部事件监听.
Parameters:
Name Type Description
type string 事件类型.

show()

显示