Here's the timer I'm using. Note that I am listening for when the KML
tiles start to load. It sounds like you want to tweak the listeners
to try and trap the case of when the KML tiles start to load but do
not finish loading. You could then display an appropriate error
message and/or delete the KML layer and try to reload it a second
time.
masu.timer_kml_load = setTimeout("display_timeout_message()",
10000);
masu.kml_layer.setMap(masu.map);
// Listen for when the visible tiles of the kml map are
ready to start loading
// This requires two nested listeners. The first tiles the
user sees will be for the KML map
google.maps.event.addListenerOnce(masu.kml_layer,
"defaultviewport_changed", function() {
google.maps.event.addListenerOnce(masu.map,
"bounds_changed", function() {
clearTimeout(masu.timer_kml_load);
// do some more stuff...
});
});
--
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.