views:

155

answers:

1

Say I have mapview control in my Android app. If I know a landmark exists at a certain latitude and longitude, how can I determine if that landmark is currently viewable on the user's screen? Is there a method for getting the coordinates for the top left and bottom right corners of the visible area?

+1  A: 

You can project GeoPoint to Point and check if it is box (0, screen width) by (0, screen height)

See: http://code.google.com/intl/pl-PL/android/add-ons/google-apis/reference/com/google/android/maps/Projection.html

skyman