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
Highlighted
New Developer
Posts: 23
Registered: ‎09-18-2009
My Device: Not Specified

Blackberry Map issues while invoking through Map View and Map Field

Hi,

 

I have two queries regarding maps.

 

-------------------------------------------------------------------------------------------------------------------

1. In my application  I am getting the latitude and longitude value from google maps.

 

When passing the value to

 

MapView mapview = new MapView();

mapview.setLatitude(<Googlemapslatitude>*100000);;

 

mapview.setLongitude(<Googlemapslongitude>*100000);;

 

 // Invoke maps application with specified MapView.
        Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, new MapsArguments(mapview));

 

For example we have provided the latitude and longitude of location "hyderabad". The map view is

 

pointing to location "chad",

 

So could you please help us out what' s going wrong.?

 

----------------------------------------------------------------------------------------------------------------------------------

 

2. One more query when we are trying to display map using MapField class the map is not displayed on

 

the simulator as well as device. It is displaying as blank page with green background.

 

mapField = new MapField(Field.FIELD_HCENTER);
        mapField.moveTo(100000, 100000);

 

What might be the problem here?

 

 

 

Thanks in advance

 

Regards,
Ashish