Skip to content Skip to sidebar Skip to footer

Google Maps, Rails And Jquery

Update 7/17 SOLVED I've updated my code to the Solved version. Original Question I'm trying to show Google Maps via the Gem gmaps4rails. After researching the following 2 questions

Solution 1:

When you show/hide/resize a google maps map you need to call the resize event of the map. Soyou should add it after showing it:

...
Gmaps.map.addMarkers(json);
google.maps.event.trigger(Gmaps.map, 'resize');
...

I'm assuming that Gmaps.map is an instance of google.maps.Map class...

Post a Comment for "Google Maps, Rails And Jquery"