Do not show too far lanes information

This commit is contained in:
Victor Shcherb 2012-07-14 17:38:30 +02:00
parent c43b2f0ebd
commit 38a7520f1a

View file

@ -884,7 +884,7 @@ public class MapInfoLayer extends OsmandMapLayer {
loclanes = r.directionInfo.getTurnType().getLanes();
locimminent = r.imminent;
// Do not show too far
if(locimminent == 2 || locimminent < 0) {
if(r.distanceTo > 700 || (r.distanceTo > 1200 && !r.directionInfo.getTurnType().isSkipToSpeak())) {
loclanes = null;
}
}