> 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.
i cant upload it to a free web host because i would have to apply for another API key for that domain. > You could look at the documentation ... > http://code.google.com/apis/maps/documentation/reference.html#GMarker... > and see how to get a GLatLng from a marker, say like > pont1 = marker1.getLatLng() ; > and then refer to the documentation again I have already read the documentation. This is why I am posting the question here! I did state in my original post "(Please give examples, not just "Look at the API documentation for......")!!!!! " Anyway, thats exactly what I have been doing, but it still will not work. var point1 = marker1.getLatLng().toUrlValue(10); var point2 = marker2.getLatLng().toUrlValue(10); var polyline = new GPolyline( [ point1 , point2 ]) ; It will not draw the polyline between these two markers. On Sep 16, 4:43 pm, Rossko <[email protected]> wrote: > > 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. > > > varpolyline= 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... > 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 > varpolyline= 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 -~----------~----~----~----~------~----~------~--~---
