From bb0d2a1c27f1b45fd5002c2ff5367b2e91eead10 Mon Sep 17 00:00:00 2001 From: GaidamakUA Date: Tue, 12 Jan 2016 09:58:26 +0200 Subject: [PATCH] Impassable roads layer getLocationImplemented. --- OsmAnd/src/net/osmand/plus/views/ImpassableRoadsLayer.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/views/ImpassableRoadsLayer.java b/OsmAnd/src/net/osmand/plus/views/ImpassableRoadsLayer.java index b5090bc7ca..3625ea491b 100644 --- a/OsmAnd/src/net/osmand/plus/views/ImpassableRoadsLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/ImpassableRoadsLayer.java @@ -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; }