angular-google-maps icon indicating copy to clipboard operation
angular-google-maps copied to clipboard

Event: Know when map is ready

Open sebholstein opened this issue 10 years ago • 6 comments

Many of you want easy access to the native Map instance and want to know when the map is ready for further operations.

For this reason, I propose to add a new event to SebmGoogleMap. The event gets emitted when the map is ready. $event is the actual native map instance:

<sebm-google-map (mapReady)="doSomething($event)"></sebm-google-map>

Please leave your opinion below. Thanks!

sebholstein avatar Nov 10 '16 20:11 sebholstein

go for it!

RayLuxembourg avatar Nov 10 '16 20:11 RayLuxembourg

This feature would be really cool. :)

p-wunderlich avatar Dec 13 '16 18:12 p-wunderlich

:+1: Awesome!

nthonymiller avatar Dec 21 '16 01:12 nthonymiller

Not firing, can anyone confirm that is working ?

isrmicha avatar Sep 06 '17 17:09 isrmicha

update. nvm caching probs ^^ sry

mmschuler avatar Oct 25 '17 11:10 mmschuler

Working Fine Just change the function name In html like <agm-map (mapReady)="mapLoad($event)"> In type script file protected mapLoad(map) {

console.log("Map Ready");

}

hamzash750 avatar Jun 07 '18 06:06 hamzash750