User:Ajoessen/Kosmos-Bahn Rules
Jump to navigation
Jump to search
Diese Seite enthält Regeln für Kosmos zur Erstellung von transparenten Tiles für den Eigenbedarf. Eine Anleitung findet sich hier. Die Haltestellen-Icons müssen im Unterverzeichnis Cache\ImageCache abgelegt sein. Sie sind in dieser zip-Datei enthalten. Ersatzweise kann man Bushaltestellen wie Straßenbahnhaltestellen rendern.
Options
| Option | Value | Comment |
|---|---|---|
| MinKosmosVersion | 2.2 | Minimal version of Kosmos needed to use these rules |
| LandBackgroundColor | #00FFFFFF | |
| SeaColor | #000080 |
Transport
| Rule Name | Targets | Selector | Template | Options | Comment |
|---|---|---|---|---|---|
| Rail | railway=rail |
Polyline (Color=gray, Width=12:0;14:2) | EliminateSeams | ||
| Light-Rail | railway=light_rail |
Polyline (Color=green, Width=12:0;14:2) | EliminateSeams | ||
| Tram | railway=tram |
Polyline (MinZoom=6, Color=blue, Width=6:1;17:2) | EliminateSeams | ||
| Subway | railway=subway |
Polyline (MinZoom=6, Color=blue, Width=6:1;17:2) | EliminateSeams | ||
| RailDisused | railway=disused |
Polyline (Color=silver, Width=12:0;14:2) | EliminateSeams |
Bahnhof
| Rule Name | Targets | Selector | Template | Coment |
|---|---|---|---|---|
| Bahnhof | railway=station |
Symbol (Type=Square, MinZoom=10, Color=red, BorderColor=black, BorderWidth=15%, Size=10:6;17:12) | ||
| .BfName | name=* |
Text (MinZoom=12, Color=black, OutlineColor=white, TagToUse=name, TextLineOffset=50%, FontName=Arial, FontStyle=regular, FontSize=12:10;16:12) | ||
| Halt | railway=halt |
Symbol (Type=Circle, MinZoom=10, Color=red, BorderColor=black, BorderWidth=15%, Size=10:6;17:10) | ||
| .HpName | name=* |
Text (MinZoom=13, Color=black, OutlineColor=white, TagToUse=name, TextLineOffset=50%, FontName=Arial, FontStyle=regular, FontSize=13:10;16:12) | ||
| TramStop | railway=tram_stop |
Symbol (Type=Circle, MinZoom=12, Color=yellow, BorderColor=black, BorderWidth=15%, Size=12:6;17:10) | ||
| .TramstopName | name=* |
Text (MinZoom=13, Color=black, OutlineColor=white, TagToUse=name, TextLineOffset=50%, FontName=Arial, FontStyle=regular, FontSize=14:8;16:12) | ||
| BusHalt1 | highway=bus_stop |
Icon( MinZoom=13, IconUrl=http://localhost/kosmos/POI/bus_stop.png, Width=23:10 ) | ||
| .Hp1Name | name=* |
Text (MinZoom=14, Color=black, OutlineColor=white, TagToUse=name, TextLineOffset=50%, FontName=Arial, FontStyle=regular, FontSize=14:8;16:12) | ||
| BusHalt2 | public_transport=stop_position |
Icon( MinZoom=13, IconUrl=http://localhost/kosmos/POI/bus_stop.png, Width=23:10 ) | ||
| .Hp2Name | name=* |
Text (MinZoom=14, Color=black, OutlineColor=white, TagToUse=name, TextLineOffset=50%, FontName=Arial, FontStyle=regular, FontSize=14:8;16:12) |
Routes
| Rule Name | Targets | Selector | Template | Options | Comment |
|---|---|---|---|---|---|
| RelationBus1 | type=route route=bus |
Polyline (MinZoom=11, Color=red, Width=10:1;17:8) | EliminateSeams | ||
| RelationBus2 | type=route line=bus |
Polyline (MinZoom=11, Color=red, Width=10:1;17:8) | EliminateSeams | ||
| RelationStrab1 | type=route route=tram |
Polyline (MinZoom=10, Color=blue, Width=10:4;17:8) | EliminateSeams | ||
| RelationStrab2 | type=route line=tram |
Polyline (MinZoom=10, Color=blue, Width=10:4;17:8) | EliminateSeams | ||
| RelationSubway1 | type=route route=subway |
Polyline (MinZoom=10, Color=navy, Width=10:4;17:10) | EliminateSeams | ||
| RelationSubway2 | type=route line=subway |
Polyline (MinZoom=10, Color=navy, Width=10:4;17:10) | EliminateSeams | ||
| RelationS-Bahn1 | type=route route=light_rail |
Polyline (MinZoom=7, Color=lime, Width=7:1;17:10) | EliminateSeams | ||
| RelationS-Bahn2 | type=route line=light_rail |
Polyline (MinZoom=7, Color=lime, Width=7:1;17:10) | EliminateSeams | ||
| RelationZug1 | type=route route=train |
Polyline (MinZoom=7, Color=green, Width=7:1;17:10) | EliminateSeams | ||
| RelationZug2 | type=route line=rail |
Polyline (MinZoom=7, Color=green, Width=7:1;17:10) | EliminateSeams |