Skip to content

Commit

Permalink
feat(AgmCircle): add getNativeMap function
Browse files Browse the repository at this point in the history
adds getNativeMap function to CircleManager to allow direct access to Google Apis
  • Loading branch information
Svyatoslavik authored and doom777 committed Sep 1, 2019
1 parent 44eac3a commit 23c42cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/services/managers/circle-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ export class CircleManager {
return this._circles.get(circle).then((c) => { return c.setRadius(circle.radius); });
}

getNativeCircle(circle: AgmCircle): Promise<mapTypes.Circle> {
return this._circles.get(circle);
}

createEventObservable<T>(eventName: string, circle: AgmCircle): Observable<T> {
return new Observable((observer: Observer<T>) => {
let listener: mapTypes.MapsEventListener = null;
Expand Down

0 comments on commit 23c42cd

Please sign in to comment.