Added map position

This commit is contained in:
Denis 2014-11-12 13:46:23 +02:00
parent cd5ec404c5
commit 04d28c9577

View file

@ -114,6 +114,12 @@ public class DashboardActivity extends SherlockFragmentActivity {
osmandMapTileView.addLayer(mapVectorLayer, 0.5f);
osmandMapTileView.setMainLayer(mapVectorLayer);
mapVectorLayer.setVisible(true);
net.osmand.Location location = getMyApplication().getLocationProvider().getFirstTimeRunDefaultLocation();
if(location != null){
osmandMapTileView.setLatLon(location.getLatitude(), location.getLongitude());
osmandMapTileView.setIntZoom(14);
}
osmandMapTileView.refreshMap(true);
}