Skip to content
This repository has been archived by the owner on Nov 30, 2018. It is now read-only.

Bug with ng-show? #291

Closed
ghost opened this issue Mar 1, 2014 · 6 comments
Closed

Bug with ng-show? #291

ghost opened this issue Mar 1, 2014 · 6 comments

Comments

@ghost
Copy link

ghost commented Mar 1, 2014

Hi!
I want to show / hide the map with an ng-show.
When true, the map shows up but almost all of it is gray and I can't use it...
I have set the refresh option to true as said in the doc.
capture decran 2014-03-01 a 17 21 27

Any idea?

Thanks in advance

HD.

@ghost
Copy link
Author

ghost commented Mar 1, 2014

Resolved it by using data-ng-if instead of ng-show.

#76

@ghost ghost closed this as completed Mar 1, 2014
@nmccready
Copy link
Contributor

This should possibly be added to FAQ? If you want do a PR to the website branch.

@rafenden
Copy link

This solution doesn't work on IE 8.

@cthrax
Copy link
Contributor

cthrax commented Aug 15, 2014

@rafalenden try triggering the google maps "resize" event manually when you show.

@d668
Copy link

d668 commented Apr 17, 2016

How do I trigger resize event manually?

@spacebiscuit
Copy link

spacebiscuit commented Jun 22, 2017

ng-if only made matters worse for me:

Uncaught TypeError: Cannot read property 'firstChild' of null

You have included the Google Maps API multiple times on this page. This may cause unexpected errors.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants