Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event: Know when map is ready #740

Closed
sebholstein opened this issue Nov 10, 2016 · 6 comments
Closed

Event: Know when map is ready #740

sebholstein opened this issue Nov 10, 2016 · 6 comments

Comments

@sebholstein
Copy link
Owner

sebholstein commented Nov 10, 2016

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!

@RayLuxembourg
Copy link

go for it!

@pschalk
Copy link

pschalk commented Dec 13, 2016

This feature would be really cool. :)

@nthonymiller
Copy link

👍 Awesome!

sebholstein added a commit that referenced this issue Apr 3, 2017
You can now listen to the new mapReady output
to know when the map is initialized.

Closes #740
sebholstein added a commit that referenced this issue Apr 9, 2017
You can now listen to the new mapReady output
to know when the map is initialized.

Closes #740
sebholstein added a commit that referenced this issue Apr 9, 2017
You can now listen to the new mapReady output
to know when the map is initialized.

Closes #740
Closes #972
sebholstein added a commit that referenced this issue Apr 9, 2017
You can now listen to the new mapReady output
to know when the map is initialized.

Closes #740
Closes #972
sebholstein added a commit that referenced this issue Apr 9, 2017
You can now listen to the new mapReady output
to know when the map is initialized.

Closes #740
Closes #972
franknwankwo pushed a commit to caravancoop/angular2-google-maps that referenced this issue Jun 7, 2017
You can now listen to the new mapReady output
to know when the map is initialized.

Closes sebholstein#740
Closes sebholstein#972
@isrmicha
Copy link

isrmicha commented Sep 6, 2017

Not firing, can anyone confirm that is working ?

@mmschuler
Copy link

mmschuler commented Oct 25, 2017

update. nvm caching probs ^^ sry

@hamzash750
Copy link

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");

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants