[styles] Adjust POIs visibilities

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin 2023-12-02 22:21:53 +02:00 committed by Viktor Govako
parent 2b97562a58
commit 19929f895b
4 changed files with 150 additions and 89 deletions

View file

@ -34,10 +34,8 @@ area|z11-[waterway=waterfall],
node|z12-[natural=cave_entrance],
area|z12-[natural=cave_entrance],
node|z13-[natural=peak][name],
node|z14-[natural=saddle],
area|z14-[natural=saddle],
node|z16-[natural=saddle],
node|z14-[mountain_pass],
area|z14-[mountain_pass],
node|z14-[natural=spring],
area|z14-[natural=spring],
node|z14-[natural=hot_spring],
@ -95,19 +93,20 @@ node|z13[natural=peak][name],
node|z14[natural=peak][name],
{icon-image: peakt-s.svg;font-size: 10;}
node|z15-[natural=peak][name],
node|z15-[natural=rock],
area|z15-[natural=rock],
{icon-image: peakt-m.svg;font-size: 10;}
node|z15-[natural=peak][!name],
{icon-image: peakt-m.svg;font-size: 10;}
/* ToDo: Make the same as natural=peak when we will have -s,-m icons */
node|z14-[natural=saddle],
area|z14-[natural=saddle],
node|z14-[mountain_pass],
area|z14-[mountain_pass],
{icon-image: mountain-pass.svg;text-offset: 1;font-size: 10;}
node|z16-[natural=rock],
area|z16-[natural=rock],
{icon-image: peakt-s.svg; font-size: 10;}
node|z14[mountain_pass],
{icon-image: mountain-pass-s.svg; font-size: 10;}
node|z15-[mountain_pass],
node|z15-[natural=saddle],
{icon-image: mountain-pass-m.svg; font-size: 10;}
node|z16[leisure=beach_resort],
area|z16[leisure=beach_resort]
@ -180,15 +179,15 @@ node|z15-[natural=geyser],
area|z15-[natural=geyser]
{icon-image: geyser-m.svg;text-offset:8;font-size: 10;icon-min-distance: 24;}
node|z15-[amenity=water_point],
area|z15-[amenity=water_point],
node|z15-[amenity=drinking_water],
area|z15-[amenity=drinking_water],
node|z15-[man_made=water_tap],
area|z15-[man_made=water_tap],
node|z15-[man_made=water_well],
area|z15-[man_made=water_well],
{icon-image: drinking-water-s.svg;icon-min-distance: 36;}
node|z16-[amenity=water_point],
area|z16-[amenity=water_point],
node|z16-[amenity=drinking_water],
area|z16-[amenity=drinking_water],
node|z16-[man_made=water_tap],
area|z16-[man_made=water_tap],
node|z16-[man_made=water_well],
area|z16-[man_made=water_well],
{icon-image: drinking-water-s.svg;}
node|z19-[amenity=water_point],
area|z19-[amenity=water_point],
node|z19-[amenity=drinking_water],
@ -197,7 +196,7 @@ node|z19-[man_made=water_tap],
area|z19-[man_made=water_tap],
node|z19-[man_made=water_well],
area|z19-[man_made=water_well],
{icon-image: drinking-water-m.svg;icon-min-distance: 36;}
{icon-image: drinking-water-m.svg;}
/* 3. TRANSPORT */
@ -436,10 +435,10 @@ area|z15-[historic=battlefield],
node|z15-[tourism=gallery],
area|z15-[tourism=gallery],
node|z15-[tourism=artwork],
node|z15-[tourism=information][information=office],
node|z15-[tourism=information][information=visitor_centre],
node|z15-[historic=ship],
node|z16-[tourism=information],
node|z15-[tourism=information][information=office],
node|z15-[tourism=information][information=visitor_centre],
node|z16-[historic=aircraft],
node|z16-[historic=tank],
node|z16-[historic=wreck],
@ -887,7 +886,7 @@ node|z15-[landuse=quarry],
area|z15-[landuse=quarry],
node|z15-[landuse=industrial][industrial=mine],
area|z15-[landuse=industrial][industrial=mine],
node|z15-[barrier=border_control],
node|z14-[barrier=border_control],
node|z16-[amenity=veterinary],
area|z16-[amenity=veterinary],
node|z16-[amenity=fountain],
@ -918,7 +917,6 @@ node|z16-[leisure=dog_park],
area|z16-[leisure=dog_park],
node|z16-[man_made=windmill],
area|z16-[man_made=windmill],
node|z16-[man_made=survey_point],
node|z16-[amenity=college],
area|z16-[amenity=college],
node|z16-[amenity=conference_centre],
@ -975,6 +973,8 @@ node|z17-[amenity=school],
area|z17-[amenity=school],
node|z17-[amenity=cinema],
area|z17-[amenity=cinema],
node|z17-[amenity=ice_cream],
area|z17-[amenity=ice_cream],
node|z17-[leisure=bowling_alley],
area|z17-[leisure=bowling_alley],
node|z17-[amenity=police],
@ -1053,6 +1053,7 @@ node|z18-[amenity=public_bookcase],
area|z18-[amenity=public_bookcase],
node|z19-[power=substation],
area|z19-[power=substation],
node|z18-[man_made=survey_point],
node|z18-[tourism],
area|z18-[tourism],
node|z18-[office],
@ -1271,8 +1272,8 @@ area|z17-[leisure=swimming_pool]
node|z17-[leisure=swimming_pool][access=private],
area|z17-[leisure=swimming_pool][access=private]
{icon-image: zero-icon.svg;}
node|z17-[leisure=golf_course],
area|z17-[leisure=golf_course]
node|z15-[leisure=golf_course],
area|z15-[leisure=golf_course],
{icon-image: golf-m.svg;icon-min-distance: 10;}
node|z17-[sport],
@ -1501,14 +1502,16 @@ area|z15-[man_made=lighthouse]
{icon-image: lighthouse-m.svg;}
node|z12-14[barrier=toll_booth],
area|z12-14[barrier=toll_booth]
{icon-image: toll_booth-s.svg;icon-min-distance: 8;}
area|z12-14[barrier=toll_booth],
{icon-image: toll_booth-s.svg;}
node|z15-[barrier=toll_booth],
area|z15-[barrier=toll_booth]
{icon-image: toll_booth-m.svg;icon-min-distance: 8;}
area|z15-[barrier=toll_booth],
{icon-image: toll_booth-m.svg;}
node|z15-[barrier=border_control]
{icon-image:bcontrol-m.svg;}
node|z14[barrier=border_control],
{icon-image: bcontrol-s.svg;}
node|z15-[barrier=border_control],
{icon-image: bcontrol-m.svg;}
node|z16-[barrier=block],
node|z16-[barrier=bollard],
@ -1518,6 +1521,8 @@ node|z16-[barrier=turnstile],
{icon-image: dot-m.svg;font-size: 11;}
node|z16-[barrier=entrance],
{icon-image: barrier-entrance-s.svg; font-size: 11;}
node|z16-[barrier=gate],
node|z16-[barrier=kissing_gate],
{icon-image: gate-s.svg;font-size: 11;}
@ -1526,6 +1531,8 @@ node|z16-[barrier=cycle_barrier],
{icon-image: cycle_barrier-s.svg;font-size: 11;}
node|z16-[highway=ford],
{icon-image: ford-m.svg;}
/* ToDo: Make separate tower icon? Because of a good landmark */
node|z16-[power=tower],
node|z15-[man_made=flagpole],
@ -1767,7 +1774,7 @@ node|z18-[amenity=bbq],
area|z18-[amenity=bbq]
{icon-image: bbq-m.svg;font-size: 11;}
node|z16-[man_made=survey_point]
node|z18-[man_made=survey_point],
{icon-image: survey_point-m.svg;font-size: 11;}
node|z19-[man_made=cairn]

View file

@ -9,10 +9,8 @@ area|z11-[natural=cave_entrance],
node|z11-[waterway=waterfall],
area|z11-[waterway=waterfall],
node|z11-[natural=peak][name],
node|z12-[natural=saddle],
area|z12-[natural=saddle],
node|z15-[natural=saddle],
node|z12-[mountain_pass],
area|z12-[mountain_pass],
node|z14-[natural=spring],
area|z14-[natural=spring],
node|z14-[amenity=water_point],
@ -23,6 +21,10 @@ node|z14-[man_made=water_tap],
area|z14-[man_made=water_tap],
node|z14-[man_made=water_well],
area|z14-[man_made=water_well],
node|z15-[tourism=information],
node|z14-[tourism=information][information=office],
node|z14-[tourism=information][information=visitor_centre],
node|z15-[man_made=survey_point],
node|z15-[natural=hot_spring],
area|z15-[natural=hot_spring],
node|z12-[natural=geyser],
@ -106,21 +108,18 @@ node|z13-15[natural=peak][!name],
node|z16-[natural=peak][!name],
{icon-image: peakt-m.svg;}
/* ToDo: Make the same as natural=peak when we will have -s,-m icons */
node|z11-[natural=saddle],
area|z11-[natural=saddle],
node|z11-[mountain_pass],
area|z11-[mountain_pass],
{icon-image: mountain-pass.svg;}
node|z13-[natural=saddle],
area|z13-[natural=saddle],
node|z14-[natural=rock],
{icon-image: peakt-s.svg; font-size: 11;}
node|z16-[natural=rock],
{font-size: 12;}
node|z11-12[mountain_pass],
{icon-image: mountain-pass-s.svg;}
node|z13-[mountain_pass],
area|z13-[mountain_pass],
{font-size: 11;}
node|z13-[natural=saddle],
{icon-image: mountain-pass-m.svg; font-size: 11;}
node|z16-[natural=saddle],
area|z16-[natural=saddle],
node|z16-[mountain_pass],
area|z16-[mountain_pass],
{font-size: 12;}
node|z10-12[natural=geyser],
@ -170,18 +169,20 @@ area|z11-[tourism=alpine_hut],
node|z13-[tourism=wilderness_hut],
area|z13-[tourism=wilderness_hut],
node|z13-[tourism=viewpoint],
node|z15-[tourism=chalet],
area|z15-[tourism=chalet],
node|z14-[tourism=camp_site],
area|z14-[tourism=camp_site],
node|z14-[tourism=chalet],
area|z14-[tourism=chalet],
node|z13-[tourism=camp_site],
area|z13-[tourism=camp_site],
node|z14-[tourism=picnic_site],
area|z14-[tourism=picnic_site],
node|z16-[leisure=picnic_table],
area|z16-[leisure=picnic_table],
node|z16-[amenity=bbq],
area|z16-[amenity=bbq],
node|z13-[amenity=shelter],
area|z13-[amenity=shelter],
node|z14-[tourism=caravan_site],
area|z14-[tourism=caravan_site],
node|z13-[tourism=caravan_site],
area|z13-[tourism=caravan_site],
{text: name; text-color: @poi_label; text-offset: 1; font-size: 10;}
node|z11-[tourism=alpine_hut],
@ -189,19 +190,19 @@ area|z11-[tourism=alpine_hut],
node|z13-[tourism=wilderness_hut],
area|z13-[tourism=wilderness_hut],
{icon-image: alpine_hut-s.svg; icon-min-distance: 24;}
node|z11-[tourism=alpine_hut],
area|z11-[tourism=alpine_hut],
node|z13-[tourism=alpine_hut],
area|z13-[tourism=alpine_hut],
node|z13-[tourism=wilderness_hut],
area|z13-[tourism=wilderness_hut],
node|z15-[tourism=chalet],
area|z15-[tourism=chalet],
node|z14-[tourism=chalet],
area|z14-[tourism=chalet],
{font-size: 11;}
node|z14-[tourism=alpine_hut],
area|z14-[tourism=alpine_hut],
node|z14-[tourism=wilderness_hut],
area|z14-[tourism=wilderness_hut],
node|z15-[tourism=chalet],
area|z15-[tourism=chalet],
node|z14-[tourism=chalet],
area|z14-[tourism=chalet],
{icon-image: alpine_hut-m.svg;}
node|z16-[tourism=alpine_hut],
area|z16-[tourism=alpine_hut],
@ -211,9 +212,12 @@ node|z16-[tourism=chalet],
area|z16-[tourism=chalet],
{font-size: 12; icon-min-distance: 0;}
node|z13-[tourism=camp_site],
area|z13-[tourism=camp_site],
{icon-image: campsite-s.svg; icon-min-distance: 12; font-size: 11;}
node|z14-[tourism=camp_site],
area|z14-[tourism=camp_site],
{icon-image: campsite-m.svg; icon-min-distance: 12; font-size: 11;}
{icon-image: campsite-m.svg;}
node|z16-[tourism=camp_site],
area|z16-[tourism=camp_site],
{font-size: 12; icon-min-distance: 0;}
@ -232,17 +236,26 @@ node|z16-[leisure=picnic_table],
area|z16-[leisure=picnic_table],
{font-size: 11;}
/* need a small icon */
node|z16-[amenity=bbq],
area|z16-[amenity=bbq],
{icon-image: bbq-m.svg; font-size: 11;}
node|z13-[amenity=shelter],
area|z13-[amenity=shelter],
{icon-image: shelter-m.svg;icon-min-distance: 10; font-size: 11;}
{icon-image: shelter-s.svg; icon-min-distance: 10; font-size: 11;}
node|z14-[amenity=shelter],
area|z14-[amenity=shelter],
{icon-image: shelter-m.svg;}
node|z16-[amenity=shelter],
area|z16-[amenity=shelter],
{font-size: 12; icon-min-distance: 0;}
node|z13-[tourism=caravan_site],
area|z13-[tourism=caravan_site],
{icon-image: caravan_site-s.svg; font-size: 11; icon-min-distance: 12;}
node|z14-[tourism=caravan_site],
area|z14-[tourism=caravan_site],
{icon-image: caravan_site-m.svg;font-size: 11;icon-min-distance: 30;}
{icon-image: caravan_site-m.svg;}
node|z16-[tourism=caravan_site],
area|z16-[tourism=caravan_site],
{font-size: 12; icon-min-distance: 0;}
@ -254,9 +267,36 @@ node|z13-[tourism=viewpoint],
node|z16-[tourism=viewpoint],
{font-size: 12;}
node|z13-15[tourism=information],
{font-size: 11;}
node|z16-[tourism=information],
{font-size: 12;}
node|z15-[tourism=information],
{icon-image: information-m.svg;}
node|z13-[tourism=information][information=office],
node|z13-[tourism=information][information=visitor_centre],
{icon-image: information-office-m.svg;}
node|z15-[tourism=information][information=board],
{icon-image: board.svg;}
node|z15-[tourism=information][information=guidepost],
{icon-image: guidepost.svg;}
node|z15-[tourism=information][information=map],
{icon-image: map.svg;}
node|z14-[man_made=survey_point],
{icon-image: survey_point-m.svg; font-size: 11;}
node|z16-[man_made=survey_point],
{font-size: 12;}
/* 5.5 Others */
area|z14-[highway=rest_area],
{icon-image: picnic-m.svg;}
node|z15-[amenity=toilets],
area|z15-[amenity=toilets],
{icon-image: toilets-m.svg; font-size: 11;}
node|z11-12[man_made=lighthouse],
area|z11-12[man_made=lighthouse],
{icon-image: lighthouse-s.svg; icon-min-distance: 10;}
@ -267,14 +307,23 @@ node|z16-[man_made=lighthouse],
area|z16-[man_made=lighthouse],
{font-size: 12;}
node|z14-[barrier=border_control]
node|z12-[barrier=border_control],
{icon-image: bcontrol-s.svg;}
node|z14-[barrier=border_control],
{icon-image: bcontrol-m.svg;}
node|z14-[highway=ford],
{icon-image: ford-m.svg;}
node|z14-[power=tower],
{icon-image: power-tower-m.svg;}
node|z12-[man_made=flagpole],
node|z13-[man_made=mast],
{icon-image: dot-m.svg;}
node|z14-[man_made=flagpole],
node|z14-[man_made=mast],
{icon-image: mast-m.svg;}
node|z18-[man_made=cairn],
{icon-image: cairn-m.svg;text: name;text-color: @poi_label;font-size: 12;text-offset: 1;}

View file

@ -38,7 +38,7 @@ area|z12-[leisure=nature_reserve]
node|z14-[highway=ford]
{icon-image: dot-m.svg;icon-min-distance: 20;}
{icon-image: ford-m.svg; icon-min-distance: 20;}
/*
node|z11[landuse=forest][name],
@ -238,7 +238,6 @@ node|z15-[historic=battlefield],
area|z15-[historic=battlefield],
node|z15-[tourism=gallery],
area|z15-[tourism=gallery],
node|z15-[tourism=artwork],
node|z16-[amenity=community_centre],
area|z16-[amenity=community_centre],
node|z16-[historic=boundary_stone],
@ -260,7 +259,8 @@ area|z17-[historic=wayside_shrine],
node|z17-[historic=archaeological_site],
area|z17-[historic=archaeological_site],
node|z17-[amenity=arts_centre],
area|z17-[amenity=arts_centre]
area|z17-[amenity=arts_centre],
node|z18-[tourism=artwork],
{text: name;text-offset: 1;font-size: 10;text-color: @poi_label;}
node|z12-14[historic=fort],
@ -404,10 +404,9 @@ node|z17-[historic=wayside_shrine],
area|z17-[historic=wayside_shrine]
{icon-image: wayside_shrine-m.svg;font-size: 11;icon-min-distance: 8;}
node|z15[tourism=artwork]
{icon-image: tourism-m.svg;icon-min-distance: 8;}
node|z16[tourism=artwork]
{icon-image: tourism-m.svg;icon-min-distance: 28;}
node|z18-[tourism=artwork]
{icon-image: tourism-m.svg;}
node|z14[tourism=theme_park],
area|z14[tourism=theme_park]
{icon-image: theme_park-m.svg;icon-min-distance: 12;}
@ -423,8 +422,6 @@ area|z16-[tourism=attraction]
node|z16-[tourism=theme_park],
area|z16-[tourism=theme_park]
{icon-image: theme_park-m.svg;icon-min-distance: 24;}
node|z17-[tourism=artwork]
{icon-image: tourism-m.svg;icon-min-distance: 24;}
node|z16-[amenity=community_centre],
area|z16-[amenity=community_centre],
@ -503,7 +500,7 @@ node|z15-[amenity=university],
node|z15-[amenity=hospital],
node|z14-[barrier=toll_booth],
area|z14-[barrier=toll_booth],
node|z15-[barrier=border_control],
node|z14-[barrier=border_control],
node|z16-[barrier=lift_gate],
area|z16-[barrier=lift_gate],
node|z17-[amenity=bank],
@ -626,20 +623,15 @@ node|z18-[amenity=police],
area|z18-[amenity=police]
{icon-image: police-m.svg; font-size: 14.5; icon-min-distance: 10;}
node|z12-14[barrier=toll_booth],
area|z12-14[barrier=toll_booth]
{icon-image: toll_booth-m.svg;icon-min-distance: 8;}
node|z15-16[barrier=toll_booth],
area|z15-16[barrier=toll_booth]
{icon-image: toll_booth-m.svg;icon-min-distance: 8;}
node|z17-[barrier=toll_booth],
area|z17-[barrier=toll_booth]
{icon-image: toll_booth-m.svg;icon-min-distance: 8;}
node|z12[barrier=toll_booth],
area|z12[barrier=toll_booth],
{icon-image: toll_booth-s.svg; icon-min-distance: 8;}
node|z13-[barrier=toll_booth],
area|z13-[barrier=toll_booth],
{icon-image: toll_booth-m.svg; icon-min-distance: 8;}
node|z15-[barrier=border_control]
{icon-image:bcontrol-m.svg;}
node|z17-[barrier=border_control]
{icon-image:bcontrol-m.svg;}
node|z14-[barrier=border_control],
{icon-image: bcontrol-m.svg;}
node|z16-[barrier=lift_gate],
area|z16-[barrier=lift_gate]
@ -678,6 +670,7 @@ node|z14-[shop=supermarket],
area|z14-[shop=supermarket],
node|z15-[shop=car_repair][service=tyres],
area|z15-[shop=car_repair][service=tyres],
node|z18-[shop=convenience],
{text: name;text-color: @poi_label;text-offset: 1;font-size: 11.5;text-min-distance: 3;}
@ -709,6 +702,10 @@ node|z18-[shop=supermarket],
area|z18-[shop=supermarket]
{icon-image: grocery-m.svg;font-size: 14.5;icon-min-distance: 15;}
node|z17-[shop=convenience],
{icon-image: convenience-m.svg; font-size: 13.25;}
node|z18-[shop=convenience],
{font-size: 14.5;}
node|z15[shop=car_repair][service=tyres],
area|z15[shop=car_repair][service=tyres]
@ -782,6 +779,7 @@ node|z16-[amenity=parking],
area|z16-[amenity=parking],
node|z17-[amenity=car_wash],
area|z17-[amenity=car_wash],
node|z17-[amenity=toilets],
node|z18-[amenity=car_rental],
area|z18-[amenity=car_rental],
node|z18-[amenity=car_sharing],
@ -863,6 +861,11 @@ node|z18-[amenity=car_wash],
area|z18-[amenity=car_wash],
{icon-image: car-wash-m.svg;text-offset: 1;font-size: 14.5;}
node|z17-[amenity=toilets],
{icon-image: toilets-m.svg; font-size: 13.75;}
node|z18-[amenity=toilets],
{font-size: 14.5;}
node|z18-[amenity=car_rental],
area|z18-[amenity=car_rental]
{icon-image: car_sharing-m.svg;text-offset: 1;font-size: 14.5;}

View file

@ -699,8 +699,10 @@ historic-ruins # icon z17- (also has captio
=== 300
amenity-fast_food # icon z17- (also has caption(optional) z17-)
shop-convenience
=== 250
amenity-toilets
amenity-bank # icon z17- (also has caption(optional) z17-)
amenity-parcel_locker # icon z17- (also has caption(optional) z17-)
amenity-police # icon z17-