From d46ce9583a648c8bda4361657470993cef7d9062 Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Mon, 9 May 2022 12:17:52 +0200 Subject: [PATCH] refactor(google-maps): expose event manager 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. --- src/google-maps/public-api.ts | 1 + tools/public_api_guard/google-maps/google-maps.md | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/google-maps/public-api.ts b/src/google-maps/public-api.ts index 28d0cdc647af..07266ec3ee9a 100644 --- a/src/google-maps/public-api.ts +++ b/src/google-maps/public-api.ts @@ -35,3 +35,4 @@ export { AriaLabelFn, Calculator, } from './map-marker-clusterer/marker-clusterer-types'; +export {MapEventManager} from './map-event-manager'; diff --git a/tools/public_api_guard/google-maps/google-maps.md b/tools/public_api_guard/google-maps/google-maps.md index 7147bb331b1f..2f96a1b9fdf6 100644 --- a/tools/public_api_guard/google-maps/google-maps.md +++ b/tools/public_api_guard/google-maps/google-maps.md @@ -291,6 +291,14 @@ export class MapDirectionsService { static ɵprov: i0.ɵɵInjectableDeclaration; } +// @public +export class MapEventManager { + constructor(_ngZone: NgZone); + destroy(): void; + getLazyEmitter(name: string): Observable; + setTarget(target: MapEventManagerTarget): void; +} + // @public export class MapGeocoder { constructor(_ngZone: NgZone);