apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Marker.sidebar marker.title missing from @JSON #133

Closed jmangoubi closed 12 years ago

jmangoubi commented 12 years ago
@json = User.all.to_gmaps4rails do |user, marker|
    marker.infowindow render_to_string(:partial => "/users/my_template", :locals => { :object => user}).gsub(/\n/, '').gsub(/"/, '\"')
    marker.title "bla bla"
    marker.sidebar "bla bla"
    marker.json    "\"id\": #{user.id}"
  end

passes this JSON....

[{"description": "20 N. Lasalle Street", "id": 3, "lng": "-87.6324391", "lat": "41.882424"}]

I do not see any of the sidebar or title data in @Json. What am I doing incorrectly? My goal is to pass a partial for both the infowindow and the sidebar.

thank you

apneadiving commented 12 years ago

It's a mistake and I received a pull request about this.

I intend to release a new version next year , well next week :)

jmangoubi commented 12 years ago

thanks, keep me updated. Great Gem by the way!

apneadiving commented 12 years ago

Should be good since 1.4.0