// Default rendering rules for Maperitive resembling that of OSM Mapnik // http://maperitive.net // Created by Igor Brejc // Released under the Creative Commons Attribution-ShareAlike 3.0 License (http://creativecommons.org/licenses/by-sa/3.0/) // History: // -------- // 2011-07-26: Updated by Michael // - added icons for parks, parking, restaurants and railway // - added names for parks, restaurants // - added rendering of living_street, highway=construction and (railway|public_transport)=platform // - added special rendering for tunnels // 2012-06-08 // Renommé APiCy 10, pour essayer de garder les éléments par défaut, et ajouter les informations vélo/piétons // Les ajouts pour APiCy sont normalement indiqués dans les commentaires. Les éléments enlevé pour l'affichage // ont été conservés, mais simplement mis en commentaire // Dans la définition des routes, des critères supplémentaires ont été ajoutés pour ne pas faire apparaitre les // infrastructures du CERN qui ont été tagguées comme route // 2012-06-22 Renomé APiCy11, simplifié le rendu des routes et autoroutes, pour plus de clarté // 2013-01-12 Supprimé l'affichage du nom des restaurants et des banques, et mis celui des rivières // 2013-12 Grosse mise à jour: harmonisation des couleurs des cours d'eau, changement de la police de caractère pour plus de // lisibilité, rendu des batiments plus clair, vérifications sur l'affichage des textes, etc... // Petite modification en 2015 pour faire apparaitre les barrrières (gates), un affichage des chemins sous les routes et ne pas tracer les chemins privés (déja // représentés comme «private». features points, areas parking : amenity=parking postbox : amenity=post_box postoffice : amenity=post_office telephone : amenity=telephone fire station : amenity=fire_station police station : amenity=police recycling : amenity=recycling church : amenity=place_of_worship AND religion=christian drinking water : amenity=drinking_water bank : amenity=bank atm : amenity=atm toilets : amenity=toilets library : amenity=library tree : natural=tree // school : amenity=school bus stop : highway=bus_stop railway station : railway=station mini roundabout : highway=mini_roundabout gate : barrier=gate tourism viewpoint : tourism=viewpoint tourism hotel : tourism=hotel tourism museum : tourism=museum amenity pub : amenity=pub amenity fast_food : amenity=fast_food // Ajouts APiCy drinking water : amenity=drinking_water //---------------------Parking vélo non couvert ou indéfini pkv : amenity=bicycle_parking AND NOT covered=yes //========================================Parking vélo couvert abri : amenity=bicycle_parking AND covered=yes veloloc : amenity=bicycle_rental velociste : shop=bicycle church : amenity=place_of_worship AND religion=christian pompe : service:bicycle:pump banc : amenity=bench golf : sport=golf // Fin ajouts APiCy // These are not shown on Mapnik puffin : crossing_ref=puffin memorial : historic=memorial areas beach : natural=beach building : building=yes OR building=hall OR building=church water : natural=water OR natural=wetland OR waterway=riverbank OR waterway=stream OR landuse=reservoir OR landuse=basin village green : landuse=village_green forest : landuse=forest OR natural=wood farm : landuse=farm grass : landuse=grass fell : natural=fell glacier : natural=glacier national park : boundary=national_park allotments : landuse=allotments academic : node[@isOneOf(amenity, university, college, school)] area[@isOneOf(amenity, university, college, school)] meadow : natural=meadow OR landuse=meadow nature reserve : leisure=nature_reserve playground : leisure=playground car park: amenity=parking track : leisure=track graveyard : amenity=grave_yard OR landuse=cemetery military : landuse=military OR military=barracks park : leisure=park leisure garden : leisure=garden leisure pitch : leisure=pitch leisure stadium : leisure=stadium landuse retail : landuse=retail landuse industrial : landuse=industrial commercial area : landuse=commercial residential area : landuse=residential aeroway apron : aeroway=apron aeroway terminal : aeroway=terminal golfcourse : leisure=pitch OR leisure=golf_course lines oneway : oneway=yes OR oneway=true OR oneway=-1 coastline : natural=coastline river : waterway=river stream : waterway=stream canal : waterway=canal drain : waterway=drain water line : waterway=stream railway rail : @isOneOf(railway, rail, disused) AND @isFalse(noexit) platform : railway=platform OR public_transport=platform line barrier : barrier=wall OR barrier=fence trunk : @isOneOf(highway, trunk, trunk_link) motorway : highway=motorway motorway link : highway=motorway_link highway major : @isOneOf(highway, trunk, trunk_link, primary, primary_link) highway moyen : @isOneOf(highway, secondary, secondary_link) highway minor : (@isOneOf(highway, unclassified, residential, service, tertiary, tertiary_link)) AND NOT (name="Large Hadron Collider" OR name="Super Proton Synchrotron" OR name="Proton Synchrotron") highway private : access=private AND highway highway steps : highway=steps bridge foot : bridge=yes AND (foot=yes OR highway=footway) historic citywalls : historic=citywalls OR historic=city_wall aeroway runway : aeroway=runway aeroway taxiway : aeroway=taxiway // boundary country : boundary=administrative AND (admin_level=2 OR admin_level=4) AND NOT natural=coastline // boundary province : boundary=administrative AND admin_level=6 // boundary municipal : boundary=administrative AND admin_level=8 contour major : contour[@isMulti(elevation, 50)] contour minor : contour[@isMulti(elevation, 10) and not @isMulti(elevation, 50)] gps tracks : gpstrack[] gps routes : gpsroute[] // Routes // route ncn : relation[type=route AND route=bicycle AND network=ncn] route byway : relation[type=route AND route=bicycle AND network="National Byway"] route foot : relation[type=route AND route=foot] //************************************************************************************ //======================Début ajouts APiCy============================================ //************************************************************************************ //----------------- Accès interdit aux vélos velonon : bicycle=no AND NOT (name="Large Hadron Collider" OR name="Super Proton Synchrotron" OR name="Proton Synchrotron") //------------------------Piste ou large sentier ouvert aux vélos entre autre // path : @isOneOf(highway, path, footway) OR (highway=track AND @isOneOf(tracktype, grade4, grade5)) path : @isOneOf(highway, path, track) AND NOT (name="Large Hadron Collider" OR name="Super Proton Synchrotron" OR name="Proton Synchrotron") AND NOT (access=private) //------------------------Chemin piéton // chpiet : (@isOneOf(highway, path, footway) OR (highway=track AND @isOneOf(tracktype, grade4, grade5))) AND motor_vehicle=no AND NOT bicycle=yes chpiet : ((highway=path AND motor_vehicle=no AND NOT bicycle=yes) OR highway=footway) AND NOT (access=private) //------------------------Chemin vélo // chvelo : (@isOneOf(highway, path, footway, service) OR (highway=track AND @isOneOf(tracktype, grade4, grade5))) AND (motor_vehicle=no OR motor_vehicle=destination) AND bicycle=yes // voieverte : highway=path and motor_vehicle=no and not bicycle=no voieapaisee : highway=living_street OR (@isOneOf(highway, secondary, secondary_link, unclassified, residential, service, tertiary, tertiary_link) AND @isOneOf(maxspeed, 30, 25, 20, 15, 10, 5)) //========================================================================================= pietonne : highway=pedestrian //================= Sens unique non-DSC su : (oneway=yes OR oneway=true) AND NOT (cycleway=opposite or cycleway=opposite_lane or highway=cycleway or cycleway=opposite_track) //================= Bande Cyclable Sens unique bcsu : (cycleway=lane OR cycleway:right=lane) AND (oneway=yes OR oneway=true OR oneway=-1) //================= Bande Cyclable double sens côté droit bcdscd : (cycleway:right=lane) AND NOT (oneway=yes OR oneway=true OR oneway=-1) //================= Bande Cyclable double sens côté gauche bcdscg : (cycleway:left=lane) AND NOT (oneway=yes OR oneway=true OR oneway=-1) //================= Bande Cyclable double sens bcds : (cycleway=lane) AND NOT (oneway=yes OR oneway=true OR oneway=-1) //================= Piste Cyclable ou route interdite à la circulation des véhicules motorisés pc : (highway=cycleway AND NOT (oneway=yes OR oneway=true OR oneway=-1)) OR (@isOneOf(highway, secondary, secondary_link, unclassified, residential, service, tertiary, tertiary_link) AND (motor_vehicle=no OR motor_vehicle=destination)) OR (highway=path and motor_vehicle=no and not bicycle=no) //================= Piste Cyclable Sens unique pcsu : highway=cycleway AND (oneway=yes OR oneway=true OR oneway=-1) //================= Bus + Vélo droite bvd : cycleway:right=share_busway //================= Bus + Vélo gauche bvg : cycleway:left=share_busway //================= Bus + Vélo gauche et droit bvgd : cycleway=share_busway AND NOT (oneway=yes OR oneway=true OR oneway=-1) //================= Bus + Vélo droite sens unique (par défaut) bvdsu : cycleway=share_busway AND oneway=yes //================= Double Sens Cyclable dsc : (cycleway=opposite OR cycleway=opposite_lane OR cycleway=opposite_track ) AND (oneway=yes OR oneway=true OR oneway=-1) //================= Métro C / funiculaires metro : railway=subway funic : description=funiculaire tram : railway=tram //************************************************************************************ //======================Fin ajouts APiCy============================================== //************************************************************************************ points place city : place=city place town : place=town place village : place=village place hamlet : place=hamlet place suburb : place=suburb hospital : amenity=hospital diy : shop=doityourself hair dresser : shop=hairdresser supermarket : shop=supermarket convenience : shop=convenience bakery : shop=bakery restaurant : amenity=restaurant cafe : amenity=cafe pharmacy : amenity=pharmacy peak : natural=peak properties map-background-color : #F4F1EA white 15% map-background-opacity : 1 map-sea-color : #99B3CC font-family : Perspective Sans text-max-width : 25 text-align-horizontal : center text-align-vertical : center font-stretch : 1.5 map.rendering.lflp.min-buffer-space : 5 map.rendering.lflp.max-allowed-corner-angle : 40 rules target : playground define fill-color : #CCFEF0 line-style : none draw : fill define line-color : #ADCCB5 line-width : 1 draw : line // define // min-zoom : 17 // draw : text target : $featuretype(area) define line-style : none line-width : 1 if : forest define min-zoom : 9 fill-color : #8DC56C elseif : beach define min-zoom : 10 fill-color : #FEFEC0 elseif : farm define min-zoom : 9 fill-color : #E9D8BD elseif : fell define fill-color : #C5FF5B black 10% elseif : water define fill-color : #7cb1d5 elseif : residential area define fill-color : #DCDCDC elseif : grass define fill-color : #CFECA8 elseif : allotments define fill-color : #C8B084 elseif : meadow define fill-color : #CFECA8 elseif : nature reserve define fill-color : #ABDE96 elseif : car park define fill-color : #F6EEB7 elseif : park define fill-color : #C0F6B0 elseif : leisure garden define fill-color : #CFECA8 elseif : graveyard define fill-color : #A9CAAE elseif : building define line-style : solid line-width : 1.5 line-color : #F4F1EA min-zoom : 11 fill-color : #DDDAD5 white 20% elseif : golfcourse define fill-color : #89D2AE elseif : leisure stadium define fill-color : #33CC99 elseif : track define fill-color : #74DCBA elseif : village green define fill-color : #CFECA8 elseif : landuse retail define fill-color : #F0D9D9 line-color : #F4A19E draw : line elseif : landuse industrial define fill-color : #DFD1D6 elseif : commercial area define fill-color : #EFC8C8 elseif : military define fill-color : #FE9898 elseif : aeroway* define fill-color : #E9D1FE elseif : glacier define fill-color : #DDECEC line-style : dash line-color : #DDECEC black 10% else stop draw : fill // define // min-zoom : 17 // draw : text // aeroway taxiway : aeroway=taxiway // aeroway apron : aeroway=apron // aeroway terminal : aeroway=terminal target : aeroway runway define min-zoom : 11 line-color : #BBBBCC line-width : 11:2;15:20 draw : line target : aeroway taxiway define min-zoom : 11 line-color : #BBBBCC line-width : 11:1;15:6 draw : line target : glacier define min-zoom : 10 text-color : #A3A3FE draw : text target : academic define fill-color : #F0F0D8 line-style : none draw : fill define line-color : #E5D2CC line-width : 1 draw : line // draw : text //target : boundary* // define // line-color : #9E1A99 // line-opacity : 0.5 // if : boundary country // define // line-width : 6:1;9:3;10:6 // elseif : boundary province // define // min-zoom : 4 // line-width : 4:1;11:3 // line-style : dash // elseif : boundary municipal // define // min-zoom : 12 // line-width : 12:1;14:2 // line-style : dash // draw : line target : national park define fill-color : #8DC56C fill-opacity : 0.2 line-style : none draw : fill define line-color : #8DC56C black 20% line-opacity : 0.5 line-width : 3 line-style : dash font-size : 3:3;12:12 text-color : green font-weight : normal draw : line draw : text target : peak define shape : triangle shape-size : 12 fill-color : #D08F55 line-style : none min-zoom : 11 draw : shape define text : @if(name, name @if(ele, "\n(" ele ")"), ele) text-halo-width : 25% text-color : #ae4242 min-zoom : 13 font-size : 10 text-max-width : 10 text-offset-vertical : 100% text-align-vertical : near draw : text target : $featuretype(point) define text-halo-width : 25% if : place* define if : *city define font-size : 11:15;14:15 min-zoom : 6 max-zoom : 16 font-stretch : 0.95 elseif : *town define font-size : 11:15;20:15 min-zoom : 8 max-zoom : 16 font-stretch : 0.95 elseif : *village define font-size : 12:10;20:20 min-zoom : 11 font-stretch : 0.95 elseif : *hamlet define font-size : 14:8;20:16 min-zoom : 14 font-stretch : 0.95 elseif : *suburb define font-size : 13:10;20:20 min-zoom : 11 text-color : white black 50% font-stretch : 0.95 draw : text //************************************************************************************ //=====================================Début ajouts APiCy============================= //************************************************************************************ //=================================== Rues Pietonnes ========================== target : pietonne define min-zoom : 15 border-style : none line-color : #FFC119 line-width : 1 draw : line define min-zoom : 15 line-color : #FFFFFF line-width : 13:1.5;14:2.5;15:5;16:6 border-style : solid border-color : #0011FF white 50% border-width : 3 line-offset-sides : left draw : line define min-zoom : 15 font-size : 13:10 font-stretch : 0.85 text-halo-width : 0 draw : text //---------------------------------------- Bande Cyclable ---------------------------- //----------------- Bande Cyclable Sens unique target : bcsu define min-zoom : 13 shape : custom shape-def : 110,-40,20,-80,20,-55,-100,-55,-100,-25,20,-25,20,0;Z shape-size : 13:2;18:22 shape-aspect : 2 shape-spacing : 0.2 //fill-color : #32CD32 fill-color : #e825cf line-style : none draw : shape //----------------- Bande Cyclable double sens côté droit target : bcdscd define min-zoom : 13 shape : custom shape-def : 110,-40,20,-80,20,-55,-100,-55,-100,-25,20,-25,20,0;Z shape-size : 13:2;18:22 shape-aspect : 2 shape-spacing : 0.2 //fill-color : #32CD32 fill-color : #e825cf line-style : none draw : shape //----------------- Bande Cyclable double sens côté gauche target : bcdscg define min-zoom : 13 shape : custom shape-def : 110,-40,20,-80,20,-55,-100,-55,-100,-25,20,-25,20,0;Z shape-size : 13:2;18:22 shape-aspect : 2 shape-spacing : 0.2 //fill-color : #32CD32 fill-color : #e825cf line-style : none angle : 180 draw : shape //----------------- Bande Cyclable double sens target : bcds define min-zoom : 13 shape : custom shape-def : -30,30,-30,60,30,60,30,30;z;m:-30,-30;30,-30,30,-60,-30,-60;z shape-size : 13:2;18:22 shape-aspect : 1 shape-spacing : 0.1 //fill-color : #32CD32 fill-color : #e825cf line-style : none angle : 180 draw : shape ///-------------------------- Piste Cyclable bi-directionnelle et uni-d.--------------------------- //----------------- Piste Cyclable target : pc define min-zoom : 13 //line-color : #32CD32 line-color : #e825cf line-width : 13:3;18:7 line-style : solid draw : line // define // min-zoom : 13 // max-zoom : 20 // font-size : 13:10 // font-stretch : 0.85 // draw : text //---------------- Voie apaisée (limitation à 20 ou 30 km/h) ----------------------- target : voieapaisee define min-zoom : 13 line-color : #046380 line-width : 13:2;18:5 line-style : solid draw : line //----------------- Piste Cyclable Sens unique target : pcsu define min-zoom : 13 //line-color : #32CD32 line-color : #e825cf line-width : 13:3;18:7 line-style : solid draw : line define min-zoom : 13 shape : custom shape-def : 80,0,-30,-70,-30,70;Z shape-size : 14 shape-aspect : 1 shape-spacing : 3 fill-color : #FFFFFF line-style : solid line-color : #000000 white 50% line-width : 1 for : oneway=-1 define angle : 180 draw : shape ///========== Bus + vélo D. et G. ====== ///----------------- Bus + Vélo droite sens unique (par défaut) target : bvdsu define min-zoom : 13 shape : custom shape-def : 110,-40,20,-80,20,-55,-100,-55,-100,-25,20,-25,20,0;Z shape-size : 12:6;18:22 shape-aspect : 2 shape-spacing : 0.2 fill-color : #FF0000 white 30% line-style : none draw : shape ///----------------- Bus + Vélo droite target : bvd define min-zoom : 13 shape : custom shape-def : 110,-40,20,-80,20,-55,-100,-55,-100,-25,20,-25,20,0;Z shape-size : 13:2;18:22 shape-aspect : 2 shape-spacing : 0.2 fill-color : blue white 25% line-style : none draw : shape ///----------------- Bus + Vélo gauche target : bvg define min-zoom : 13 shape : custom shape-def : 110,-40,20,-80,20,-55,-100,-55,-100,-25,20,-25,20,0;Z shape-size : 13:2;18:22 shape-aspect : 2 shape-spacing : 0.2 fill-color : blue white 25% line-style : none angle : 180 draw : shape ///----------------- Bus + Vélo gauche et droit target : bvgd define min-zoom : 13 shape : custom shape-def : 110,-40,20,-80,20,-55,-150,-55,-150,-25,20,-25,20,0;Z shape-size : 13:2;18:22 shape-aspect : 2 shape-spacing : 0.2 fill-color : blue white 25% line-style : none draw : shape define min-zoom : 13 shape : custom shape-def : 110,-40,20,-80,20,-55,-150,-55,-150,-25,20,-25,20,0;Z shape-size : 13:2;18:22 shape-aspect : 2 shape-spacing : 0.2 fill-color : blue white 25% line-style : none angle : 180 draw : shape ///========== Double Sens Cyclable ====== target : dsc define min-zoom : 15 shape : custom //shape-def : -230,0,-80,-70,-80,-15,-70,-15,-70,15,-80,15,-80,70;Z shape-def : -250,0,-100,-70,-100,-15,0,-15,0,15,-100,15,-100,70;Z shape-size : 11:3;18:30 shape-aspect : 1 shape-spacing : 2 //fill-color : #00dd00 fill-color : #e825cf line-style : none for : oneway=-1 define angle : 180 draw : shape draw : shape define min-zoom : 15 shape : custom //shape-def : 230,0,80,-70,80,-15,-70,-15,-70,15,80,15,80,70;Z shape-def : 250,0,100,-70,100,-15,0,-15,0,15,100,15,100,70;Z shape-size : 11:3;18:30 shape-aspect : 1 shape-spacing : 2 fill-color : #000000 white 20% line-style : none for : oneway=-1 define angle : 180 draw : shape ///====== Sens Unique non-Double Sens Cyclable target : su define min-zoom : 15 shape : custom shape-def : 150,0,0,-70,0,-15,-150,-15,-150,15,0,15,0,70;Z shape-size : 11:0;18:17 shape-aspect : 1 shape-spacing : 4 fill-color : #000000 white 20% line-style : none for : oneway=-1 define angle : 180 draw : shape target : velonon define min-zoom : 14 line-color : #FF0000 white 30% line-width : 12:2;18:3 line-style : dash draw : line ///---------------------------------------- chemin velo -------------------------------------------- target : chvelo define min-zoom : 12 //line-color : #32CD32 line-color : #e825cf line-width : 12:3;18:7 draw : line define min-zoom : 12 line-color : blue white 25% line-width : 12:3;18:7 line-style : dot draw : line define min-zoom : 15 max-zoom : 20 font-size : 13:10 font-stretch : 0.85 text-halo-width : 0 text-offset-vertical : 13:-5;18:-11 draw : text target : voieverte define min-zoom : 13 //line-color : #32CD32 line-color : #e825cf line-width : 13:3;18:7 draw : line define min-zoom : 15 max-zoom : 20 font-size : 13:10 font-stretch : 0.85 text-halo-width : 0 text-offset-vertical : 13:-5;18:-11 draw : text //=========================== Chemin ====================================== //= target : path //= define //= min-zoom : 13 //= max-zoom : 20 //= //line-color : #bfab97 //= line-color : #b76f28 //= line-width : 13:1;14:1;15:3 //= line-style : dash //= draw : line //= define //= min-zoom : 15 //= font-size : 15:10;18:12 //= font-stretch : 0.85 //= text-halo-width : 0 //= text-offset-vertical : 13:-5;18:-11 //= draw : text ///---------------------------------------- tramway -------------------------------------------- target : tram define min-zoom : 12 max-zoom : 20 line-color : #FCB23E line-width : 13:1.5;15:2;18:4 border-style : solid border-width : 0.7 border-color : #000000 line-style : dash draw : line // define // min-zoom : 12 // max-zoom : 20 // font-size : 13:6;18:20 // font-stretch : 1 // text-offset-vertical : 13:-5;18:-11 // text-halo-width : 5 // draw : text //************************************************************************************ //===================================Fin ajouts APiCy================================= //************************************************************************************ target : platform define min-zoom : 13 line-color : gray line-width : 3 draw : line target : railway rail define min-zoom : 13 line-color : gray line-width : 2 draw : line define min-zoom : 13 line-style : dashlong line-color : white line-width : 2 border-style : solid border-color : gray border-width : 25% draw : line define min-zoom : 6 max-zoom : 13 line-style : none line-color : white black 30% line-width : 6:1;8:1;12:1.5 draw : line target : highway private define min-zoom : 15 line-width : 4 line-style : dash line-color : #F7D4D4 draw : line //---------------------------------------- Autoroutes -------------------------------------------- target : motorway define line-width : 7:1;13:3;15:4 min-zoom : 7 line-color : #fd923a border-style : solid border-color : #FFC345 black 20% border-width : 50% draw : line //---------------------------------------- Echangeurs d'autoroutes --------------------------- target : motorway link define line-width : 7:1;13:2;15:3 min-zoom : 10 line-color : #ffe068 border-style : solid border-color : #ffe068 black 20% border-width : 50% draw : line target : highway* define font-size : 15:7;18:10 font-weight : bold //---------------------------------------- Voies Rapides ----------------------------------------- target : trunk define min-zoom : 8 line-color : #FBE297 white 40% line-width : 10:1;13:2;14:3;15:4;18:11 border-style : solid border-color : #D19828 white 30% border-width : 1 draw : line define min-zoom : 13 max-zoom : 20 font-size : 13:11;17:12 text-offset-vertical : 13:-12;18:-11 font-stretch : 1 font-weight : bold text-halo-width : 4 draw : text define line-color : #FF0000 white 30% line-width : 13:2;14:2;15:3 line-style : dash draw : line //---------------------------------------- Routes principales ------------------------------------ target : highway major define min-zoom : 8 line-color : #FBE297 white 30% line-width : 10:1;13:2;14:3;15:4;18:11 border-style : solid border-color : #D19828 white 30% border-width : 2 draw : line define min-zoom : 13 max-zoom : 20 font-size : 13:10;17:12 text-offset-vertical : 13:-5;18:-11 font-stretch : 0.95 font-weight : bold text-halo-width : 2 draw : text //---------------------------------------- Routes moyennes --------------------------------------- target : highway moyen define min-zoom : 12 max-zoom : 20 line-color : white line-width : 13:1.5;15:3;18:09 border-style : solid border-color : #D4CCB8 border-width : 0.5 border-color : #000000 white 50% draw : line define min-zoom : 13 max-zoom : 20 font-size : 13:8;18:12 text-offset-vertical : 13:-5;18:-11 font-stretch : 0.95 text-halo-width : 1 draw : text //------------------------------------ Routes mineures --------------------------------------- target : highway minor define min-zoom : 13.1 max-zoom : 20 line-color : white line-width : 13:1.5;15:3;18:09 border-style : solid border-color : #D4CCB8 border-width : 0.7 border-color : #000000 white 50% draw : line define min-zoom : 15 max-zoom : 20 font-size : 13:6;18:12 font-stretch : 0.95 text-offset-vertical : 13:-5;18:-11 text-halo-width : 0 draw : text //=========================== Chemin ====================================== target : path define min-zoom : 13 max-zoom : 20 //line-color : #bfab97 line-color : #b76f28 line-width : 13:1;14:1;15:3 line-style : dash draw : line define min-zoom : 15 font-size : 15:10;18:12 font-stretch : 0.85 text-halo-width : 0 text-offset-vertical : 13:-5;18:-11 draw : text ///---------------------------------------- Chemins piéton ----------------------Affichés après les routes pour qu'ils passent en-dessous target : chpiet define min-zoom : 14 max-zoom : 20 line-color : blue white 25% line-width : 13:1;14:1;15:3 line-style : dash draw : line define min-zoom : 15 font-size : 15:10;18:12 font-stretch : 0.85 text-halo-width : 0 text-offset-vertical : 13:-5;18:-11 draw : text target : highway steps define min-zoom : 16 shape : custom shape-def : -1,1, -1,-1, 1,-1, 1,1;Z shape-spacing : 2 shape-size : 16:1;20:3 shape-aspect : 3 fill-color : #F98072 line-style : none draw : shape target : line barrier define min-zoom : 16 line-color : black line-width : 1 draw : line for:barrier=fence define min-zoom:16 line-color:#777 draw : line target : bridge foot define min-zoom : 13 line-color : white line-width : 7:0.6;9:1;10:1.2;12:2.5;13:3;16:5;18:6 border-style : solid border-color : #FEFEB2 black 20% border-width : 15% draw : line // draw : text target : historic citywalls define min-zoom : 13 line-color : #8D968D line-width : 7:0.6;9:1;10:1.2;12:2.5;13:3;16:10 draw : line // draw : text define target : river define line-color : #7cb1d5 line-width : 7:1;12:2;14:5 draw : line define min-zoom:13 font-size:13:8;16:12 text-halo-width : 25% text-color:#7cb1d5 font-weight:normal draw:text target : canal define min-zoom : 12 line-color : #7cb1d5 line-width : 12:1;17:8 draw : line define min-zoom:13 font-size:13:8;16:12 text-halo-width : 25% text-color:#7cb1d5 font-weight:normal draw:text target : drain define min-zoom : 13 line-color : #7cb1d5 line-width : 1 draw : line target : stream define line-color : #7cb1d5 line-width : 13:1;15:2 draw : line define min-zoom:13 font-size:13:8;16:12 text-halo-width : 25% text-color:#7cb1d5 font-weight:normal draw:text // Attention ici, le répertoire des images est "icons", les images répertoriées sous "icons" ne sont donc pas affichées // Ci-dessous on choisie parfois d'afficher le nom des lieux (resto et autre) mais pas l'icone correspondante pour alléger la carte target: postoffice define icon-image : icons/SJJB/png/amenity_post_office.p.32.png min-zoom : 16 icon-width : 16 draw : icon // target: fire station // define // icon-image : icons/SJJB/png/amenity_firestation.n.32.png // min-zoom : 16 // icon-width : 16 // draw : icon // target: hospital // define // icon-image : icons/SJJB/png/health_hospital.n.32.png // min-zoom : 16 // icon-width : 16 // draw : icon target: church define icon-image : icons/SJJB/png/place_of_worship_christian3.glow.32.png min-zoom : 16 icon-width : 16 define text-halo-width : 3 text-offset-vertical : 150% draw : text draw : icon // target: bank // define // min-zoom : 17 // text-color : #2B80FE // text-offset-vertical : 150% // draw : text // define // icon-image : icons/SJJB/png/money_bank2.n.32.png // min-zoom : 16 // icon-width : 16 // draw : icon // target: restaurant // define // min-zoom : 17 // text-color : #2B80FE // text-offset-vertical : 150% // draw : text // define // icon-image : icons/SJJB/png/food_restaurant.n.32.png // min-zoom : 16 // icon-width : 16 // draw : icon // target: tree // define // icon-image : http://svn.openstreetmap.org/applications/rendering/mapnik/symbols/tree2.png // min-zoom : 16 // icon-width : 6 // draw : icon // target: memorial // define // icon-image : icons/SJJB/png/tourist_memorial.n.32.png // min-zoom : 16 // icon-width : 16 // draw : icon target: school // define // icon-image : icons/SJJB/png/education_school.n.32.png // min-zoom : 16 // icon-width : 16 // draw : icon define text-offset-vertical : 150% draw : text target : gate define icon-image : icons/SJJB/png/gate2.png // icon-image : http://svn.openstreetmap.org/applications/rendering/mapnik/symbols/gate2.png min-zoom : 16 icon-width : 10 draw : icon //************************************************************************************ //================================Début ajout icones APiCy============================ //************************************************************************************ ///---------------------------------------- Parking à vélos --------------------------------------- target: pkv define icon-image : icons/SJJB/png/Parking_32.PNG min-zoom : 16 icon-width : 20 draw : icon define text : capacity text-offset-horizontal : 7 text-offset-vertical : 10 min-zoom : 16 font-size : 15:11 text-halo-width : 3 font-stretch : 0.90 draw : text ///-------------------------------------Parking vélo couvert --------------------------------- target: abri define icon-image : icons/SJJB/png/ParkingCouvert_32.png min-zoom : 16 icon-width : 20 draw : icon define text : capacity text-offset-horizontal : 7 text-offset-vertical : 10 min-zoom : 16 font-size : 15:11 text-halo-width : 3 font-stretch : 0.90 draw : text target: veloloc define icon-image : icons/SJJB/png/transport_rental_bicycle.n.32.png min-zoom : 16 icon-width : 16 draw : icon target: velociste define icon-image : icons/SJJB/png/shopping_bicycle.p.32.png min-zoom : 16 icon-width : 20 draw : icon define text : name text-offset-horizontal : 0 text-offset-vertical : -20 min-zoom : 16 font-size : 16:10;18:14 text-halo-width : 3 font-stretch : 0.90 draw : text target: bus stop define icon-image : icons/SJJB/png/transport_bus_stop.glow.32.png min-zoom : 16 icon-width : 16 draw : icon target: pompe define icon-image : icons/SJJB/png/Pompe_32.PNG min-zoom : 16 icon-width : 20 draw : icon define text : name text-offset-horizontal : 0 text-offset-vertical : 20 min-zoom : 16 font-size : 16:10;18:14 text-halo-width : 3 font-stretch : 0.90 draw : text target: drinking water define icon-image : icons/SJJB/png/food_drinkingtap.n.32.png min-zoom : 16 icon-width : 16 draw : icon target: toilets define icon-image : icons/SJJB/png/amenity_toilets.n.32.png min-zoom : 16 icon-width : 16 draw : icon target: banc define icon-image : icons/SJJB/png/amenity_bench.n.32.png min-zoom : 16 icon-width : 16 draw : icon target: golf define icon-image : icons/SJJB/png/sport_golf.p.32.png min-zoom : 15 icon-width : 15:14;16:20 draw : icon define text : name text-offset-horizontal : 0 text-offset-vertical : -20 min-zoom : 15 font-size : 15:10;18:14 text-halo-width : 3 font-stretch : 0.90 draw : text //************************************************************************************ //================================Fin ajout APiCy===================================== //************************************************************************************ // target : tourism* // define // min-zoom : 17 // text-color : #2B80FE // text-offset-vertical : 150% // draw : text // if : *hotel // define // icon-image : icons/SJJB/png/accommodation_hotel2.n.32.png // min-zoom : 16 // icon-width : 16 // elseif : *viewpoint // define // icon-image : icons/SJJB/png/tourist_view_point.p.32.png // min-zoom : 16 // icon-width : 16 // elseif : *museum // define // icon-image : icons/SJJB/png/tourist_museum.n.32.png // min-zoom : 16 // icon-width : 16 // else // stop // draw : icon // target : amenity* // define // min-zoom : 17 // text-color : #856951 // draw : text // define // min-zoom : 16 // icon-width : 16 // if : *pub // define // icon-image : icons/SJJB/png/food_pub.n.32.png // elseif : *fast_food // define // icon-image : icons/SJJB/png/food_fastfood2.n.32.png // else // stop // draw : icon target: contour* define line-color : #7f3300 line-opacity : 0.35 curved : true if : *major define min-zoom : 9 line-width : 11:0.1;11.9:1;12:2 else define min-zoom : 12 line-width : 1 draw : contour target: coastline define line-color : #B5D0D0 line-width : 2 draw : line target : water line define min-zoom : 10 line-color : #99B3CC line-width : 14:1;16:5;20:10 draw : line