Advanced Flash Components
Search!
Search!
Home >  Knowledge Base >  G Map >  Polyline
Polyline
Date: Aug 29, 2007   Views: 1237  
Question:
Can i use polyline?
Answer:

andreit (Admin)
Yes, you can use addLine method to add polylines. Here is the example:

//Create array of points
var linePoints:Array = new Array();

//Add Denver location
linePoints.push({lat:39.740038,lng:-104.992272});

//Add Miami location
linePoints.push({lat:25.728989,lng:-80.237446});

//Create line
gMap.addLine({points:linePoints});
Component Info