On Jan 8, 5:18 pm, japonyol <[email protected]> wrote:
> I'm learning from Mike Williams'
> example:http://econym.org.uk/gmap/example_profile.htm
>
> In my country, it's not yet covered GDirections service,
> so I want to draw profile (write each points), but I can not.
>
> http://japonyol.net/profile-test.html
>
> Any help please.
Use the polyline you created instead of dirn.getPolyline...
Replace this:
// var dirn = new GDirections(map);
// GEvent.addListener(dirn, "load", function() {
// nodes = 0;
// var poly = dirn.getPolyline();
// for (var i = 0; i<maxNodes; i++) {
// getAltitude(poly, i)
// }
// });
// dirn.load( "from: Toronto to: Markham, Canada",
{getPolyline:true});
with:
for (var i = 0; i<maxNodes; i++) {
getAltitude(poly, i)
}
Other changes may be required
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---