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
sachin_r
Posts: 81
Registered: ‎01-28-2009
My Device: Not Specified

Capture click event of mapField

Hello All,

 

MapField map = new MapField(.....)  //mymapfield object

 

I am using MapField in my application which has many points located.

For each point I have drawn an image say pinImage.

 

I am able to move it by capturing it's gasture event.

 

Now I want to capture its click event. When I click the map control goes to Click event.

 

But there how can I came to know which pinImage or which point is clicked.

 

I tried in following way but no use

 

 

XYRect rect = new XYRect();

map.getFocusRect(rect);

 

rect laways return x =0 and y =0. even though i click at any other point...

 

Can anybody please tell me how to get the clicked point data?

 

Thanks

Don't forget to mark your post as solved if you got answer. And give kudos.
Developer
ushernut
Posts: 55
Registered: ‎09-09-2008
My Device: Not Specified

Re: Capture click event of mapField

I have same question...

Developer
ushernut
Posts: 55
Registered: ‎09-09-2008
My Device: Not Specified

Re: Capture click event of mapField