Valencia Rendering Rules

This page describes a historic artifact in the history of OpenStreetMap. It does not reflect the current situation, but instead documents the historical concepts, issues, or ideas.

These rules have been used to render the map hosted at: http://robotica.uv.es/~jjordan/callejero

This map demonstrates the customization of OSM by means of Kosmos. Different widths have been chosen for each highway category, increasing from pedestrian to motorway, while the range of colors of OSM has been limited to white, yellow and blue. Icons for subway stations have been provided.

Rendering Rules

Rule Name Targets Selector Template Options Comment
Woodnatural=woodPolygon (Color=#99DB9C)
Fellnatural=fellPolygon (Color=#CDDB69)
Farmlanduse=farmPolygon (Color=#EFDD8B)
Residentiallanduse=residentialPolygon (Color=#DCDCDC)
Industriallanduse=industrialPolygon (Color=#FEADB8)
Commerciallanduse=commercialPolygon (Color=#EFC8C8)
Retaillanduse=retailPolygon (Color=#F0DADA)
Reservoirlanduse=reservoirPolygon (Color=#B5D0D0)
Forestlanduse=forestPolygon (Color=#CFECA8)
Cemeterylanduse=cemeteryPolygon (Color=#A9CAAE, BackgroundColor=#75AC7D, HatchStyle=DashedVertical)
Allotmentslanduse=allotmentsPolygon (Color=#C8B084)
Schoolamenity=schoolPolygon (Color=#F0F0D8)
SchoolTextamenity=schoolText (MinZoom=15, Color=black, TagToUse=name, FontName=Times New Roman, FontStyle=bold, FontSize=15:6;17:10, TextMode=AreaCenter)
ParkingAreaamenity=parkingPolygon (Color=#F6EEB7)
Skiingsport=skiingPolygon (Color=#CDDB69)
Parkleisure=parkPolygon (Color=#C7F1A3)
Pitchleisure=pitchPolygon (Color=#8AD2AE)
GolfCourseleisure=golf_coursePolygon (Color=#7CCC7C)
Commonleisure=commonPolygon (Color=#CFECA8)
BuildingResidentialbuilding=residentialPolygon (MinZoom=12, Color=#F3D6B6, BorderColor=#6B5B8E, BorderWidth=1)
Runwayaeroway=runwayPolyline (MinZoom=11, Color=#BBBBCC, Width=11:1;17:30)
Taxiwayaeroway=taxiwayPolyline (MinZoom=12, Color=#BBBBCC, Width=12:1;17:10)
ContoursMajorIsTaggedWith(e,"ele") AND ValueNum(e,"ele") % 100 = 0Polyline (MinZoom=11, Color=#B0AD8852, Width=11:1;12:2, Curved=true)for elevation contours generated by Srtm2Osm
ContoursMinorIsTaggedWith(e,"ele") AND ValueNum(e,"ele") % 100 <> 0Polyline (MinZoom=12, Color=#B0AD8852, Width=1, Curved=true)for elevation contours generated by Srtm2Osm
Waternatural=waterPolygon (Color=lightblue)
Riverwaterway=riverPolyline (MinZoom=5, Color=lightblue, Width=5:1;17:6, Curved=true)
Drainwaterway=drainPolyline (MinZoom=5, Color=lightblue, Width=13:1;17:6, Curved=true)
Landnatural=landPolygon (Color=white)
HighwayFootwayhighway=footwayPolyline (MinZoom=13, Color=#FFDE93, BorderColor=gray, Width=13:1;17:6)EliminateSeams
HighwayFootwayTexthighway=footwayText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayCiclewayhighway=cyclewayPolyline (MinZoom=13, Color=#0202FE, DashStyle=Dash, Width=13:1;17:4)EliminateSeams
HighwayUnclassifiedhighway=unclassifiedPolyline (MinZoom=11, Color=white, BorderColor=gray, Width=11:1;13:3;17:14)EliminateSeams
HighwayUnclassifiedTexthighway=unclassifiedText (MinZoom=16, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayPedestrianhighway=pedestrianPolyline (MinZoom=13, Color=lightgray, BorderColor=gray, Width=14:3;17:10)EliminateSeams
HighwayPedestrianTexthighway=pedestrianText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayResidentialIsTaggedWith(e,"highway") AND (ValueString(e,"highway") = "residential") AND NOT IsTaggedWith(e,"junction")Polyline (MinZoom=11, Color=white, BorderColor=gray, Width=11:1;13:3;17:14)EliminateSeams
HighwayResidentialTexthighway=residentialText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayResidentialRoundabouthighway=residential junction=roundaboutPolyline (MinZoom=11, Color=white, BorderColor=gray, Width=11:1;13:3;17:14, Curved=true)EliminateSeams
HighwayTrackhighway=trackPolyline (MinZoom=11, Color=#E2E2E2, BorderColor=gray, Width=11:1;17:10)EliminateSeams
HighwayTertiaryIsTaggedWith(e,"highway") AND (ValueString(e,"highway") = "tertiary") AND NOT IsTaggedWith(e,"junction")Polyline (MinZoom=10, Color=white, BorderColor=gray, Width=10:1;14:9;17:18)EliminateSeams
HighwayTertiaryTexthighway=tertiaryText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayTertiaryRoundabouthighway=tertiary junction=roundaboutPolyline (MinZoom=10, Color=white, BorderColor=gray, Width=10:1;14:9;17:18, Curved=true)EliminateSeams
HighwaySecondaryIsTaggedWith(e,"highway") AND (ValueString(e,"highway") = "secondary") AND NOT IsTaggedWith(e,"junction")Polyline (MinZoom=8, Color=white, BorderColor=gray, Width=8:1;10:2;14:11;17:22)EliminateSeams
HighwaySecondaryTexthighway=secondaryText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwaySecondaryRoundabouthighway=secondary junction=roundaboutPolyline (MinZoom=8, Color=white, BorderColor=gray, Width=8:1;10:2;14:11;17:22, Curved=true)EliminateSeams
HighwayPrimaryIsTaggedWith(e,"highway") AND (ValueString(e,"highway") = "primary") AND NOT IsTaggedWith(e,"junction")Polyline (MinZoom=6, Color=#feffaa, BorderColor=gray, Width=6:0;11:3;14:13;17:26)EliminateSeams
HighwayPrimaryTexthighway=primaryText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
HighwayPrimaryLinkhighway=primary_linkPolyline (MinZoom=6, Color=#feffaa, BorderColor=gray, Width=6:1;14:7;17:14)EliminateSeams
HighwayPrimaryRoundabouthighway=primary junction=roundaboutPolyline (MinZoom=6, Color=#feffaa, BorderColor=gray, Width=6:0;11:3;14:13;17:26, Curved=true)EliminateSeams
HighwayTrunkhighway=trunkPolyline (MinZoom=6, Color=#feffaa, BorderColor=gray, Width=6:1;14:15;17:30)EliminateSeams
HighwayTrunkLinkhighway=trunk_linkPolyline (MinZoom=6, Color=#feffaa, BorderColor=gray, Width=6:1;14:7;17:14)EliminateSeams
HighwayMotorwayhighway=motorwayPolyline (MinZoom=6, Color=#809BC0, BorderColor=gray, Width=6:1;14:12;17:26)EliminateSeams
HighwayMotorwayLinkhighway=motorway_linkPolyline (MinZoom=6, Color=#809BC0, BorderColor=gray, Width=6:1;14:7;17:14)EliminateSeams
Railrailway=railPolyline (MinZoom=6, Color=white, DashStyle=Dot, BorderColor=gray, Width=6:1;17:6)EliminateSeams
CableCaraerialway=cable_carSymbol (MinZoom=12, Type=Circle, Density=30, Color=#00000000, BorderWidth=10%, BorderColor=black, Size=12:2;17:10)
DragLiftaerialway=drag_liftPolyline (MinZoom=12, Color=black, Width=12:0.5;17:2, LineStartCap=RoundAnchor, LineEndCap=RoundAnchor)
ChairLiftaerialway=chair_liftPolyline (MinZoom=12, Color=black, Width=12:0.5;17:2, LineStartCap=RoundAnchor, LineEndCap=RoundAnchor)
Ferryroute=ferryPolyline (MinZoom=8, Color=darkgray, DashStyle=Dot, Width=8:0.1;17:4)
Borderboundary=administrativePolyline (MinZoom=1, Color=black, DashStyle=DashDot, Width=1:1;9:1.5;17:6)Temporary, there are conflicting ways of tagging borders
ParkingNodeamenity=parkingIcon (MinZoom=15, IconUrl=http://wiki.openstreetmap.org/images/7/74/Parking.png, Width=12:5;17:20)
TrafficSignalshighway=traffic_signalsIcon (MinZoom=16, IconUrl=http://wiki.openstreetmap.org/images/a/a1/Icon-highway_traffic_signals.png, Width=16:6;17:7)
RailwayStationrailway=stationIcon (MinZoom=14, IconUrl=http://wiki.openstreetmap.org/images/f/fd/Boca_metro_valencia.png, Width=14:20;17:20)
RailwayStationTextrailway=stationText (MinZoom=15, Color=black, TagToUse=name, FontName=Arial, FontStyle=regular, FontSize=15:6;17:9)
Peaknatural=peakSymbol (Type=Triangle, MinZoom=11, Color=gray, BorderColor=black, BorderWidth=15%, Size=13:6;17:20)
PlaceCityplace=cityText (MinZoom=7, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=7:10;17:30)
PlaceTownplace=townText (MinZoom=10, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=10:10;17:25)
PlaceSuburbplace=suburbText (MinZoom=13, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=13:10;17:20)
PlaceVillageplace=villageText (MinZoom=12, Color=black, TagToUse=name, FontName=Trebuchet MS, FontStyle=bold, FontSize=12:10;17:20)
This article is issued from Openstreetmap. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.