use destination tag in navigation
This commit is contained in:
parent
b9b4b564a6
commit
9a42f24193
1 changed files with 2 additions and 2 deletions
|
@ -267,13 +267,13 @@ public class MapInfoWidgetsFactory {
|
||||||
int di = map.getMapLayers().getRouteInfoLayer().getDirectionInfo();
|
int di = map.getMapLayers().getRouteInfoLayer().getDirectionInfo();
|
||||||
if (di >= 0 && map.getMapLayers().getRouteInfoLayer().isVisible()) {
|
if (di >= 0 && map.getMapLayers().getRouteInfoLayer().isVisible()) {
|
||||||
RouteDirectionInfo next = routingHelper.getRouteDirections().get(di);
|
RouteDirectionInfo next = routingHelper.getRouteDirections().get(di);
|
||||||
text = RoutingHelper.formatStreetName(next.getStreetName(), next.getRef());
|
text = RoutingHelper.formatStreetName(next.getStreetName(), next.getRef(), next.getDestinationName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if(map.getMapViewTrackingUtilities().isMapLinkedToLocation()) {
|
} else if(map.getMapViewTrackingUtilities().isMapLinkedToLocation()) {
|
||||||
RouteDataObject rt = locationProvider.getLastKnownRouteSegment();
|
RouteDataObject rt = locationProvider.getLastKnownRouteSegment();
|
||||||
if(rt != null) {
|
if(rt != null) {
|
||||||
text = RoutingHelper.formatStreetName(rt.getName(), rt.getRef());
|
text = RoutingHelper.formatStreetName(rt.getName(), rt.getRef(), rt.getDestinationName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(text == null) {
|
if(text == null) {
|
||||||
|
|
Loading…
Reference in a new issue