Constructor
new PostRender(viewer)
- Description:
构造函数
- Source:
Parameters:
Name | Type | Description |
---|---|---|
viewer |
Viewer | 地图场景 |
Methods
addEventListener(listener) → {function}
- Description:
注册要在引发事件时执行的回调函数
- Source:
Parameters:
Name | Type | Description |
---|---|---|
listener |
function | 引发事件时要执行的函数 |
Returns:
一个函数,在调用时将删除此事件侦听器
- Type
- function
domFollow(dom, position, optionsopt) → {function}
- Description:
DOM元素跟随
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
dom |
HTMLElement | DOM元素对象 |
|
position |
Cartesian3 | Dom元素绑定坐标,笛卡尔坐标系 |
|
options |
DomOptions |
<optional> |
DOM跟随对象参数,包括视角偏移和最高可视距离设置 |
Returns:
移除回调函数,在调用时将删除此事件侦听器
- Type
- function
removeEventListener(listener) → {Boolean}
- Description:
注销以前注册的回调
- Source:
Parameters:
Name | Type | Description |
---|---|---|
listener |
function | 要取消注册的函数 |
Returns:
是否已删除,true-侦听器已被删除; false-侦听器和范围未向事件注册。
- Type
- Boolean