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:
Comments
Post a Comment