Hey there all.
I have a mapping app that uses ym4r_gm to build with google maps.
The markers i generate use the status of a machine to determine their color.
This way our customers can pull up the map and see a color coded
drawing where their machine is.
So, how would i go about making this to where it could update each
marker every 10 minutes or so. I would like to allow our customers to
leave their page pulled up all the time.
In an rhtml file, i would use the periodically_call_remote to update
the div, but these maps and markers are drawn with the controller.
Does this make sense?
the marker i use is a circle drawn with RMagick
That is the main thing i want to update,
here is what draws the markers
text = "<strong>some text for the marker
balloons</strong>"
icon = GIcon.new(:image => "/images/tmp/#{site.id}.png", :icon_size
=>
GSize.new((r*2),(r*2)),
:icon_anchor => GPoint.new(r,r),
:info_window_anchor => GPoint.new(r,r))
marker = GMarker.new([site.map_stat.lat.to_f , site.map_stat.long.to_f],
:title => title, :icon => icon, :info_window
=> text)
the #{site.id},png is the image drawn earlier by RMagick. That is the
main thing i want to update.
thanks for any help,
shawn