有android开发google map的兄弟吗?道路偏移怎么解决啊?
代码:
private MapView mMapView;
private MapController mMapController;
private GeoPoint mGeoPoint;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mMapView = (MapView) findViewById(R.id.mapview);
//设置为交通模式
//mMapView.setTraffic(true);
//设置为卫星模式
//mMapView.setSatellite(true);
//设置为街景模式
//mMapView.setStreetView(false);
//取得MapController对象(控制MapView)
mMapController = mMapView.getController();
mMapView.setEnabled(true);
mMapView.setClickable(true);
//设置地图支持缩放
mMapView.setBuiltInZoomControls(true);
//设置起点
mGeoPoint = new GeoPoint((int) (29.9885773700000975 * 1000000), (int) (122.2168246800000020 * 1000000));
//定位到成都
mMapController.animateTo(mGeoPoint);
//设置倍数(1-21)
mMapController.setZoom(18);
//添加Overlay,用于显示标注信息
MyLocationOverlay myLocationOverlay = new MyLocationOverlay();
List<Overlay> list = mMapView.getOverlays();
list.add(myLocationOverlay);
}
protected boolean isRouteDisplayed()
{
return false;
}
class MyLocationOverlay extends Overlay
{
@Override
public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when)
{
super.draw(canvas, mapView, shadow);
return true;
}
} --------------------编程问答-------------------- 怎么个道路偏移? --------------------编程问答-------------------- 请看图
用打开
正确的样子是:
--------------------编程问答-------------------- 还真没有见到过道路偏移的现象诶。
难道是模拟器的网速问题? --------------------编程问答-------------------- 我也碰到了同样的问题.地图上的道路显示都偏了,不知道怎么解决.mark一下.坐等高手 --------------------编程问答-------------------- 我们之前pc上的。google地图解决不了这个问题吧。 --------------------编程问答-------------------- 我的也是啊!!!等解决方案啊!!1 --------------------编程问答-------------------- 讲明白点,我没看懂你到底要干什么,偏移是怎么回事? --------------------编程问答--------------------
你看那个白的标的路线,跟那个实际的路线,是不是有偏移...就是这个意思
不知道该怎么解决啊 --------------------编程问答-------------------- 同样的问题 楼主解决了吗?
求高手解决,十分感谢 --------------------编程问答-------------------- 我也碰到这问题了,请问楼主解决了吗 --------------------编程问答-------------------- 同样的问题!求解决! --------------------编程问答-------------------- 这个问题我也遇到过,就是没有解决! --------------------编程问答-------------------- 好像有个偏移表的。。。你找找吧 --------------------编程问答-------------------- google地图在中国做了偏移一般在500米以内,所以就需要去找到专门的纠偏库来纠偏。这样在地图上就能显示正常的位置。
补充:移动开发 , Android