gmaps4rails - How to set google-maps-for-rails infowindow render true/false from the view? -


i'm using google-maps-for-rails in rails app.

in model controller have

def gmap_settings(location, marker)       marker.infowindow render_to_string(:partial => "/path/to/partial", :locals => { :object => location}) end 

i'm displaying maps in several views. in cases, displaying multiple maps in same page.

some maps need infowindow, others not.

how can define whether infowindow rendered or not view?

within json, description triggers infowindow creation.

simply remove or adapt pass gmaps helper.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -