angular-google-maps
angular-google-maps copied to clipboard
Grey screen when fit="true"
Spent three hours debugging an issue that was causing the google maps view to become grey after inserting one or more markers into the "models" array. Turns out if you have two identical geo-locations (like those obtained from identical zip codes or something..) it cannot compute the bounds of the map and will thus render nothing.
The solution is to set fit to false. Ideally you would probably set it to false conditionally, but I do not know how to re-evaluate an options object after the initial initialization.
Just wanted to get this documented so nobody else finds themselves in the same hole I was. Also props to what appears to be the one and only maintainer of this library. Dude you're awesome and if you ever find yourself in sunny Eugene, Oregon, hit me up and i'll buy you a beer.
Ha thanks, if I get a moment maybe I'll dig into this error. I take it this is for markers
. I do have PR in progress to get many singular directives working w/ fit as well.
solutions?