angular-google-maps
angular-google-maps copied to clipboard
Not working on angular modal
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
Did you properly adjust the height of the map via css?
Yes I did, but the map was just empty. @markmssd
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?
@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.
@moreaup Thanks for the tip!