angular-google-maps icon indicating copy to clipboard operation
angular-google-maps copied to clipboard

Not working on angular modal

Open jofftiquez opened this issue 8 years ago • 5 comments

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

jofftiquez avatar Aug 29 '16 14:08 jofftiquez

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

markmssd avatar Aug 29 '16 14:08 markmssd

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

jofftiquez avatar Aug 30 '16 15:08 jofftiquez

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?

kamaatakh avatar Sep 09 '16 15:09 kamaatakh

@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.

happygts avatar Aug 28 '17 13:08 happygts

@moreaup Thanks for the tip!

jofftiquez avatar Aug 28 '17 15:08 jofftiquez