function recenter() {
map.setCenter(myLat,myLng);
setTimeout("recenter()",15000);
}On Sep 16, 5:08 pm, Gregory Short <[email protected]> wrote: > I believe you would have to order the refresh yourself (via a full > page-reload, or through some ajax type action, probably.) However, > once you have that working, it would be easy enough to simply use the > lat/lon of the marker and call setCenter() on the map to re-center it. > > Otherwise, it may be possible that kml-based auto-refresh is supported > by google maps at this point, in which case you would just publish the > kml somewhere. > > Either way: yes, it's possible, but without some specifics (or better > yet an example site that shows where you're running into trouble) we > can't necessarily help as much as you might like. > > -G > > On Sep 16, 2009, at 6:12 PM, SenTnel wrote: > > > > > > > Hi all! > > > My question is rather simple: Is there a way for Google Maps keep a > > marker centered automatically (lets say refreshing every 15 seconds)? > > something like the FlyToView function on Google Earth, if yes, please > > let me know how or point me in the right direction for more info or > > documentation... > > > Thanks!- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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/google-maps-api?hl=en -~----------~----~----~----~------~----~------~--~---
