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
GoogleMapsAPIWrapper getBounds not returning #696
Comments
@betfun where did you place this component inside your template? inside the component? |
I did this myself and it doesn't work either, this was on Component. |
Even calling "getNativeMap" and doing "then" on that isn't getting called at all. |
I experienced the same issue when trying to do it on a component that had |
I have a similar issue. When I try to do the following: mappp is not printed out. How can I make sure, that the instance is the same like sebm-google-map instance? I would appreciate any help |
I have a MapComponent which displays a map and I want to get its bounds from another component. How can I go about doing this? |
I'm also seeing the same issue as well. |
Using <sebm-google-map (boundsChange)="boundsChange($event)"></sebm-google-map> and then inside your component: boundsChange(event) {
console.log(event.getNorthEast().lat());
console.log(event.getNorthEast().lng());
console.log(event.getSouthWest().lat());
console.log(event.getSouthWest().lng());
} |
@josueadelima Thanks! |
@SebastianM |
@craftpip I'm getting the boundsChange event on map load too ... |
And as @craftpip mention promises are not working, also Angular4 Maybe (haven't test it) they work if you create the map using the GoogleMapsAPIWrapper and not the |
I am trying to getBounds from the directive
http://plnkr.co/edit/nG6lUsm1KLbQRv3SRdgW?p=preview Appreciate any help on this. |
Any fix for this? I'm having the same problem and using the event is not really a solution. |
thanks to @jplew
|
Promises still not work in Angular 4, but this is not only |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
still having the same issue. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Even now, still having the same issue, did someone get it to work? |
Why are you guys even using getBounds from GoogleAPIWrapper? |
Hello,
I am trying to get the maps bounds thourgh the GoogleMapsAPIWrapper service.
I am using the Promise function getBounds().
Nothing is returned.
Here's my code.
the console.log function is not called as the peomise never returns anything.
Thanks
The text was updated successfully, but these errors were encountered: