Geocodezip,
Thanks for the posts so far. With the problem I'm getting, it's also
disableing the Google Zoom toolbar in the top left corner of the map.
I can only reproduce this on IE7. IE8, FF2/3, Chrome, Safari work
great. page loads, Sometimes the KML will load and the google tools
will not load, with a script error. Other times the KML will not load
and the google toolbar will be frozen.
The KML checks out on all validation checkers, and stepping through
the script here works fine on every browser, except IE7.
This is how I am loading the KML.I've stripped all additional
functionality out and i'm just loading the KML to see if I can get it
to work with just this.
Function OnLoad()
{
...load map variables
..Load map events
...
loadOverlays();
}
function loadOverlays()
{
SV.Website.WebServices.SVD.getKMLOverlays(getKMLSuccess,
getOverlaysFail);
//Load custom tiles
SV.Website.WebServices.SVD.getMapOverlays(getMapOverlaysSuccess,
getOverlaysFail);
}
function getKMLSuccess(results)
{
//Results will be in a string array of files.
if (results != null && results.length != 0)
{
for (var i = 0; i < results.length; i++)
{
var geo = new GGeoXml(results[i] + "/overlay.kml");
map.addOverlay(geo);
}
}
}
function getOverlaysFail(error)
{
alert("There was an error loading Custom Overlays: " + error);
}
-----------------------------
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---