mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-15 09:00:36 +00:00
Berlin bus shapes
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@892 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
1f02884075
commit
fa9bc2a01c
1 changed files with 10 additions and 2 deletions
|
@ -1039,13 +1039,21 @@ public final class BvgProvider extends AbstractHafasProvider
|
|||
LINES.put("RRB93", new Style(Shape.RECT, Style.parseColor("#A7653F"), Style.WHITE));
|
||||
}
|
||||
|
||||
private static final Style STYLE_BUS_NIGHT = new Style(Shape.RECT, Style.BLACK, Style.WHITE);
|
||||
private static final Style STYLE_BUS_DAY = new Style(Shape.RECT, Style.parseColor("#993399"), Style.WHITE);
|
||||
|
||||
@Override
|
||||
public Style lineStyle(final String line)
|
||||
{
|
||||
final Style style = LINES.get(line);
|
||||
if (style != null)
|
||||
return style;
|
||||
else
|
||||
|
||||
if (line.startsWith("BN"))
|
||||
return STYLE_BUS_NIGHT;
|
||||
if (line.startsWith("B"))
|
||||
return STYLE_BUS_DAY;
|
||||
|
||||
return super.lineStyle(line);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue