Google map integration

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

Tushar G. 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
}
#{vendor.address}.”)
@map.overlay_init(marker)
end

regards,
Rifki Fauzi

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs