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

Not working on angular modal #1932

Open
jofftiquez opened this issue Aug 29, 2016 · 5 comments
Open

Not working on angular modal #1932

jofftiquez opened this issue Aug 29, 2016 · 5 comments

Comments

@jofftiquez
Copy link

jofftiquez commented Aug 29, 2016

Version

2.3.4

Steps to reproduce

Create a modal and put the <ui-gmap-google-map center='map.center' zoom='map.zoom'></ui-gmap-google-map>

Expected Behavior

The map should be loaded on the canvas on modal.

Actual Behavior

It does not load.

But when I normally load it (not in the modal) it works

@markmssd
Copy link

Did you properly adjust the height of the map via css?

@jofftiquez
Copy link
Author

jofftiquez commented Aug 30, 2016

Yes I did, but the map was just empty. @markmssd

@kamaatakh
Copy link

I'm using the library currently and noticed the map won't load with the latest lodash and angularJs.core, I had to install the angular-google-maps version 2.1.5 in order for the map to show up. I'm not sure if there's a way to use the latest version, could be changes in lodash and the angular library that's causing the map not to render?

@happygts
Copy link

@jofftiquez, I don't know if you still have the problem but I had the same and I figured that I needed to set the ng-if to a property when the modal is shown. With that the map is displayed correctly.
I still have a problem with the searchBox thought.

@jofftiquez
Copy link
Author

@moreaup Thanks for the tip!

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

4 participants