Can anyone tell how can I do this?
Thanks,
Tushar
--
Posted via http://www.ruby-forum.com/.
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