Ruby on Rails / Yellow Maps For Ruby Plugin woes...

Posted by Zach on Stack Overflow See other posts from Stack Overflow or by Zach
Published on 2009-04-22T23:46:21Z Indexed on 2010/04/02 14:13 UTC
Read the original article Hit count: 454

Okay I've read through the plugin comments and the docs as well and I have yet to come up with an answer as to how to do this. Here's my problem I want to use the :info_window_tabs and the :icon option, but I don't know what format to pass my information in. According to the documentation the following code should be correct. Here's my code:

        @mapper.overlay_init(GMarker.new([map.lat, map.lng],
        :title => map.name,
        :info_window_tabs => [
            {:tab => "HTML", :content => @marker_html}, 
            {:tab => "Attachments", :content => "stuff"}],
        :icon => {
                :image => "../images/icon.png"
                 }))

The readme and documentation can be viewed here.

And the relevant ruby file that I am trying to interact with, including the author's comments, can be viewed here.

I have tried the #rubyonrails channel in IRC as well as emailing the author directly and reporting an issue at GitHub. It really is just a question of syntax.

Thanks!

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby-on-rails-plugins