Added map position
This commit is contained in:
parent
cd5ec404c5
commit
04d28c9577
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue