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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
Pedro Teixeira
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en