Skip to content

Commit 370f1f4

Browse files
Merge pull request #66 from luixaviles/master
Add MapService as event binding on MapComponent
2 parents 89c346c + d372436 commit 370f1f4

File tree

2 files changed

+470
-0
lines changed

2 files changed

+470
-0
lines changed

src/components/map.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,15 @@ export class MapComponent implements OnChanges, OnInit, OnDestroy {
263263
@Output()
264264
ZoomChange: EventEmitter<Number> = new EventEmitter<Number>();
265265

266+
/**
267+
* This event emitter is fired when the map service is available and the maps has been
268+
* Initialized
269+
* @type {EventEmitter<MapService>}
270+
* @memberOf MapComponent
271+
*/
272+
@Output()
273+
MapService: EventEmitter<MapService> = new EventEmitter<MapService>();
274+
266275

267276
///
268277
/// Constructor
@@ -291,6 +300,7 @@ export class MapComponent implements OnChanges, OnInit, OnDestroy {
291300
public ngOnInit(): void {
292301
this.InitMapInstance(this._container.nativeElement);
293302
this.MapPromise.emit(this._mapService.MapPromise);
303+
this.MapService.emit(this._mapService);
294304
}
295305

296306
/**

0 commit comments

Comments
 (0)