User:Ajoessen/Kosmos-Bahn Rules

From OpenStreetMap Wiki
Jump to: navigation, 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