Can any Google Map experts tell me what is wrong to my code related the 
standard sample from Google Maps V3 (layer-kml.html)?
 
As I downloaded the related kml file (cta.kml) 
from gmaps-samples.googlecode.com into my local website virtual directory 
and change my code as follows, I was unable to find the geometry displayed 
in the related position.  However, alert shows that the KML had been loaded 
successfully.  Displaying this 'http://localhost/google/egis/geodata/cta.kml' 
in Google Earth application and plugin has no problems.  What have I missed 
to make it display in Google Maps?
 
Code: 
var map = new google.maps.Map(document.getElementById("map_canvas"),myOptions
);      
// var ctaLayer = new google.maps.KmlLayer(
'http://gmaps-samples.googlecode.com/svn/trunk/ggeoxml/cta.kml'); 
var ctaLayer = new google.maps.KmlLayer(
'http://localhost/google/egis/geodata/cta.kml'); 
if (ctaLayer)
{
    ctaLayer.setMap(map);
    alert('ctaLayer is loaded.');
}
   else
{
       alert('ctaLayer is Null.');
}

-- 
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