初遇Citymaker (二)
作者:互联网
针对 事件推送模块 我们使用eventBus来做 后续的功能都会使用这个事件总线
```javascript
/**
- Created by Administrator on 2017/4/26 0026.
*/
import EventEmitter from 'wolfy87-eventemitter'
export const cwEventBus = {};
/**
- 创建一个事件总线实例
- / cwEventBus.bus = new EventEmitter; /*
- 地图加载完成
- / cwEventBus.CM_MAPLOAD = "CM_MAP_LOAD"; /*
- 地图信息准备获取完成
- */
cwEventBus.CM_MAPREADY = "CM_MAP_READY";
/**
- 出图完成
- */
cwEventBus.CM_EXPORT_IMG_END = "CM_EXPORT_IMG_END";
/**
- 查询结果
- / cwEventBus.CM_SELECT_QUERY_RESULT = "CM_SELECT_QUERY_RESULT"; /*
- 缓冲分析查询所在网格结束
- */
cwEventBus.CM_BUFFER_GRID_RESULT = "CM_BUFFER_GRID_RESULT";
/**
- 消防物联从后台获得数据
*/
cwEventBus.SOCKETIO_RESPONSE = "SOCKETIO_RESPONSE";
/**
- 消防物联结束获得数据
*/
cwEventBus.SOCKETIO_CLOSE_RESPONSE = "SOCKETIO_CLOSE_RESPONSE";
/**
- 二三维联动时,开始使用
- @type {string}
*/
cwEventBus.TRANSFORM_23D_BEDGIN = "TRANSFORM_23D_BEDGIN";
/**
- 二三维联动时,结束使用
- @type {string}
*/
cwEventBus.TRANSFORM_23D_END = "TRANSFORM_23D_END";
标签:cwEventBus,END,Citymaker,CM,23D,TRANSFORM,初遇,RESPONSE 来源: https://www.cnblogs.com/haibalai/p/15829582.html