Hi Anthony,
Since as per your post, you are offering help, can you help me out the reason for the following problem?
In the Google Driving Directions overlayed project posted by Plusminus, I debugged the code and found that I got Driving Directions indeed. But the following piece of code in the draw method of the map overlay
Using java Syntax Highlighting
/* Loop through all MapPoints returned. */
for (MapPoint current : route) {
/* Transform current MapPoint's Lat/Lng
* into corresponding point on canvas
* using the pixelCalculator. */
if(current != null){
MapToScreenCoords(current, pxC, screenCoords)
...
Parsed in 0.030 seconds, using
GeSHi 1.0.8.4
I am getting the same values for the co-ordinates for all points. In fact, the mapPoint.getXPixel is returning the same value for all map points in the route. Because of this, nothing is coming on the map. Can you help me as to why this could be? I even reinitialized the "screenCoords" array inside the loop? When i have the device current lat/lon like 37.4343 and -122.434543 and a new lat/lon like 37.4343 and -122.909034 where the difference in the longtitude is about 0.4 or so, I get a different pair of co-ordinates (atleast in Y direction), but when the difference is less than or equal to 0.2, same coordinates are resulting.
However, in the case where the screen - coordinates are different, the line between the two map points stretches into the "sea" in the map rather than a small line.
Regards,
TVP