There is no callback function, but the polygon should become visible
immediately after you addOverlay(), unless it is ridiculously complex.
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?
--~--~---------~--~----~------------~-------~--~----~
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