Skip to content

Commit

Permalink
feat: Add map eventhandlerset event
Browse files Browse the repository at this point in the history
Would be used isntead of mapService.loaded to register layers
  • Loading branch information
FilipLeitner committed Feb 8, 2024
1 parent e526455 commit 7be199c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/hslayers/shared/event-bus/event-bus.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {BehaviorSubject, Subject} from 'rxjs';
import {BehaviorSubject, ReplaySubject, Subject} from 'rxjs';
import {Injectable} from '@angular/core';

import {Feature, Map} from 'ol';
Expand Down Expand Up @@ -113,6 +113,7 @@ export class HsEventBusService {
event: string;
extent: number[];
}> = new Subject();
mapEventHandlersSet: ReplaySubject<void> = new ReplaySubject();
mapCenterSynchronizations: Subject<any> = new Subject();
mapLibraryChanges: Subject<any> = new Subject();
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ export class HsLayerManagerService {
onLayerRemove,
onResolutionChange,
];
this.hsEventBusService.mapEventHandlersSet.next();
}

/**
Expand Down

0 comments on commit 7be199c

Please sign in to comment.