> Thats why i supplied the WHOLE code. you can paste into notepad and
> save as a .html to see what it's doing.

But ... why don't you do that, and put it on some free hosting.  If
you're expecting me to do it, you could at least point out which
linebreaks you want in the code, and which have been put there by the
groups interface.

> var polyline = new GPolyline([(location1.x,location1.y),
> (location2.x,location2.y)], "#ff0000", 10);
> But i dont think that i have either the method correct, or possibly
> the syntax.

You could look at the documentation ...
   
http://code.google.com/apis/maps/documentation/reference.html#GMarker.getLatLng
and see how to get a GLatLng from a marker, say like
   pont1 = marker1.getLatLng() ;
and then refer to the documentation again
   http://code.google.com/apis/maps/documentation/reference.html#GPolygon
to see that GPolygon would like an array of GLatLng like so
   var polyline = new GPolyline( [ point1 , point2 ]) ;

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