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
Posts: 21
Registered: ‎04-21-2011
My Device: Developer
My Carrier: ----

Use Blackberry maps to point 2 or more locations

Hi ,

  I am  tryin to point 2 or more locations in the map with a bitmap image of a Pin on it. I am working on api 5

 

 I have  tried the following methods but not obtained complete success

 

1. Invoked the BB maps and passed few location s in the location document as follows:

 

StringBuffer stringBuffer =

new StringBuffer("<lbs clear='ALL'>");

stringBuffer.append(

"<location lon='-7418493' lat='40691241'label='Loc1, NJ' description='Newark' zoom='14' />");

stringBuffer.append(

"<location lon='-738071880956979' lat='40.6573430722829' label='Loc2, NY' description='JFK' zoom='14'/>");

stringBuffer.append(

"</lbs>");

 

Invoke.invokeApplication(Invoke.

APP_TYPE_MAPS, new MapsArguments( MapsArguments.ARG_LOCATION_DOCUMENT, stringBuffer.toString()));

 

 This  only displays ottawa or world view all the time Smiley Sad(((

 

2.created a manager using mapfield to map multiple points, this  too works only for  few and not for all

 

 

Please  guide me regarding this, I  have tried so many things but still not nailed the right thing.

Thanks in advance