Hi to everyone, is there nobody that know about to fix this problem, I
can't obtain the coordinates from getPolylineX(). what can I do, or
what i will have to change from my code?? :
/**************************************/
var map
var gdir;
map = new GMap2(document.getElementById("map_canvas"));
gdir = new GDirections(map);
setDirections("treviso", "Padova", "en_US");
var point=getPolylineX();---->ERROR
/*******************************************/
function setDirections(fromAddress, toAddress) {
gdir.load("from: " + fromAddress + " to: " + toAddress);
//alert(gdir.getPolyline().getVertexCount());
}
function getPolylineX() {
var gpoint=[];
//alert(gdir.getPolyline().getVertexCount());
for (var i=0; i< gdir.getPolyline().getVertexCount(); i++) {
gpoint[i] = gdir.getPolyline().getVertex(i);
}
return gpoint;
}
regards:)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---