Would you like to tell us how we are doing?

You bet No thanks

Sorry about the red box, but we really need you to update your browser. Read this excellent article if you're wondering why we are no longer supporting this browser version. Go to Browse Happy for browser suggestions and how to update.

Open BlackBerry Maps with specific coordinates

You can open BlackBerry Maps to display a location on a map by providing the coordinates for the latitude and longitude of a location and by specifying the zoom and rotation values. The zoom values have a range of 0 to MapView.MAX_ZOOM. The rotation values are expressed in degrees to rotate the map from north facing up, and have a range of 0 to 359.

Code sample: Invoking BlackBerry Maps with specific coordinates

import net.rim.blackberry.api.invoke.*;
import net.rim.blackberry.api.maps.*;

//Create a class and constructor to use to invoke BlackBerry Maps. 
public class invokeMaps
    public invokeMaps()

//In the constructor, create an instance of the MapView class. Invoke 
//MapView.setLatitude(), MapView.setLongitude(), and MapView.setZoom() 
//to specify the coordinates and zoom that you want to use.  
        MapView mapView = new MapView();

//In the constructor, create an instance of the MapsArguments class using 
//the MapView object as an argument. Invoke Invoke.invokeApplication() to 
//open BlackBerry Maps and pass in the MapsArguments object.  
        MapsArguments mapsArgs = new MapsArguments(mapView);
        Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, mapsArgs);