I'm trying to use the center point of a MapView and the Latitude and
Longitude spans to generate GeoPoints for the upper left and lower
right corners of the view. However, when I try to use
getLatitudeSpan() and getLongitudeSpan() they are returning 0 and
360000000.
The displays fine. It's centered on the right location with the
proper zoom. Here's my code:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mMapView =new MapView(this,"asdfasdf");
GeoPoint p=new GeoPoint(39156460,-77169915);
setContentView(mMapView);
MapController mc=mMapView.getController();
mc.setCenter(p);
mc.setZoom(14);
Log.v(TAG,"Lat Span="+mMapView.getLatitudeSpan());
Log.v(TAG,"Lon Span="+mMapView.getLongitudeSpan());
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---