0
おそらくこれは重複した質問ですが、私はその答えを見つけることができません。更新後のopenstreetmap(OSM)同じマップ表示ウィンドウ
私はosmdroidを使用し、ジオポイントでルートを表示します。このルートは、新しいGPS-Locationが使用可能である場合に更新されます。しかし、このアップデートでは、スケール、ズーム、センターがこれ以上同じではありません。
私はプロジェクションを使用しようとしましたが、解決策を得ることができません。
projection = mapView.getProjection();
...
if (projection==null) {
mapView.getController().setZoom(14);
mapView.getController().setCenter(new GeoPoint(latitude, longitude)); //You should select a point in your map or get it from user's location.
}else {
mapView.getController().setZoom(projection.getZoomLevel());
mapView.getController().setCenter(projection.getBoundingBox().getCenter());
}
更新後に同じ地図表示画面を表示するための正しい方法は何ですか。