Forum: Ruby on Rails Google Maps Map Movement

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F0b2015753f202632c88be5d0407d110?d=identicon&s=25 Dl Lo (freaknasty)
on 2007-08-02 05:38
Hi everyone,

I need help with RoR and Google Maps. Here is my dilemma. Say
coordinates are being fed into a db.  I would like to create a page that
gets those coordinates say every 5 seconds and moves a marker on a
Google Map. I do not want to refresh the page.  Maybe AJAX?  I'm not
sure. Has anyone ever done this?  Any help would be greatly appreciated.

d
B01fdd12039d82427a4af02360ef5571?d=identicon&s=25 cammo (Guest)
on 2007-08-02 06:59
(Received via mailing list)
You'll want to use Prototypes PeriodicalExecuter function to
periodically call more data from Ruby and execute a function in your
javascript.
Check the API for Prototype:
http://www.prototypejs.org/api/periodicalExecuter

Cheers,
Cam
This topic is locked and can not be replied to.