codeforamerica / fast_pass

Las Vegas Development Opportunity Finder
BSD 3-Clause "New" or "Revised" License
7 stars 4 forks source link

Look into why map size is not displaying correctly again #81

Closed louh closed 10 years ago

louh commented 10 years ago

Usually when navigating from a full-screen to part screen view, it's fixed on reload.

lovehandle commented 10 years ago

From map view to map view the animation is run again.

louh commented 10 years ago

A google.maps.event.trigger(map, 'resize') (or equivalent) needs to be done manually to force Google Maps to recalculate its size. I'm calling map.trigger('resize') each time a map reset is done. Not sure if this is the best solution - there's a brief flicker where the map resizing is visible.

lovehandle commented 10 years ago

@louh that should work for now. want to link to the line of code where you're doing this?

lovehandle commented 10 years ago

@louh is this it? https://github.com/codeforamerica/fast_pass/blob/f65d6e61a072e79e423bf78323cb51c988bf7546/public/js/services.js#L508

louh commented 10 years ago

@rclosner Yup that's the one.

lovehandle commented 10 years ago

I think we may be able to close this?