You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I mentioned this already in #560 but it's time to open an own issue.
Since BayernProvider can be used instead of MVV, it would be nice to colorize the S-Bahn lines in Munich in BayernProvider as in MVV. Maybe it's possible to just copy the following lines in "src/de/schildbach/pte/MvvProvider.java":
STYLES.put("SS1", new Style(Shape.CIRCLE, Style.parseColor("#16bae7"), Style.WHITE));
STYLES.put("SS2", new Style(Shape.CIRCLE, Style.parseColor("#76b82a"), Style.WHITE));
STYLES.put("SS3", new Style(Shape.CIRCLE, Style.parseColor("#951b81"), Style.WHITE));
STYLES.put("SS4", new Style(Shape.CIRCLE, Style.parseColor("#e30613"), Style.WHITE));
STYLES.put("SS6", new Style(Shape.CIRCLE, Style.parseColor("#00975f"), Style.WHITE));
STYLES.put("SS7", new Style(Shape.CIRCLE, Style.parseColor("#943126"), Style.WHITE));
STYLES.put("SS8", new Style(Shape.CIRCLE, Style.BLACK, Style.parseColor("#ffcc00")));
STYLES.put("SS18",
new Style(Shape.CIRCLE, Style.parseColor("#16bae7"), Style.parseColor("#f0aa00"), Style.WHITE, 0));
STYLES.put("SS20", new Style(Shape.CIRCLE, Style.parseColor("#ea516d"), Style.WHITE));
and just add it after adding swm| in front of every String like this:
static {
// Munich
STYLES.put("swm|T12", new Style(Shape.RECT, Style.parseColor("#96368b"), Style.WHITE));
STYLES.put("swm|T15",
new Style(Shape.RECT, Style.WHITE, Style.parseColor("#f1919c"), Style.parseColor("#f1919c")));
STYLES.put("swm|T16", new Style(Shape.RECT, Style.parseColor("#0065ae"), Style.WHITE));
STYLES.put("swm|T17", new Style(Shape.RECT, Style.parseColor("#8b563e"), Style.WHITE));
STYLES.put("swm|T18", new Style(Shape.RECT, Style.parseColor("#13a538"), Style.WHITE));
STYLES.put("swm|T19", new Style(Shape.RECT, Style.parseColor("#e30613"), Style.WHITE));
STYLES.put("swm|T20", new Style(Shape.RECT, Style.parseColor("#16bae7"), Style.WHITE));
STYLES.put("swm|T21", new Style(Shape.RECT, Style.parseColor("#bc7a00"), Style.WHITE));
STYLES.put("swm|T22",
new Style(Shape.RECT, Style.WHITE, Style.parseColor("#16bae7"), Style.parseColor("#16bae7")));
STYLES.put("swm|T23", new Style(Shape.RECT, Style.parseColor("#bccf00"), Style.WHITE));
STYLES.put("swm|T25", new Style(Shape.RECT, Style.parseColor("#f1919c"), Style.WHITE));
STYLES.put("swm|T27", new Style(Shape.RECT, Style.parseColor("#f7a600"), Style.WHITE));
STYLES.put("swm|T28",
new Style(Shape.RECT, Style.WHITE, Style.parseColor("#f7a600"), Style.parseColor("#f7a600")));
STYLES.put("swm|T29", new Style(Shape.RECT, Style.WHITE, Style.parseColor("#e30613"), Style.parseColor(
"#e30613")));
STYLES.put("swm|T31",
new Style(Shape.RECT, Style.parseColor("#e30613"), Style.parseColor("#bc7a00"), Style.WHITE, 0));
STYLES.put("swm|TN17", new Style(Shape.RECT, Style.parseColor("#999999"), Style.parseColor("#ffff00")));
STYLES.put("swm|TN19", new Style(Shape.RECT, Style.parseColor("#999999"), Style.parseColor("#ffff00")));
STYLES.put("swm|TN20", new Style(Shape.RECT, Style.parseColor("#999999"), Style.parseColor("#ffff00")));
STYLES.put("swm|TN27", new Style(Shape.RECT, Style.parseColor("#999999"), Style.parseColor("#ffff00")));
STYLES.put("swm|UU1", new Style(Shape.RECT, Style.parseColor("#52822f"), Style.WHITE));
STYLES.put("swm|UU2", new Style(Shape.RECT, Style.parseColor("#c20831"), Style.WHITE));
STYLES.put("swm|UU3", new Style(Shape.RECT, Style.parseColor("#ec6726"), Style.WHITE));
STYLES.put("swm|UU4", new Style(Shape.RECT, Style.parseColor("#00a984"), Style.WHITE));
STYLES.put("swm|UU5", new Style(Shape.RECT, Style.parseColor("#bc7a00"), Style.WHITE));
STYLES.put("swm|UU6", new Style(Shape.RECT, Style.parseColor("#0065ae"), Style.WHITE));
STYLES.put("swm|UU7",
new Style(Shape.RECT, Style.parseColor("#52822f"), Style.parseColor("#c20831"), Style.WHITE, 0));
STYLES.put("swm|UU8",
new Style(Shape.RECT, Style.parseColor("#c20831"), Style.parseColor("#ec6726"), Style.WHITE, 0));
STYLES.put("swm|B", new Style(Shape.RECT, Style.parseColor("#005262"), Style.WHITE));
STYLES.put("swm|BX", new Style(Shape.RECT, Style.parseColor("#4e917a"), Style.WHITE));
STYLES.put("swm|SS1", new Style(Shape.CIRCLE, Style.parseColor("#16bae7"), Style.WHITE));
STYLES.put("swm|SS2", new Style(Shape.CIRCLE, Style.parseColor("#76b82a"), Style.WHITE));
STYLES.put("swm|SS3", new Style(Shape.CIRCLE, Style.parseColor("#951b81"), Style.WHITE));
STYLES.put("swm|SS4", new Style(Shape.CIRCLE, Style.parseColor("#e30613"), Style.WHITE));
STYLES.put("swm|SS6", new Style(Shape.CIRCLE, Style.parseColor("#00975f"), Style.WHITE));
STYLES.put("swm|SS7", new Style(Shape.CIRCLE, Style.parseColor("#943126"), Style.WHITE));
STYLES.put("swm|SS8", new Style(Shape.CIRCLE, Style.BLACK, Style.parseColor("#ffcc00")));
STYLES.put("swm|SS18",
new Style(Shape.CIRCLE, Style.parseColor("#16bae7"), Style.parseColor("#f0aa00"), Style.WHITE, 0));
STYLES.put("swm|SS20", new Style(Shape.CIRCLE, Style.parseColor("#ea516d"), Style.WHITE));
// Ingolstadt
...
}
The text was updated successfully, but these errors were encountered:
I mentioned this already in #560 but it's time to open an own issue.
Since BayernProvider can be used instead of MVV, it would be nice to colorize the S-Bahn lines in Munich in BayernProvider as in MVV. Maybe it's possible to just copy the following lines in "src/de/schildbach/pte/MvvProvider.java":
and just add it after adding
swm|
in front of every String like this:The text was updated successfully, but these errors were encountered: