Map API

Nutiteq Maps Lib SDK enables developing advanced mobile mapping applications.
Platforms: Android, RIM BlackBerry, Java ME (J2ME)
Download maps API SDK »
Untitled Document

Products

» View demos
» Downloads

Uudised

Viimane: Thu, 15 Mar 2012 14:51:08
Teema: Vabad töökohad pakkuda
Veel uudiseid »

Bug on recent v1.0.2 (Place Labels)

3 replies [Last post]
Mandla
User offline. Last seen 2 years 25 weeks ago. Offline
Joined: 09/02/2009

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.

jaak
User offline. Last seen 1 day 22 hours ago. Offline
Joined: 06/19/2008

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

Mandla
User offline. Last seen 2 years 25 weeks ago. Offline
Joined: 09/02/2009

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

jaak
User offline. Last seen 1 day 22 hours ago. Offline
Joined: 06/19/2008

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.

/JaakL