Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 180135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:31:56+00:00 2026-05-11T14:31:56+00:00

Okay I’ve read through the plugin comments and the docs as well and I

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T14:31:57+00:00Added an answer on May 11, 2026 at 2:31 pm

    Okay, so I finally got this figured out. Here’s how you do it; :icon accepts a GIcon variable and :info_window_tabs accepts an array of GInfoWindowTabs. Here is how you would declare each with the plugin.

    Declare GIcon

        @mapper.icon_global_init(GIcon.new(:image => '../images/civil.png',        :icon_anchor => GPoint.new(0,0),           :shadow => '../images/shadow.png',        :shadow_size => GSize.new(37,32),        :info_window_anchor => GPoint.new(9,2)), 'civil_icon')      @civil_icon = Variable.new('civil_icon') 

    Declare GInfoWindowTab

        @tab1 = GInfoWindowTab.new('Tab 1 Label', 'HTML for inside of tab1')     @tab2 = GInfoWindowTab.new('Tab 2 Label', 'HTML for inside of tab2')      @window_tabs = [@tab1, @tab2] 

    Then in your GMarker declaration just do the following:

        @mapper.overlay_init(GMarker.new([map.lat, map.lng],              :title => map.name,             :icon => @civil_icon,             :max_width => 300,             :info_window_tabs => @window_tabs)) 

    And you’re done.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 99k
  • Answers 99k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer m = [self bar:i]; May 11, 2026 at 7:45 pm
  • Editorial Team
    Editorial Team added an answer You could deliberately increment the file size in larger chunks… May 11, 2026 at 7:45 pm
  • Editorial Team
    Editorial Team added an answer or $('#onlyTwo').click(function(){ var stuff = $("#textarea3, #textarea4, #radio3, #radio4"); stuff.attr("disabled",… May 11, 2026 at 7:45 pm

Related Questions

Okay I'm still learning the ropes with the Entity Framework and I came across
Okay I know I asked about this before, and the answer was basically cache
Okay i am working on someone elses code. They do alot of this: char
Okay I have this RewriteRule which is supposed to redirect any request for the
Okay I'm trying to rotate a Java Polygon based on it's original position of

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.