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
zahidalinaqvi
Posts: 445
Registered: ‎10-14-2008
My Device: Blackberry Bold 9000

Mapfield with multiple Pointers

I want to make a screen where i have to show the map with the all received lat and long. and i want to show this map in 200*200 resolution only.

Can i make the pointer bitmap as focusable so i can be click on it and show other screen.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks & Regards
Zahid Naqvi | Senior Software Engineer
Please use plain text.
Developer
Gunjan
Posts: 50
Registered: ‎09-01-2009
My Device: Not Specified

Re: Mapfield with multiple Pointers

hi

I dont know whether u can show map with 200*200 or not.

I think you need to refer to mapFieldDemo in order to understand how map works.

as i have read that i got to know that DemoMapField & MapFieldDemoScreen boh java file you need to look at closely which will be very useful to you to integrate map funtionality in your application.

As you want to locate your friend on your map i think

 you need to override paint method in the DemoMapField.java file

in paint method you get all your longitude an latiude the convert each into XY point in order to put it on screen. then use this XY point and with the help of graphics you can use drawBitmap or drawText what ever you want.

 

Please use plain text.