Search code examples
ruby-on-railsruby-on-rails-3google-mapsgmaps4rails

Syling window in Google Maps 4 rails


I am trying to get rid of a scrolling bar that appears in the infowindows in my map, but I fail to see which element I should I apply the styling.

Which element should I apply the styles when rendering maps with Google Maps 4 rails? I know they are divs, but there is no specific class or selector, and therefore I can't select the windows.

I render my window from a partial like this:

marker.infowindow render_to_string(:partial => 'window_info', :locals => {:place => place})

Solution

  • As per Styling Google Maps InfoWindow , I guess you cannot really style the infowindow the way you want. You'll have to use InfoBox I've builtin the gem.

    See doc here, section Custom infowindows.