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
Contributor
selvaraman
Posts: 29
Registered: ‎09-07-2012
My Device: 9900
My Carrier: Airtel

Draw route between 2 locations with custom marker

Hi,

 

I need to show the 2 locations in mapview  with custom marker and also draw the route between these locations. 

 

I have tried the blackberry map with custom marker using the below sample code, 

https://github.com/Monits/blackberry-commons

 

and i get the route between locations using the below code

String document = "<lbs><GetRoute>" + "<location x='-8052237' y='4346518' label='Waterloo, ON' description='Waterloo, Ontario, Canada' />" +
"<location x='-7569792' y='4542349' label='Ottawa, ON' description='Ottawa, Ontario, Canada' />" + "</GetRoute></lbs>";
Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, new MapsArguments( MapsArguments.ARG_LOCATION_DOCUMENT,document));

 

But here i need to show both of the above in a single map view , is it possible?

Please use plain text.
Contributor
selvaraman
Posts: 29
Registered: ‎09-07-2012
My Device: 9900
My Carrier: Airtel

Re: Draw route between 2 locations with custom marker

Is not possible in BB?

Please use plain text.