Ah.. good... I was just going to ask you if you were casting it to an integer somewhere :).

Hopefully, you're on your way again :).



On 29/06/2010 8:15 AM, Pedro Teixeira wrote:
I got it just by turning into a float and dividing by 1e6

GeoPoint MapCenter = mapView.getMapCenter();
float centerLatitude = MapCenter.getLatitudeE6()/1000000;
float centerLongitude = MapCenter.getLongitudeE6()/1000000;


Re: If the center is for example : 14,324234 23,432557 it delivers
14000000 23000000

Please post the essential code. For example, when I try:

GeoPoint centerPoint = new GeoPoint(37762336,-122435640);
...
       mapView.getController().setCenter(centerPoint);
       mapView.getController().setZoom(16);
...
Log.i(TAG, "center: " + mapView.getMapCenter().getLatitudeE6() +
"," + mapView.getMapCenter().getLongitudeE6());


I see this in logcat:

06-28 18:57:08.278: INFO/MapDroid(3102): center: 37762336,-122435640

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected] <mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected] <mailto:[email protected]>
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Pedro Teixeira

www.pedroteixeira.org <http://www.pedroteixeira.org>

--
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

--
Sincerely,

Brad Gies
-----------------------------------------------------------------------
Bistro Bot - Bistro Blurb
http://www.bgies.com
http://www.bistroblurb.com
http://www.ihottonight.com
-----------------------------------------------------------------------

Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead

--
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to