Hey community!

I want to draw some LatLng into a Terrain map.

I generate some coordinates and try to integrate them to the map.
But the problem is that nothing is shown on browser... it's just blank!

It would be very nice if somebody can help me!

Thanks a lot!

here is my 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>Google Maps JavaScript API v3 Example: Polyline Simple</title>
<link 
href="http://code.google.com/apis/maps/documentation/javascript/examples/default.css
 
<view-source:http://code.google.com/apis/maps/documentation/javascript/examples/default.css>"
 rel="stylesheet" type="text/css" />
  <script 
src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=XXX 
<view-source:http://maps.google.com/maps?file=api&v=2&sensor=false&key=AIzaSyCBIIRQz_9iD_Q3zIa6UE2RZDZPuYd6qQ8>"
 type="text/javascript"></script>
<script type="text/javascript">

  function initialize() {
    var myLatLng = new google.maps.LatLng(52.544795,13.398596);
    var myOptions = {
      zoom: 14,
      center: myLatLng,
      mapTypeId: google.maps.MapTypeId.TERRAIN
    };

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

    var flightPlanCoordinates = [
        new google.maps.LatLng(52.544511666667, 13.39938),
new google.maps.LatLng(52.544511666667, 13.39938),
new google.maps.LatLng(52.544511666667, 13.39938),
new google.maps.LatLng(52.544511666667, 13.39938),
new google.maps.LatLng(52.544511666667, 13.39938),
new google.maps.LatLng(52.544511666667, 13.39938),
new google.maps.LatLng(52.544511666667, 13.39938),
new google.maps.LatLng(52.544511666667, 13.39938),
new google.maps.LatLng(52.544511666667, 13.39938),
new google.maps.LatLng(52.544511666667, 13.39938),
new google.maps.LatLng(52.544511666667, 13.39938),
new google.maps.LatLng(52.544511666667, 13.39938),
new google.maps.LatLng(52.544511666667, 13.39938),
new google.maps.LatLng(52.544511666667, 13.39938),
new google.maps.LatLng(52.544511666667, 13.39938),
new google.maps.LatLng(52.544511666667, 13.39938),
new google.maps.LatLng(52.544511666667, 13.39938),
new google.maps.LatLng(52.544511666667, 13.39938),
new google.maps.LatLng(52.544511666667, 13.39938),
new google.maps.LatLng(52.544511666667, 13.39938)    ];
    var flightPath = new google.maps.Polyline({
      path: flightPlanCoordinates,
      strokeColor: "#FF0000",
      strokeOpacity: 1.0,
      strokeWeight: 2
    });

   flightPath.setMap(map);
  }
</script>
</head>
<body onload="initialize()">
  <div id="map_canvas"></div>

</body>

</html>


-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-api/-/6_XpSlPrmtIJ.
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