10-10-2010 08:50 AM
I want to implement click functionality on mapfield marker..
my application following the below code..
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???
06-24-2012 03:22 PM
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 .
07-18-2012 05:32 AM
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();
// 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