add parial interaction with points (but without ability to remove point from list, for now)
This commit is contained in:
parent
3193c249ac
commit
ff03c5db19
1 changed files with 13 additions and 0 deletions
|
@ -179,6 +179,19 @@ public class ImpassableRoadsLayer extends OsmandMapLayer implements
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (Map.Entry<RouteDataObject, Location> entry : avoidRoadsHelper.getRoadsToAvoid().entrySet()) {
|
||||
LatLon location = new LatLon(entry.getValue().getLatitude(), entry.getValue().getLongitude());
|
||||
RouteDataObject road = entry.getKey();
|
||||
if (location != null && road != null) {
|
||||
int x = (int) tileBox.getPixXFromLatLon(location.getLatitude(), location.getLongitude());
|
||||
int y = (int) tileBox.getPixYFromLatLon(location.getLatitude(), location.getLongitude());
|
||||
if (calculateBelongs(ex, ey, x, y, compare)) {
|
||||
compare = radius;
|
||||
o.add(road);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue