Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Regular Contributor
Posts: 53
Registered: ‎06-29-2011
My Device: Blackberry 9800

draw route on map in Blackberry

Hi All,

 

i want to draw  a route from A to B on a RichMapField, is it possible?

 

I am able to draw on a MapField.

 

I want to use RichMapField, because i already use it in my application to add muliple markers, i want to use tthe same RichMapField to draw a path from A to B, is there any way to do this??

 

 

 

BR,
Supriya
Developer
Posts: 16,575
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: draw route on map in Blackberry

how about using
http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/lbs/maps/ui/RichMapField.html#...
and continue as with the single mapfield you have otherwise?
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Regular Contributor
Posts: 53
Registered: ‎06-29-2011
My Device: Blackberry 9800

Re: draw route on map in Blackberry

I guess you are referring to getMapField from the abovel ink, well in this i don't have convertWorldToField.

This getMapField is from : net.rim.device.api.lbs.maps.ui.MapField, and the converWorldToField is in net.rim.device.api.lbs.MapField.

 

Saying that, how will i be able to club both, or is there another alternative?



BR,
Supriya
Developer
Posts: 16,575
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: draw route on map in Blackberry

indeed, you are right! what are they thinking, adding another class of the same name with different functionality?

I have to hand it over to somebody else here, no experience with the 6.0 (new) mapfield. maybe the developer guides can help?
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter