On Apr 13, 9:24 am, marcelo <[email protected]> wrote:
> There is no callback function, but the polygon should become visible
> immediately after you addOverlay(), unless it is ridiculously complex.

The polygon module has been modularized.  There is an event
"visibilitychanged" on the polygons that might help.  See this
discussion:
http://groups.google.com/group/Google-Maps-API/browse_frm/thread/7f8f5cbdfab74b37/3b23f3d43f6ebe64

  -- Larry

> You can make partial screen updates by loading all polygons into an
> array, and then addOverlay()'ing a few polygons at a time with a
> setTimeout loop, for example
>
> function addPoly () {
>   if (polygons.length) {
>     var poly = polygons.shift();
>     map.addOverlay(poly);
>     window.setTimeout("addPoly()",10);
>   }
>
> }
>
> --
> Marcelo -http://maps.forum.nu
> --
>
> On Apr 13, 6:12 pm, Ron Kok <[email protected]> wrote:
>
>
>
> > Currently I'm working on a "loading" message, which I want to show as
> > long as not all polygons are visible on the map to prevent users from
> > seeing an empty map.
>
> > How can I determine if a (or all) polygon is visible on the map, so I
> > can remove the loading message? Is there a callback function I can use
> > that notifies me when a polygon is visible?- 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to