Hi I am using this code:


<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>1537 News in the Gulf... Oil Platforms</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(42.796675,-88.65625);
  var myOptions = {
    zoom: 6,
    center: myLatlng,
    mapTypeId: google.maps.MapTypeId.ROADMAP
  }

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

  var platformLayer = new google.maps.KmlLayer( 'http://www.brechler-
web.de/geodb/livedata.kml');
  platformLayer.setMap(map);

}
</script>
</head>
<body style="margin:0px; padding:0px;" onLoad="initialize()">
  <div id="map_canvas" style="width:100%; height:100%"></div>
</body>
</html>

and I want to show a line on the map that generated by that kml. The
file is public accessible and a valid kml file but it won't work. Can
someone help me out?

Thanks Philip

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