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

Not working normaly with ng2-bootstrap tabs!? #976

Closed
Zoly90 opened this issue Apr 8, 2017 · 2 comments
Closed

Not working normaly with ng2-bootstrap tabs!? #976

Zoly90 opened this issue Apr 8, 2017 · 2 comments

Comments

@Zoly90
Copy link

Zoly90 commented Apr 8, 2017

Issue description
after page loaded
after some change on page

Extremely strange, you will be able to see what I am talking about in the photos.
I have some tabs (from ng2-bootstrap), and after the page is loaded, I navigate to the one with "Localization" and I find just a blank grey window. Nothing happens if I zoom or try to move around the map. But, if I open "inspect", zoom in/out of the whole page, poof it appears but still it isn't centralized, it doesn't show the red dot as it should (like in the map outside the tab).

Same situation if I put the google map window in a modal (ng2-bootstrap)....

@Zoly90
Copy link
Author

Zoly90 commented Apr 10, 2017

I managed to resolve part of the issue with the help of the triggerResize() function. So know the map appears but it still looks like in the 2nd picture, which means that it is not centralized (normally I would have to see the red dot marking)

Does anybody have a solution for this? pretty please :P

@sebholstein
Copy link
Owner

@Zoly90 See this answer: #789 (comment)

sebholstein added a commit that referenced this issue Apr 12, 2017
When you call the triggerResize method of AgmMap, the map gets recentered
automaticaly.

Closes #789
Closes #976

BREAKING CHANGES

Recentering of the map after triggerResize call is now the default behavoir.
You can have the previous behavoir with triggerResize(false).
sebholstein added a commit that referenced this issue Apr 12, 2017
When you call the triggerResize method of AgmMap, the map gets recentered
automaticaly.

Closes #789
Closes #976

BREAKING CHANGES

Recentering of the map after a triggerResize call is now the default behavoir.
You can create the previous behavoir with triggerResize(false).
sebholstein added a commit that referenced this issue Apr 13, 2017
When you call the triggerResize method of AgmMap, the map gets recentered
automaticaly.

Closes #789
Closes #976

BREAKING CHANGES

Recentering of the map after a triggerResize call is now the default behavoir.
You can create the previous behavoir with triggerResize(false).
franknwankwo pushed a commit to caravancoop/angular2-google-maps that referenced this issue Jun 7, 2017
When you call the triggerResize method of AgmMap, the map gets recentered
automaticaly.

Closes sebholstein#789
Closes sebholstein#976

BREAKING CHANGES

Recentering of the map after a triggerResize call is now the default behavoir.
You can create the previous behavoir with triggerResize(false).
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

2 participants