// Maperitive rendering ruleset for hiking maps. The map style resembles // that of paper hiking maps produced by Alpine Association of Slovenia (http://www.pzs.si/). // http://maperitive.net // Created by Igor Brejc, adapted for orienteering by Jens Kastensson // Released under the Creative Commons Attribution-ShareAlike 3.0 License (http://creativecommons.org/licenses/by-sa/3.0/) // History: // -------- // 2011-11-26: Updated by Igor Brejc // - made a finer distinction between major and minor contour lines (now that Maperitive supports subpixel accuracy) // 2011-09-20: Updated by Igor Brejc // - turned off forest texture // - moved alpine hut in front of peaks // - added rendering of living_street, highway=construction and (railway|public_transport)=platform // - added special rendering for tunnels features shelter : amenity=shelter place : node[place OR landuse=farmyard] area[place OR landuse=farmyard] power tower : @isOneOf(power, tower, station, sub_station) points, areas tree : natural=tree memorial : historic=memorial points peak : natural=peak lines line barrier : barrier=wall OR barrier=fence OR barrier=hedge OR amenity=school highway cycleway : highway=cycleway highway service : highway=service highway pedestrian : highway=pedestrian highway steps : highway=steps aerialway : aerialway contour major : contour[@isMulti(elevation, 50)] contour minor : contour[@isMulti(elevation, 5) and not @isMulti(elevation, 50)] hiking route : relation[type=route route=foot] way[trailblazed=yes] foot path major : (highway=footway OR highway=path) AND (NOT trail_visibility OR @isOneOf(trail_visibility, excellent, good)) foot path minor : (highway=footway OR highway=path) AND (trail_visibility AND NOT @isOneOf(trail_visibility, excellent, good)) road major : highway=motorway OR highway=trunk OR highway=primary OR highway=secondary OR highway=tertiary OR highway=secondary_link road minor : highway=residential OR highway=unclassified OR highway=living_street track major : (highway=track AND (tracktype=grade1 OR tracktype=grade2 OR NOT tracktype)) track minor : (highway=track AND (tracktype=grade3 OR tracktype=grade4 OR tracktype=grade5)) railway : railway=rail power linepower line : @isOneOf(power, line, minor_line) river : waterway=river stream : waterway=stream canal : waterway=canal drain : waterway=drain OR waterway=ditch areas leisure golf : leisure=golf_course leisure pitch : leisure=pitch village green : landuse=village_green grass : landuse=grass fell : natural=fell meadow : natural=meadow OR landuse=meadow OR landuse=vineyard church : amenity=place_of_worship AND (religion=christian OR religion=Christian) building : building=yes OR building=dormitory OR building=church OR building=office OR building=apartments OR building=hotel OR building=house OR building=residential OR building=terrace OR building=commercial OR building=industrial OR building=retail OR building=warehouse OR building=cathedral OR building=chapel OR building=school OR building=hospital OR building=transportation OR building=university residential : landuse=residential forest : landuse=forest OR natural=wood OR leisure=park OR woodland=virgin water : natural=water OR waterway=riverbank OR landuse=reservoir OR landuse=basin nature reserve : boundary=national_park OR boundary=protected_area OR leisure=nature_reserve military : landuse=military OR military=danger_area highway pedestrian : highway=pedestrian car park: amenity=parking properties //Forest map, uncomment these: //map-background-color : white //Urban map, uncomment these map-background-color : #FAEDDE curved : true text-halo-width : 30% text-halo-opacity : 0.75 rules target : highway steps define shape : custom shape-def : -1,1, -1,-1, 1,-1, 1,1;Z shape-spacing : 1 shape-size : 1.5 shape-aspect : 3 fill-color : #000000 line-style : none draw : shape target : road * if : road major define line-color : #F1CDAB line-width : 6 border-style : solid border-color : #B1B1B1 black 20% border-width : 15% else define line-color : #F1CDAB //Genova line-width : 5 //other //line-width : 3 border-style : solid border-color : #B1B1B1 black 20% border-width : 15% for : tunnel=yes define border-style : dot for : bridge=yes define border-color : #000 draw : line target : highway pedestrian for : not area define line-color : #F1CDAB //Genova line-width : 4 // other: //line-width : 2.5 border-style : solid border-color : #B1B1B1 black 20% border-width : 15% for : tunnel=yes define //border-style : dot for : bridge=yes define border-color : #000 draw : line target : building define fill-color : #9D9D9D line-style : solid line-width : 1 line-color : #B1B1B1 black 50% curved : false draw : fill draw : line target: tree define icon-image : http://svn.openstreetmap.org/applications/rendering/mapnik/symbols/tree2.png icon-width : 6 draw : icon target: alpine hut define icon-image : icons/SJJB/png/accommodation_alpinehut.glow.32.png icon-width : 11:16;14:34 draw : icon target : peak define fill-color : black line-style : none shape : circle shape-size : 11:3;15:8 draw : shape target: shelter define icon-image : icons/SJJB/png/accommodation_shelter2.n.32.png icon-width : 14:16;15:24 draw : icon target: memorial define icon-image : icons/SJJB/png/tourist_memorial.p.32.png icon-width : 16 draw : icon target: church define icon-image : icons/SJJB/png/place_of_worship_christian3.glow.32.png icon-width : 14:10;20:20 draw : icon target : power tower define shape : square shape-size : 16:7;20:12 fill-color : black line-style : none draw : shape // lines target : line barrier define curved : false line-style : solid line-color : black line-width : 1.5 for:barrier=fence define line-width : 2 for:barrier=hedge define line-color : green line-width : 2 draw : line target : power line define curved : false line-width : 1 draw : line target: hiking route* define line-color : white line-opacity : 0.8 line-offset : 14:0;15:3;16:5 line-offset-sides : left for : network=nwn define line-width : 10:1;11:2;15:7 else define line-width : 11:1;14:2;15:4 draw : line target: hiking path define line-color : white line-opacity : 0.8 line-width : 11:1;14:2;15:4 line-offset : 14:0;15:3;16:5 line-offset-sides : left line-style : dash draw : line target : railway define line-width : 3 draw : line target : highway cycleway define line-color : #F1CDAB line-width : 3 border-style : solid border-color : #B1B1B1 black 20% border-width : 15% for : tunnel=yes define border-style : dot for : bridge=yes define border-color : #000 draw : line target : highway service define line-color : #F1CDAB line-width : 4 border-style : solid border-color : #B1B1B1 black 20% border-width : 15% for : tunnel=yes define border-style : dot for : bridge=yes define border-color : #000 draw : line target : track major define line-color : black line-style : dash border-style : none line-width : 2.5 for : tunnel=yes define border-style : dot for : bridge=yes define border-color : #000 draw : line target : track minor define line-color : black line-style : dash border-style : none line-width : 2 draw : line target : foot path* define line-color : black line-style : dash border-style : none if : *major define line-width : 1.5 else define line-width : 1 draw : line target : river define line-color : #289EE0 line-width : 5 draw : line target : stream define line-color : #289EE0 line-width : 2 draw : line target : canal define line-color : #289EE0 line-width : 2 draw : line target : drain define line-color : #289EE0 line-width : 2 draw : line // areas target: memorial define fill-color : #ffffff black 60% line-style : none draw : fill target : nature_reserve define line-color : #8DC56C black 20% line-opacity : 1 line-width : 3 line-style : dash font-size : 3:3;12:12 text-color : green font-weight : normal text : @up(name) draw : line target : military define fill-color : white fill-hatch : swne fill-hatch-color : white fill-hatch-opacity : 0 line-style : none draw : fill target : residential define fill-color : #FAEDDE line-style : none draw : fill target : car park define fill-color : #EFD6BF line-style : none draw : fill target : highway pedestrian define fill-color : #EFD6BF line-style : none draw : fill target : leisure pitch define fill-color : #EFD6BF line-style : solid line-width : 1 draw : fill target : village green define fill-color : #FAB837 line-style : none fill-opacity : 1 draw : fill target : forest define fill-color : white line-style : none draw : fill target : leisure golf define fill-color : #FAB837 line-style : none draw : fill target : grass define fill-color : #FAB837 line-style : none draw : fill target : fell define fill-color : #C5FF5B black 10% line-style : none draw : fill target : meadow define fill-color : #FAB837 white 50% line-style : none draw : fill target: contour* define line-color : #CE6611 curved : true if : *major define line-width : 1.6 else define line-width : 1 draw : contour