net.rim.blackberry.api.maps
Class MapView

java.lang.Object
  extended by net.rim.blackberry.api.maps.MapView

public class MapView
extends Object

Represents the view seen in a mapping application (latitude and longitude for the center of the map, and the zoom and rotation values).

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.2.1

Field Summary
Category: Signed static int MAX_ZOOM
          The maximum zoom value.
 
Constructor Summary
Category: Signed MapView()
          Create a new MapView object.
 
Method Summary
Category: Signed  int getLatitude()
          Retrieves the latitude of the center of the map.
Category: Signed  int getLongitude()
          Retrieves the longitude of the center of the map.
Category: Signed  int getRotation()
          Gets the rotation value for the map.
Category: Signed  int getZoom()
          Gets the zoom value for the map.
Category: Signed  void setLatitude(int latitude)
          Sets the latitude for the center of the map.
Category: Signed  void setLongitude(int longitude)
          Sets the longitude for the center of the map.
Category: Signed  void setRotation(int rotation)
          Set the rotation value for the map.
Category: Signed  void setZoom(int zoom)
          Sets the zoom value for the map.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Field Detail

MAX_ZOOM

public static final int MAX_ZOOM
The maximum zoom value.

See Also:
Constant Field Values
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.2.1


Constructor Detail

MapView

public MapView()
Create a new MapView object.

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.2.1


Method Detail

setLatitude

public void setLatitude(int latitude)
Sets the latitude for the center of the map.

Parameters:
latitude - The latitude (100,000 times the value specified by WGS84)
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.2.1

getLatitude

public int getLatitude()
Retrieves the latitude of the center of the map.

Returns:
The latitude (100,000 times the value specified by WGS84)
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.2.1

setLongitude

public void setLongitude(int longitude)
Sets the longitude for the center of the map.

Parameters:
longitude - The longitude (100,000 times the value specified by WGS84)
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.2.1

getLongitude

public int getLongitude()
Retrieves the longitude of the center of the map.

Returns:
The longitude (100,000 times the value specified by WGS84)
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.2.1

setZoom

public void setZoom(int zoom)
Sets the zoom value for the map. Lower values provide more granularity. Values < 0 will set the value to 0. Values > MAX_ZOOM will set the value to MAX_ZOOM.

Parameters:
zoom - The zoom (0 - MAX_ZOOM)
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.2.1

getZoom

public int getZoom()
Gets the zoom value for the map.

Returns:
The zoom (0 - MAX_ZOOM)
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.2.1

setRotation

public void setRotation(int rotation)
Set the rotation value for the map.

Parameters:
rotation - The rotation value in degrees. Degrees rotated from north facing up.
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.2.1

getRotation

public int getRotation()
Gets the rotation value for the map.

Returns:
The rotation value in degrees rotated from north facing up.
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 4.2.1





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal