dburles / meteor-google-maps

🗺 Meteor package for the Google Maps Javascript API v3
https://atmospherejs.com/dburles/google-maps
MIT License
196 stars 49 forks source link

Is there a way to resize map? #122

Closed snamoah closed 8 years ago

snamoah commented 8 years ago

Hi @dburles,

I'm trying to implement google maps in a modal. The issue I'm having now is I'm unable to refresh the map after the modal has loaded. I did some googling and doing that in normal javascript is by calling google.maps.event.trigger(map, "resize"); Is there a way I can do that through your package?

snamoah commented 8 years ago

Fixed it... the problem was from my map instance. Got it to work by using..

google.maps.event.trigger(GoogleMaps.maps.propertyMap.instance, 'resize');