Here's the code for a very simple line. Replace 'lat1', 'lat2', 'lng1'
and 'lng2' for your own coordinates.
You can search the internet yourself you know. There's a very good
search engine online, shall I give you the URL? ;)
var polyline:Polyline = new Polyline([
new LatLng(lat1, lng1),
new LatLng(lat2, lng2)
], new PolylineOptions({
strokeStyle: new StrokeStyle({
color: 0xFF0000,
thickness: 1,
alpha: 1})
}));
map.addOverlay(polyline);
On 6 jan, 05:38, Jerry <[email protected]> wrote:
> Dear All,
>
> Can anyone please give me a simple code to draw a line between 2
> markers?
>
> Thanks
--
You received this message because you are subscribed to the Google Groups
"Google Maps API For Flash" 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-for-flash?hl=en.