Impassable roads layer getLocationImplemented.

This commit is contained in:
GaidamakUA 2016-01-12 09:58:26 +02:00
parent 9764dd5bc8
commit bb0d2a1c27

View file

@ -125,6 +125,11 @@ public class ImpassableRoadsLayer extends OsmandMapLayer implements ContextMenuL
@Override
public LatLon getObjectLocation(Object o) {
if(o instanceof RouteDataObject) {
RouteDataObject route = (RouteDataObject) o;
Location location = missingRoadLocations.get(route.getId());
return new LatLon(location.getLatitude(), location.getLongitude());
}
return null;
}