0
我试图在设备屏幕上仅显示Google地图,仅从min纬度/经度显示到max Latitude/Longitude。我所做的是获取最大和最小的经度和纬度和显示为以min为单位显示Google地图纬度/经度为max纬度/经度
map.animateTo(new GeoPoint((int)((maxLatitude + minLatitude)/2),(int)((maxLongitude + minLongitude)/2)));
但它不起作用。此行对于“Google地图类型的方法animateTo(GeoPoint)未定义”有编译错误。哪里不对?
我正在使用Google Maps Android API v2。谢谢 – Bryanyan 2013-04-07 06:15:12
GeoPoint来自API v1 – 2013-04-07 06:52:00