User:Ajoessen/Kosmos-Bahn Rules

From OpenStreetMap Wiki
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 way railway=rail Polyline (Color=gray, Width=12:0;14:2) EliminateSeams
Light-Rail way railway=light_rail Polyline (Color=green, Width=12:0;14:2) EliminateSeams
Tram way railway=tram Polyline (MinZoom=6, Color=blue, Width=6:1;17:2) EliminateSeams
Subway way railway=subway Polyline (MinZoom=6, Color=blue, Width=6:1;17:2) EliminateSeams
RailDisused way railway=disused Polyline (Color=silver, Width=12:0;14:2) EliminateSeams

Bahnhof

Rule Name Targets Selector Template Coment
Bahnhof node railway=station Symbol (Type=Square, MinZoom=10, Color=red, BorderColor=black, BorderWidth=15%, Size=10:6;17:12)
.BfName node name=* Text (MinZoom=12, Color=black, OutlineColor=white, TagToUse=name, TextLineOffset=50%, FontName=Arial, FontStyle=regular, FontSize=12:10;16:12)
Halt node railway=halt Symbol (Type=Circle, MinZoom=10, Color=red, BorderColor=black, BorderWidth=15%, Size=10:6;17:10)
.HpName node name=* Text (MinZoom=13, Color=black, OutlineColor=white, TagToUse=name, TextLineOffset=50%, FontName=Arial, FontStyle=regular, FontSize=13:10;16:12)
TramStop node railway=tram_stop Symbol (Type=Circle, MinZoom=12, Color=yellow, BorderColor=black, BorderWidth=15%, Size=12:6;17:10)
.TramstopName node name=* Text (MinZoom=13, Color=black, OutlineColor=white, TagToUse=name, TextLineOffset=50%, FontName=Arial, FontStyle=regular, FontSize=14:8;16:12)
BusHalt1 node highway=bus_stop Icon( MinZoom=13, IconUrl=http://localhost/kosmos/POI/bus_stop.png, Width=23:10 )
.Hp1Name node name=* Text (MinZoom=14, Color=black, OutlineColor=white, TagToUse=name, TextLineOffset=50%, FontName=Arial, FontStyle=regular, FontSize=14:8;16:12)
BusHalt2 node public_transport=stop_position Icon( MinZoom=13, IconUrl=http://localhost/kosmos/POI/bus_stop.png, Width=23:10 )
.Hp2Name node 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 relation type=route route=bus Polyline (MinZoom=11, Color=red, Width=10:1;17:8) EliminateSeams
RelationBus2 relation type=route line=bus Polyline (MinZoom=11, Color=red, Width=10:1;17:8) EliminateSeams
RelationStrab1 relation type=route route=tram Polyline (MinZoom=10, Color=blue, Width=10:4;17:8) EliminateSeams
RelationStrab2 relation type=route line=tram Polyline (MinZoom=10, Color=blue, Width=10:4;17:8) EliminateSeams
RelationSubway1 relation type=route route=subway Polyline (MinZoom=10, Color=navy, Width=10:4;17:10) EliminateSeams
RelationSubway2 relation type=route line=subway Polyline (MinZoom=10, Color=navy, Width=10:4;17:10) EliminateSeams
RelationS-Bahn1 relation type=route route=light_rail Polyline (MinZoom=7, Color=lime, Width=7:1;17:10) EliminateSeams
RelationS-Bahn2 relation type=route line=light_rail Polyline (MinZoom=7, Color=lime, Width=7:1;17:10) EliminateSeams
RelationZug1 relation type=route route=train Polyline (MinZoom=7, Color=green, Width=7:1;17:10) EliminateSeams
RelationZug2 relation type=route line=rail Polyline (MinZoom=7, Color=green, Width=7:1;17:10) EliminateSeams