如何设置mapview不显示我当前的位置?

时间:2011-08-17 02:48:01

标签: android android-mapview

如何设置mapview的编码不显示当前位置

现在它不会在emulater上显示但是当我尝试在我的手机上安装时,当前位置叹息会显示

我该怎么办?

1 个答案:

答案 0 :(得分:0)

public static int getCoordinateE6(double coordinate) {
    return (int) (coordinate * 1E6);
}

GeoPoint geoPoint = new GeoPoint(
    GoogleMapServiceHelper.getCoordinateE6(latitude),
    GoogleMapServiceHelper.getCoordinateE6(longitude));
getMapView().getController().animateTo(geoPoint);
相关问题