Alex Rivera | Logout

how to get the long & lat value of four corners in the mapview in android?

Asked 2010-03-19T10:06:30.700
9

i working on map view. i want to put overlay item on the map view. that overlay items are all depends on currently showing map view and zoom level. how to get current map view's longitude and latitude of that four corner and how to analyze how many overlay item inside it. also we have to check thee zoom level.Any Idea? how to do it?

Edit
Report

1 Answer

7

If you're using the google-play-services library and the SupportMapFragment in particular.

this.getMap() will give you the instance of GoogleMap (which wraps MapView)

Then just:

map.getProjection().getVisibleRegion();

answered 2013-02-07T22:30:56.590

Your Answer