Hunter Hillegas wrote:
> Can't you just feed in an array of markers?
>
> @markers.each do |marker_seq|
> @map.overlay_init(marker_seq)
> end
Hi Hunter
I have a similar problema with YM4R
My map only display the last point, this is my code:
@map = GMap.new("map_div_id")
@map.control_init(:large_map => true, :map_type => true)
@map.center_zoom_init([40.41,-3.70], 4)
markers = Array.new()
for lab in @laboratories do
html = gethtmlmap(lab)
c1, c2 = lab.coords.split(",")
markers << GMarker.new([c1.to_i,c2.to_i],
:title => lab.name, :info_window => html)
end
markers.each do |marker_seq|
@map.overlay_init(marker_seq)
end
Could you help me please?
Thanks in advance
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.