Hi,
I have been using v1.0.0 to draw mapping routes. What I do is to
1. Add Places(Route Points) to a map
2. Draw a route between the points via CloudMade directions api (Not via nutiteq).
I upgraded to v1.0.2 some couple of hours ago.
I've observed that if I add the places and the line(route), I see the places and the line but no place labels on the map with v.1.0.2
With v1.0.0 I see the places, place-labels and the route which is the expected behaviour.
Yes Sure..
I construct the line as follows -:
public WgsPoint[] getWgsPoints(String line){
StringTokenizer st = new StringTokenizer(line, ",");
WgsPoint [] linePoints = new WgsPoint[st.countTokens()/2];
int a = 0;
String lon, lat;
while (st.hasMoreTokens()){
lat = st.nextToken().trim().toString();
lon = st.nextToken().trim().toString();
linePoints[a] = new WgsPoint(Double.parseDouble(lon), Double.parseDouble(lat));
a++;
}
//TODO
return linePoints;
}
Then I draw the route using-:
public void drawRoute(Line line){
mapItem.addLine(line);
}
Mandla
The order of adding map elements is important with the last version. See http://www.nutiteq.com/content/placelabel-not-shown-place-added-over-line for discussion. Basically: add first line, and then places.
We'd need to replicate the issue. Can you give your code for "Draw a route between the points via CloudMade directions api (Not via nutiteq)." ?
/JaakL