Skip to content
0:00 / 0:00

#rails#gmaps4rails#google-maps

Google maps for Rails v2

TheApneadiving

61 subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 on Stack Overflow and its sister sites.
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Beginner. No background in the topic needed.

42K views13 years ago1 recommendation

Web developmentRubyHTTP, REST and GraphQL

An introductory tutorial on integrating Google Maps into a Ruby on Rails application using the gmaps4rails gem.

quick intro to gmaps4rails v2 FYI, @bind_infowindow should not be used for version after 2.1

Why it's here

1 person recommends this

What people say. Recommended as a helpful tutorial for implementing Google Maps in Rails.

dmt2989on Stack Overflow • Recommends

I'm a complete noob, building my first rails app. I successfully implemented Google-maps-for-rails V2, using apneadiving's tutorial on youtube: link to this video My issue is that for each of my maps, I'm only showing one marker, and when the map loads, it adjusts to be fully zoomed. Searching around, there seems to be a lot of solutions for earlier versions of Gmaps4rails, but with V2, and creating the map via javascript, I can't seem to find a solution that works. For reference, my code is below: View: <script type="text/javascript"> handler = Gmaps.build('Google'); handler.buildMap({ provider: {}, internal: {id: 'map'}}, function(){ markers = handler.addMarkers(<%=raw @hash.to_json %>)…