Thanks en4ce, that worked a treat.
I also used  markers[i].setMap(map); after changing the location, and
it updates it straight away too.

On Jun 14, 9:31 am, en4ce <[email protected]> wrote:
> i would not work with visible, try use that functions for ya
>
> function hideMarkers(){
>   for (var i = 0; i < markers.length; i++) {
>      markers[i].setMap(null);
>         }
>   }
>
>   function showMarkers(){
>     for (var i = 0; i < markers.length; i++) {
>      markers[i].setMap(map);
>         }
>   }
>
> On 14 Jun., 07:35, Pil <[email protected]> wrote:
>
>
>
> > Do you have a page that demonstrates the problem? Can you provide a
> > link?
> > Does it happen in every browser?
>
> > I recently reported a similar problem that occurs only in webkit
> > browsers
>
> >http://code.google.com/p/gmaps-api-issues/issues/detail?id=2482&q=api...
>
> > I have the feeling that this behaviour is intended.
> > Because speed ranks first. Speed at any cost, speed also at the
> > expense of usability.
>
> > On Jun 13, 6:18 pm, franksmule <[email protected]> wrote:
>
> > > When I change the location or visibility of a marker on the map it
> > > doesn't update until I zoom. Panning around does not update it
> > > either..
>
> > > I use the code marker[1].visible = false; and it appears to do
> > > nothing, I then zoom in and marker 1 is hidden.
>
> > > Is there any way to force the map to update with the markers details?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to