Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道在 MapFragment 或 SupportMapFragment 中获取视图范围的简单方法?
也就是说,我需要为 Google Play Services MapFragment 的可视区域的左上角和右下角获取 GPS 坐标,如下所示:
当用户调整视图大小或重新定位视图时,我需要能够获得这些坐标。
采用
map.getProjection().getVisibleRegion().farLeft
阅读更多关于VisibleRegion.
VisibleRegion