Tushar Gandhi wrote: > Hi, > I am doing a google map integration using "geokit" and "YM4R/GM" plugin. > Whenever I am passing the "area name" the it is ,marking that in google > map properly. > But my client wants whenever user adds the "IT Companies in India" then > GMap should mark all locations of india where the companies are located. > > Can anyone tell how can I do this? > > Thanks, > Tushar
you must each @company for marked, can do something like this. @company.each_with_index do |company, i| @map.center_zoom_init([company.latitude, company.longitude], scale) if i == 0 marker = GMarker.new([company.latitude, company.longitude], :title => "#{company.name}", :info_window => "#{company.name }<br/> #{vendor.address}.") @map.overlay_init(marker) end regards, Rifki Fauzi -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.