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

Grey screen when fit="true"

Open beeekind opened this issue 8 years ago • 2 comments

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.

beeekind avatar Feb 21 '16 09:02 beeekind

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.

nmccready avatar Feb 21 '16 23:02 nmccready

solutions?

lfreneda avatar Sep 22 '16 15:09 lfreneda