Obsolete
Status Update
Comments
he...@gmail.com <he...@gmail.com> #2
Argh....with this bug there is absolutely no way to determine if the user has changed changed the panning of the map....I need a way to determine this so that i can allow the user to reset the map to it's original view. Please fix this ASAP.
en...@google.com <en...@google.com>
[Deleted User] <[Deleted User]> #3
I have another example regarding the problematic accuracy of moveCamera/animateCamera.
When you use CameraUpdateFactory.newLatLngBounds(), moveCamera and animateCamera result in different values in map.getProjection().getVisibleRegion().latLngBounds.
LatLngBounds bounds = new LatLngBounds(new LatLng(40.70798493778415, -74.01434069136418), new LatLng(40.72072004852845, -73.99760391411343));
if (animate) {
map.animateCamera(CameraUpdateFactory.newLatLngBounds(bounds, 0),
} else {
map.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 0));
}
map.getProjection().getVisibleRegion().latLngBounds :
after animateCamera -
LatLngBounds{southwest=lat/lng: (40.70711197865251,-74.01539381593466), northeast=lat/lng: (40.72159253556309,-73.99655096232891)}
after moveCamera -
LatLngBounds{southwest=lat/lng: (40.70798500292429,-74.01539381593466), northeast=lat/lng: (40.72071968970514,-73.99655096232891)}
This is pretty important for my design as im calculating a search radius (Vincenty’s formula) by the bounds of the map. appreciate if you could confirm the accuracy of those 2 APIs.
When you use CameraUpdateFactory.newLatLngBounds(), moveCamera and animateCamera result in different values in map.getProjection().getVisibleRegion().latLngBounds.
LatLngBounds bounds = new LatLngBounds(new LatLng(40.70798493778415, -74.01434069136418), new LatLng(40.72072004852845, -73.99760391411343));
if (animate) {
map.animateCamera(CameraUpdateFactory.newLatLngBounds(bounds, 0),
} else {
map.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 0));
}
map.getProjection().getVisibleRegion().latLngBounds :
after animateCamera -
LatLngBounds{southwest=lat/lng: (40.70711197865251,-74.01539381593466), northeast=lat/lng: (40.72159253556309,-73.99655096232891)}
after moveCamera -
LatLngBounds{southwest=lat/lng: (40.70798500292429,-74.01539381593466), northeast=lat/lng: (40.72071968970514,-73.99655096232891)}
This is pretty important for my design as im calculating a search radius (Vincenty’s formula) by the bounds of the map. appreciate if you could confirm the accuracy of those 2 APIs.
ta...@pinguo.us <ta...@pinguo.us> #5
any news regarding this issue ?
sa...@google.com <sa...@google.com> #6
I can share my thoughts about it.
LatLng is keeping doubles, when these are sent via IPC, they are flattened to floats, because there is no writeDouble:http://developer.android.com/reference/android/os/Parcel.html#writeFloat%28float%29 .
When going back, you lose precision and thus errors on 4-5th decimal place.
If I'm correct here, this can be hard (if possible) to fix without breaking compatibility.
LatLng is keeping doubles, when these are sent via IPC, they are flattened to floats, because there is no writeDouble:
When going back, you lose precision and thus errors on 4-5th decimal place.
If I'm correct here, this can be hard (if possible) to fix without breaking compatibility.
Description
my android sdk is 2.3.4. When i run the cts,The reports show that
"Compatibility Test Package: CtsProviderTestCases" have many fails.But i don't know why ?
the following is the detal:
1、
android.provider.cts.MediaStore_Audio_AlbumsTest
-- testGetContentUri fail junit.framework.AssertionFailedError at android.provider.cts.MediaStore_Audio_AlbumsTest.testGetContentUri(MediaStore_Audio_AlbumsTest.java:52)
-- testStoreAudioAlbumsInternal fail java.lang.IllegalArgumentException: Unknown URL content://media/internal/audio/albums at android.content.ContentResolver.insert(ContentResolver.java:600)
-- testStoreAudioAlbumsExternal fail java.lang.IllegalArgumentException: Unknown URL content://media/external/audio/albums at android.content.ContentResolver.insert(ContentResolver.java:600)
2、android.provider.cts.MediaStore_Images_ThumbnailsTest
testStoreImagesMediaExternal
java.lang.IllegalArgumentException: Unknown URL content://media/external/images/thumbnails at android.content.ContentResolver.insert(ContentResolver.java:600)