Warning, /libraries/kosmindoormap/src/map-quick/amenity-model.mapcss is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2023 Volker Krause <vkrause@kde.org>
0003     SPDX-License-Identifier: LGPL-2.0-or-later
0004 */
0005 
0006 /* Amenity model content selection and classification
0007  * - opacity is used to include/exclude elements
0008  * - grouping is done via setting the layer tag to: food, shop, toilets, amenity, healthcare, accommodation
0009  * - icon-image is used for the icon
0010  * - font-family is the category name
0011  * Note: Zoom levels are not set for this.
0012  */
0013 
0014 *[office]
0015 {
0016     opacity: 1;
0017     icon-image: office;
0018     font-family: office;
0019     set layer = "amenity";
0020 }
0021 *[office=diplomatic][diplomatic] {
0022     font-family: diplomatic;
0023     icon-image: diplomatic;
0024 }
0025 *[office=government][government] { font-family: government; }
0026 *[office=government][!government] { opacity: 0; }
0027 *[office=travel_agent] { icon-image: "travel_agency"; }
0028 
0029 *[tourism]
0030 {
0031     opacity: 1;
0032     icon-image: tourism;
0033     font-family: tourism;
0034     set layer = "amenity";
0035 }
0036 *[tourism=gallery] { icon-image: "art"; }
0037 *[tourism=information] { opacity: 0; }
0038 *[tourism=information][information=office] { opacity: 1; }
0039 
0040 *[historic=archaeological_site],
0041 *[historic=castle],
0042 *[historic=monument]
0043 {
0044     opacity: 1;
0045     icon-image: historic;
0046     font-family: historic;
0047     set layer = "amenity";
0048 }
0049 
0050 *[leisure]
0051 {
0052     opacity: 1;
0053     icon-image: leisure;
0054     font-family: leisure;
0055     set layer = "amenity";
0056 }
0057 *[leisure=sports_centre][sport=swimming] { icon-image: "water_park"; }
0058 *[leisure=fitness_station] { icon-image: "fitness_centre"; }
0059 *[leisure=park][!name] { opacity: 0; }
0060 
0061 *[healthcare]
0062 {
0063     opacity: 1;
0064     icon-image: healthcare;
0065     font-family: healthcare;
0066 }
0067 
0068 *[amenity]
0069 {
0070     opacity: 1;
0071     icon-image: amenity;
0072     font-family: amenity;
0073     set layer = "amenity";
0074 }
0075 *[amenity=clinic] { icon-image: "doctors"; }
0076 *[amenity=food_court] { icon-image: "restaurant"; }
0077 
0078 *[amenity=baggage_lockers],
0079 *[amenity=left_luggage],
0080 *[amenity=locker],
0081 *[amenity=lockers]
0082 {
0083     icon-image: "luggage_locker";
0084 }
0085 
0086 *[amenity=lost_and_found],
0087 *[amenity=lost_found],
0088 *[amenity=lost_property],
0089 *[office=lost_property],
0090 *[office=lost_and_found]
0091 {
0092     icon-image: "lost_property_office";
0093 }
0094 
0095 *[shop]
0096 {
0097     opacity: 1;
0098     icon-image: shop;
0099     font-family: shop;
0100     set layer = "shop";
0101 }
0102 *[shop=books] { icon-image: "library"; }
0103 *[shop=boutique] { icon-image: "clothes"; }
0104 *[shop=chocolate] { icon-image: "confectionery"; }
0105 *[shop=cosmetics] { icon-image: "perfumery"; }
0106 *[shop=dry_cleaning] { icon-image: "laundry"; }
0107 *[shop=farm] { icon-image: "greengrocer"; }
0108 *[shop=fashion] { icon-image: "clothes"; }
0109 *[shop=kiosk] { icon-image: "newsagent"; }
0110 *[shop=pastry] { icon-image: "confectionery"; }
0111 *[shop=wine] { icon-image: "alcohol"; }
0112 *[shop=wholesale] { icon-image: "trade"; }
0113 
0114 *[tourism=apartment],
0115 *[tourism=caravan_site],
0116 *[tourism=chalet],
0117 *[tourism=guest_house],
0118 *[tourism=hostel],
0119 *[tourism=hotel]
0120 {
0121     set layer = "accommodation";
0122 }
0123 
0124 *[shop=massage]
0125 {
0126     set layer = "amenity";
0127 }
0128 
0129 *[amenity=shower],
0130 *[amenity=toilets]
0131 {
0132     set layer = "toilets";
0133 }
0134 
0135 *[amenity=clinic],
0136 *[amenity=dentist],
0137 *[amenity=doctors],
0138 *[amenity=pharmacy],
0139 *[healthcare],
0140 *[shop=hearing_aids],
0141 *[shop=medical_supply],
0142 *[shop=optician]
0143 {
0144     set layer = "healthcare";
0145 }
0146 
0147 *[amenity=marketplace],
0148 *[office=travel_agent]
0149 {
0150     set layer = "shop";
0151 }
0152 
0153 *[amenity=bar],
0154 *[amenity=biergarten],
0155 *[amenity=cafe],
0156 *[amenity=drinking_water],
0157 *[amenity=fast_food],
0158 *[amenity=food_court],
0159 *[amenity=ice_cream],
0160 *[amenity=pub],
0161 *[amenity=restaurant]
0162 {
0163     set layer = "food";
0164     font-family: amenity; // in case there is also a shop tagging on this
0165 }
0166 *[shop=bakery]
0167 {
0168     set layer = "food";
0169 }
0170 
0171 *[amenity=bench],
0172 *[amenity=bicycle_parking],
0173 *[amenity=bicycle_rental],
0174 *[amenity=car_sharing],
0175 *[amenity=charging_station],
0176 *[amenity=college],
0177 *[amenity=clock][!tourism],
0178 *[amenity=fountain],
0179 *[amenity=kindergarten],
0180 *[amenity=loading_ramp],
0181 *[amenity=motorcycle_parking],
0182 *[amenity=parcel_locker],
0183 *[amenity=parking],
0184 *[amenity=parking_entrance],
0185 *[amenity=parking_space],
0186 *[amenity=place_of_worship],
0187 *[amenity=recycling],
0188 *[amenity=school],
0189 *[amenity=shelter],
0190 *[amenity=smoking_area],
0191 *[amenity=taxi],
0192 *[amenity=telephone],
0193 *[amenity=ticket_validator],
0194 *[amenity=vending_machine],
0195 *[amenity=waiting_area],
0196 *[amenity=waste_basket],
0197 *[amenity=waste_disposal],
0198 *[leisure=garden],
0199 *[leisure=outdoor_seating],
0200 *[shop=disused],
0201 *[shop=vacant],
0202 *[tourism=artwork]
0203 {
0204     opacity: 0;
0205 }
0206 
0207 *[access=no],
0208 *[access=private]
0209 {
0210     opacity: 0;
0211 }