Folks, I'm trying to generate some dynamic KML from my system and I
can't seem to get it to work with google

The following is the simple html I'm using to test it.

<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Google Maps JavaScript API v3 Example: KmlLayer KML Features</
title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?
sensor=false"></script>
<script type="text/javascript">
function initialize() {
  var myLatlng = new google.maps.LatLng(37.09024,-95.712891);
  var myOptions = {
    zoom: 2,
    center: myLatlng,
    mapTypeId: google.maps.MapTypeId.ROADMAP
  };

  var map = new google.maps.Map(
      document.getElementById("map_canvas"),
      myOptions);

  var nyLayer = new google.maps.KmlLayer("http://si-siris07.si.edu/
widgets/kmlwidget/getKML.htm?query=african");
}
</script>
</head>
<body style="margin:0px; padding:0px;" onload="initialize()">
  <div id="map_canvas" style="width:79%; height:100%; float:left"></
div>
</body>
</html>

The url I'm using to generate the KML is as follows -
http://si-siris07.si.edu/widgets/kmlwidget/getKML.htm?query=african

I can take the results of the URL and get it to show using test site
http://display-kml.appspot.com/ but not if I try the test html above.
Any ideas?

-Rich

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