Fix Issue 643: stop routing doens't clear navigation point
This commit is contained in:
parent
a3577aa171
commit
13a7e98f6a
1 changed files with 5 additions and 1 deletions
|
@ -1027,7 +1027,11 @@ public class MapActivity extends Activity implements IMapLocationListener, Senso
|
|||
return true;
|
||||
case R.id.map_navigate_to_point:
|
||||
if (mapLayers.getNavigationLayer().getPointToNavigate() != null) {
|
||||
if(routingHelper.isRouteCalculated()){
|
||||
routingHelper.setFinalAndCurrentLocation(null, routingHelper.getCurrentLocation(), routingHelper.getCurrentGPXRoute());
|
||||
} else {
|
||||
navigateToPoint(null);
|
||||
}
|
||||
} else {
|
||||
navigateToPoint(new LatLon(mapView.getLatitude(), mapView.getLongitude()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue