Skip to content

Commit

Permalink
refactor(google-maps): expose event manager (#24898)
Browse files Browse the repository at this point in the history
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.

(cherry picked from commit 567be4f)
  • Loading branch information
crisbeto committed May 9, 2022
1 parent 9f27303 commit 7df9e3d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/google-maps/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ export {
AriaLabelFn,
Calculator,
} from './map-marker-clusterer/marker-clusterer-types';
export {MapEventManager} from './map-event-manager';
8 changes: 8 additions & 0 deletions tools/public_api_guard/google-maps/google-maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,14 @@ export class MapDirectionsService {
static ɵprov: i0.ɵɵInjectableDeclaration<MapDirectionsService>;
}

// @public
export class MapEventManager {
constructor(_ngZone: NgZone);
destroy(): void;
getLazyEmitter<T>(name: string): Observable<T>;
setTarget(target: MapEventManagerTarget): void;
}

// @public
export class MapGeocoder {
constructor(_ngZone: NgZone);
Expand Down

0 comments on commit 7df9e3d

Please sign in to comment.