Loading a Google map in a partial via Ajax

I’ve just started playing with Google Maps and ym4r_gm. The map seems to
work fine when it is called by the controller in a http request, but I
was hoping I could load a map via a link_to_function only when it is
called by the user. However, doing so seems to give a blank div, so I’m
presuming that a need to make some sort of request to Google Maps during
the link_to_function. Does any know how to fix this, or do I always need
to load a map in the http request and then set the ‘display’ properties?

<%= link_to_function(“See on Map”) do |page|
page.insert_html :top, “items_wrapper”, “#{render :partial =>
end %>

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs