Android 百度地图开发 怎么获得右
2017-02-12
展开全部
int tpSpan = mMapView.getLatitudeSpan();// 当前纬线的跨度(从地图的上边缘到下边缘)int lrSpan = mMapView.getLongitudeSpan();// 当前经度的跨度(从地图的左边缘到右边缘)
GeoPoint point = new GeoPoint(centerPoint.getLatitudeE6()- tpSpan / 2, centerPoint.getLongitudeE6() + lrSpan / 2);// 右上角
GeoPoint point2 = new GeoPoint(centerPoint.getLatitudeE6()+ tpSpan / 2, centerPoint.getLongitudeE6() - lrSpan / 2);// 左下角
GeoPoint point = new GeoPoint(centerPoint.getLatitudeE6()- tpSpan / 2, centerPoint.getLongitudeE6() + lrSpan / 2);// 右上角
GeoPoint point2 = new GeoPoint(centerPoint.getLatitudeE6()+ tpSpan / 2, centerPoint.getLongitudeE6() - lrSpan / 2);// 左下角
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询