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
Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Problem in displaying map

Hey i have to show the latitude and longitude in map.

 

I have give the latitude as well as latitude.. But the map is not visible. I am just getting the point.

 

MapView mapView = new MapView();
        mapView.setLatitude(4328915);
        mapView.setLongitude(-8032480);
        mapView.setZoom(10);
        MapsArguments mapsArgs = new MapsArguments(mapView);
        Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, mapsArgs);

 

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

Re: Problem in displaying map

Make sure you set a location that you sure there are Maps for - try the location for Waterloo Canada (BBRY home town) for example. 

Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: Problem in displaying map

Still i am getting the point but the mao is not visible

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

Re: Problem in displaying map

Does BlackBerry Maps work at all on the device you are using?