1. mapReady: Subject<never> = new Subject();
    2. // 发射消息
    3. this.mapReady.pipe(
    4. switchMap((_) => {
    5. return this.store.pipe(
    6. filter(store => store.workspace.pageState.stage === Stage.Third),
    7. select(store => store.workspace.baseData.present.content.bankSiteList.entities),
    8. );
    9. // 地图加载完成后触发操作
    10. onMapReady(map: MapClass) {
    11. const self = this;
    12. this.map = map;
    13. this.mapReady.next();
    14. }
    15. // todo
    16. this.mapReady.unsubscribe();