On Dec 30, 6:28 am, andlil <[email protected]> wrote:
> Hello!
>
> New to javascript but can handle myself vith vbscript/asp.
>
> This is the map I'm working on:
>
> http://www.liljeberg.nu/karta.asp
>
> I started looking at Mike's wonderful tutorial athttp://econym.org.uk/gmap/
> and I made a map that fetches XML and displays in a sidebar as well as
> mapmarkers. I've beat my head repeatedly against my desk on failing at
> two *very* simple things.
>
> 1) I want to reload the XML-feed every minute and update the
> mapmarkers and sidebar

Use setInterval to call a function that adds your markers to the map
every minute.  Either remove all the markers and re-add them, add new
ones and remove ones that are no longer present or move the existing
markers to the new locations.  The simplest way would be to do a
map.clearOverlays() then re-add the markers to the map, but that may
not be the functionality you are looking for.

>
> 2) I want to set the correct zoom and map boundaries for all points to
> be visible after each refresh

See Mike Williams' tutorial:
Part 14 Fitting the map zoom to the data
http://econym.org.uk/gmap/basic14.htm

  -- Larry

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