This method works for me:
CameraPosition camPos2 = mapa.getCameraPosition(); LatLng pos = camPos2.target; Toast.makeText(MainActivity.this,"Lat: " + pos.latitude + " - Lng: " +pos.longitude, Toast.LENGTH_LONG).show();
Strike>
Oops, I misunderstood the question, I mean that I did not see the word "span". According to the API, the correct one would be
First get grades:
LatLngBounds bounds = gMap.getProjection().getVisibleRegion().latLngBounds;
And then ask if any point is within the boundaries:
LatLng point = new LatLng (latitude, longitude); if(bounds.contains(point)){ //do something }
Ricardo May 13 '13 at 14:32 2013-05-13 14:32
source share