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
Developer
Posts: 253
Registered: ‎08-14-2010
My Device: Not Specified

Confused MapLocation documentaion !

Hi , 

 

I found following in BB docs

 

You can use MapLocation

 to provide a point of interest on a map for a specified latitude and longitude (for example, a city). The map displays a marker icon and a label (for example, "Waterloo") for the location. When the user clicks the location, the description for the location (for example, "This is Waterloo") appears on a separate details screen.

 

I used a MapLocation in my project , but whaen i click on the location it does not give me mentioned behaviour!

 

What I am really looking is to show description data in a seperate screen when user click on a location on the map.

 

please help

 

 

Cheers

Highlighted
Developer
Posts: 604
Registered: ‎12-27-2010
My Device: Not Specified

Re: Confused MapLocation documentaion !

How are you calling the map and creating the marker? Can you post the relevant code?

Developer
Posts: 253
Registered: ‎08-14-2010
My Device: Not Specified

Re: Confused MapLocation documentaion !

RichMapField mapField = MapFactory.getInstance().generateRichMapField();
		
		
		
		MapLocation location = new MapLocation(43.46518, -80.52237, "Waterloo", "This is Waterloo");
		
		MapDataModel model =mapField.getModel();
		
		model.add((Mappable) location);
		add(mapField);

 

Developer
Posts: 253
Registered: ‎08-14-2010
My Device: Not Specified

Re: Confused MapLocation documentaion !

Hi ,

 

I did check the native Map app in BB for 6.0.

 

It shows the info as I need.

 

Why but my implementation does not work?

 

 

Thank you in advance.

 

Cheers