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

Latest news

Last at Tue, 6 Dec 2011 18:37:53
Topic: New BlackBerry sample app
See more news »

"PlaceLabel" not shown for "Place" added over "Line"

5 replies [Last post]
abhirama
User offline. Last seen 1 year 7 weeks ago. Offline
Joined: 07/17/2009

hi

i am rendering the route over map using "Line" and DP's over it using "Place" with PlaceLabel text string. now when these places is centered, it is expected to show label on screen. due to some reason it doesn't show the label. after little bit panning, when line drawn below the place goes away from the center point, the label suddenly come up.

how to fix this?

thx

abhirama
User offline. Last seen 1 year 7 weeks ago. Offline
Joined: 07/17/2009

hi,

plz resolve my querry. I am trying to draw route using "Line" class & drawing POI using "Place" class. Now if "Place" is added exactly over the same point on map that of line (place overlapping line), in this case "PlaceLabel" is not seen. Is this the bug in Nutiteq? How can I fix this?

Thx!

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

In your case Line overlaps Place and map tries to show label for the Line. If Label for Place is undefined then it seems like clicking on Place does nothing (as it tries to show label for the Line).

We changed labeling logic a bit, so if a Place is on top of Line, then you cannot click to the line behind it. It solves your issue, but it may have side-effects.

Take latest library version snapshot with this fix from http://www.nutiteq.com/beta/lib/ . It has also some other fixes and new features. Your feedback is appreciated.

/JaakL

abhirama
User offline. Last seen 1 year 7 weeks ago. Offline
Joined: 07/17/2009

hi Jaak,

Thats still doesn't solve my issue. What I have been doing is with set of points (wkt's) adding the Line to show route. After that adding the Places(with PlaceLabel) over the route, which falls exactly over the points on the line. Now when you center those places automatically PlaceLabel text is not shown.

If you change the order (first add Places, then Line), PlaceLabel text is shown when centered. (this was working fine with older version also).

There should be some way of setting some flags/boolean which decides who will handle the event (Line or PlaceLabel)

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

Elements are added to the top, so you'll get event for the last added, if you have several elements. If you add the points (Places) after Line, doesn't this work?

Order of elements, both for display and select/label events can be actually complex issue, as you may have also several points/lines on top of each other etc. Basic flag would be complicated to implement and would not solve most of the cases. So if possible, stick with the simple logics.

/JaakL

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

I did some more testing, it did not work if you use recenter. The fix was for touchscreen clicking only.

Take new updated library build from the same URL and let me know if it fits better for you.

/JaakL