function initialize() {
    var myLatLng = new google.maps.LatLng(0, -180);
    var myOptions = {
      zoom: 3,
      center: myLatLng,
      mapTypeId: google.maps.MapTypeId.TERRAIN
    };

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

You can do this ... reference taken from the show

  function initialize() {
    var myLatLng = new google.maps.LatLng(0, -180);
    var myOptions = {
      zoom: 3,
      center: myLatLng,
      mapTypeId: google.maps.MapTypeId.TERRAIN
    };

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

   var flightPlanCoordinates = [
        new google.maps.LatLng(37.772323, -122.214897),
        new google.maps.LatLng(21.291982, -157.821856),
        new google.maps.LatLng(-18.142599, 178.431),
        new google.maps.LatLng(-27.46758, 153.027892)
    ];
    var flightPath = new google.maps.Polyline({
      path: flightPlanCoordinates,
      strokeColor: "#FF0000",
      strokeOpacity: 1.0,
      strokeWeight: 2
    });

   flightPath.setMap(map);
  }

regards,
Walter

On 30 sep, 23:39, Shiva <[email protected]> wrote:
> Hello Everybody,
>
>    I am fairly new to Google Maps API. I wanted to know how can I draw a
> line between two points (with known [lat,long]s) on the map in an
> incremental manner that gives the effect of the line being drawn instead of
> displaying it directly as in the following 
> examplehttp://code.google.com/apis/maps/documentation/javascript/examples/po...
> ?
>
> Regards,
> Shiva

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