07-08-2011 08:58 AM
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.
07-08-2011 09:41 AM
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);