I have a mash up that pulls in external KMLs and a JSON feed  --

http://www.floridadisaster.org/gis/kml/ajax/viewer.htm

This mash up is in production for emergency response here in the State
of Florida.

What I want to do is automatically refresh the map at an interval
while maintaining the user zoom, center, and map type -- that way, a
user could zoom into their area of interest, display the screen in an
emergency operation center, and as the weather radar, storm prediction
center storm reports, and any data we added through the Google Doc
spreadsheet JSON feed were refreshed, it would automatically show up
on the user's screen.

I tried following some of the examples and threads, particularly
refreshing GDownloadUrl rather than the whole map -- but as the map is
displaying data from many different URL's, I don't think this will
work.

I have tried some Javascript with setInterval --

---------------------
<script type="text/javascript">
        function updateMap() {
                usngmap.setCenter(usngmap.getCenter, usngmap.getZoom);
        }
        setInterval('updateMap()', 10000);
</script>
---------------------

But all I get is some wicked error --

a.vd is not a function
http://maps.google.com/intl/en_us/mapfiles/151e/maps2.api/main.js

Any one have any ideas or examples on auto refreshing the map while
maintaining user settings?





--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to