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

Posts: 445
Registered: ‎10-14-2008
My Device: Blackberry Bold 9000
My Carrier: SingTel

Click event on Mapfield`s Marker...



I want to implement click functionality on mapfield marker..


my application following the below code..


Please have a look on http://stackoverflow.com/questions/1554016/how-to-show-more-than-one-location-in-blackberry-mapfield


i am using the same code and i am able to show multiple markers on blackberry map.


but now i want to implement the click functionality on these markers...


how it is possible???


any thoughts....



Thanks & Regards
Zahid Naqvi | Senior Software Engineer
Trusted Contributor
Posts: 103
Registered: ‎11-07-2010
My Device: Not Specified

Re: Click event on Mapfield`s Marker...

i am also searching for the same thing

Posts: 12
Registered: ‎06-24-2012
My Device: 9800
My Carrier: developer

Re: Click event on Mapfield`s Marker...

try overriding the navigation click of the images being used for markers.

use an array of bitmapfield which corresponds to the array /vector of the locations.

hence u can target the behaviour of each marker .

Trusted Contributor
Posts: 141
Registered: ‎02-15-2012
My Device: 9800
My Carrier: Airtel

Re: Click event on Mapfield`s Marker...

store the information for all markers in the same vector. If you are using Bitmapfield to show these Markers, then on 'navigationClick', get the data from the same vector according to index.


index is in the form of int. Make the in value as 'final'.

Follow the code as:


final int index;

Vector informationVec = new Vector();

BitmapField marker;


// store information into the vector


marker = new BitmapField(Field.Focusable)


protected boolean navigationClick(int status, int time)


// Get index based upon your conditions



// Get information from vector in your object

Object obj = (Object) informationVec.elementAt(index);// Type casting by Object