【发布时间】:2010-11-08 04:21:55
【问题描述】:
使用Google Maps API,如何获取地图显示区域各个角落的经纬度?
也就是说,如果我的地图是 300px 宽和 400px 高,我怎样才能找到 (0,0) 和 (300,400) 处的点的经纬度?
【问题讨论】:
标签: google-maps mapping maps
使用Google Maps API,如何获取地图显示区域各个角落的经纬度?
也就是说,如果我的地图是 300px 宽和 400px 高,我怎样才能找到 (0,0) 和 (300,400) 处的点的经纬度?
【问题讨论】:
标签: google-maps mapping maps
【讨论】:
在 Android(Kotlin) 中你可以试试这个,
val curentScreen: LatLngBounds = mapview.getProjection().getVisibleRegion().latLngBounds
var northeast=curentScreen.northeast
var southwest=curentScreen.southwest
var center=curentScreen.center
Log.v("northeast LatLng","-:"+northeast)
Log.v("southwest LatLng","-:"+southwest)
Log.v("center LatLng","-:"+center)
【讨论】: