Impassable roads layer getLocationImplemented.
This commit is contained in:
parent
9764dd5bc8
commit
bb0d2a1c27
1 changed files with 5 additions and 0 deletions
|
@ -125,6 +125,11 @@ public class ImpassableRoadsLayer extends OsmandMapLayer implements ContextMenuL
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public LatLon getObjectLocation(Object o) {
|
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;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue