Skip to content

Commit 567be4f

Browse files
authored
refactor(google-maps): expose event manager (#24898)
Exposes the `MapEventManager` that we use to bind events in the Google Maps package so that users implementing their own components can consume it as well.
1 parent 8840b3c commit 567be4f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/google-maps/public-api.ts

+1
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ export {
3535
AriaLabelFn,
3636
Calculator,
3737
} from './map-marker-clusterer/marker-clusterer-types';
38+
export {MapEventManager} from './map-event-manager';

tools/public_api_guard/google-maps/google-maps.md

+8
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,14 @@ export class MapDirectionsService {
291291
static ɵprov: i0.ɵɵInjectableDeclaration<MapDirectionsService>;
292292
}
293293

294+
// @public
295+
export class MapEventManager {
296+
constructor(_ngZone: NgZone);
297+
destroy(): void;
298+
getLazyEmitter<T>(name: string): Observable<T>;
299+
setTarget(target: MapEventManagerTarget): void;
300+
}
301+
294302
// @public
295303
export class MapGeocoder {
296304
constructor(_ngZone: NgZone);

0 commit comments

Comments
 (0)