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
Regular Contributor
Posts: 75
Registered: ‎05-27-2010
My Device: 9800
My Carrier: Airtel

Show a pointer on map and navigate After clicking on it

Hi,

  I want to show a map with number of location using maker pins. After clicking on any pin, control should go to some page say info. From this we Can again navigate wherever we want. Can anyone please help. I'm using blackberry sdk 6.0 and device is torch 9800.

Regular Contributor
Posts: 75
Registered: ‎05-27-2010
My Device: 9800
My Carrier: Airtel

Re: Show a pointer on map and navigate After clicking on it

Hi,

 

Can anyone please help me? It's urgent and I am blocked.

 

Thanks in advance,

 

Regards,

Bhavesh Patel

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Show a pointer on map and navigate After clicking on it

I would start by opening the samples programs that ship with the BB SDK.

 

IIRC, there is a sample called MapfieldDemo that basically does what you are asking.

 

Highlighted
Regular Contributor
Posts: 75
Registered: ‎05-27-2010
My Device: 9800
My Carrier: Airtel

Re: Show a pointer on map and navigate After clicking on it

Hi,

 

I already saw the samples programs for MapField, but it's of no use to me.

This samples shows, how to open/invoke the blackberry map from my application.

Since it is invoking, there is no control of my application on Blackberry Map.

I want to show Map from my BB application. And On click of any position on BB Map, my application screen should come with some data.

I hope you understand my problem.

 

Please help me.

Thanks a lot in advance.

 

Regards,

Bhavesh

Contributor
Posts: 14
Registered: ‎03-05-2011
My Device: Monza 9860
My Carrier: XL

Re: Show a pointer on map and navigate After clicking on it

i think you should make a custom MapField.

override paint(Graphics) method to add/draw pin/marker

override navigationMovement() to define how you move the focus from a pin to another

override touchEvent() for TouchScreen device to handle clicking and moving the map

 

Danis

Developer
Posts: 19,631
Registered: ‎07-14-2008
My Device: Not Specified

Re: Show a pointer on map and navigate After clicking on it

This code might help.  I would review if carefully.

 

http://stackoverflow.com/questions/1524428/how-to-show-our-own-icon-in-blackberry-map