Ticket #1421: diff

File diff, 2.1 KB (added by R2D2_C3PO, 11 years ago)

Patch that fixes the problem

  • stylesheets/osm-map-features-z17.xml

     
    22432243                        </else>
    22442244                </rule>
    22452245                <rule e="way" k="landuse|military" v="*" layer="5">
    2246                         <areaText k="name" class="caption-casing generic-caption-casing" text-anchor="middle" startOffset="50%" layer="5"/>
    2247                         <areaText k="name" class="caption-core generic-caption-core" text-anchor="middle" startOffset="50%" layer="5"/>
     2246            <rule e="way" k="amenity|shop" v="school|college|university|restaurant|shelter|supermarket|library|fire_station|doctors|pharmacy|place_of_worship|parking|post_office|hospital|hotel|hostel|camp_site|bank|bus_station" />
     2247            <else>
     2248                <areaText k="name" class="caption-casing generic-caption-casing" text-anchor="middle" startOffset="50%" layer="5"/>
     2249                            <areaText k="name" class="caption-core generic-caption-core" text-anchor="middle"
     2250                startOffset="50%" layer="5"/>
     2251            </else>
    22482252                </rule>
    22492253                <rule e="way" k="amenity|shop" v="school|college|university|restaurant|shelter|supermarket|library|fire_station|doctors|pharmacy|place_of_worship|parking|post_office|hospital|hotel|hostel|camp_site|bank|bus_station" layer="5">
    22502254                        <areaText k="name" class="caption-casing generic-caption-casing" dy='-2.5px' text-anchor='middle' startOffset='50%' layer="5"/>
     
    22542258                <rule e="way" k="sport" v="~" layer="5"> <!-- don't render captions for buildings, if sport is also set, thus honor offsets -->
    22552259                        <rule e="way" k="building" v="*" layer="5">
    22562260                                <!-- same goes if one of the following is set -->
    2257                                 <rule e="way" k="amenity|shop" v="school|college|university|parking|supermarket|fire_station|place_of_worship" layer="5">
     2261                                <rule e="way" k="amenity|shop" v="school|college|university|parking|supermarket|fire_station|place_of_worship|restaurant|library" layer="5">
    22582262                                </rule>
    22592263                                <else>
    22602264                                        <areaText k="name" class="caption-casing generic-caption-casing" text-anchor='middle' startOffset='50%' layer="5"/>