Android: Google Maps V2: How do we get the longitude/latitude of the screen? -


we using google maps v1 , start migrate google maps v2. need obtaing center, radius , box of screen, points in middle of screen , radius covers everything.

in google maps android v1, mapview had convenience method: getmapcenter(). cannot figure out how map center v2 of api. have perused api documentation, there no mention of such feature.

i need latitude/longitude span. used mapview.getlatitudespan() , mapview.getlongitudespan() in version 1 apis. can't find in v2.

does have same problem?

from googlemap object , call getprojection() return projection object can call getvisableregion() should contain info need.

please see following:

https://developer.android.com/reference/com/google/android/gms/maps/googlemap.html#getprojection%28%29


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -