Ignore:
Timestamp:
2014-08-30T15:10:30+02:00 (5 years ago)
Author:
bastiK
Message:

see #10363 - show place=* and some of the natural=* tags at any zoom level and not just at |z11- (patch by Klumbumbus)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/styles/standard/elemstyles.mapcss

    r7467 r7470  
    32923292node[natural=saddle] {
    32933293    icon-image: "presets/saddle.svg";
    3294     set icon_z11;
    3295     text: auto;
    3296     set text_z11;
     3294    set icon_z0;
     3295    text: auto;
     3296    set text_z0;
    32973297}
    32983298area[natural=peak] {
     
    33013301node[natural=peak] {
    33023302    icon-image: "presets/peak.svg";
    3303     set icon_z11;
    3304     text: auto;
    3305     set text_z11;
     3303    set icon_z0;
     3304    text: auto;
     3305    set text_z0;
    33063306}
    33073307node[natural=peak][tourism=viewpoint] {
    33083308    icon-image: "sightseeing/peak_viewpoint.svg";
    3309     set icon_z11;
    3310     text: auto;
    3311     set text_z11;
     3309    set icon_z0;
     3310    text: auto;
     3311    set text_z0;
    33123312}
    33133313area[natural=glacier] {
     
    33163316node[natural=glacier] {
    33173317    icon-image: "misc/landmark/glacier_small.png";
    3318     set icon_z11;
    3319     text: auto;
    3320     set text_z11;
     3318    set icon_z0;
     3319    text: auto;
     3320    set text_z0;
    33213321}
    33223322area[natural=volcano] {
     
    33253325node[natural=volcano] {
    33263326    icon-image: "misc/landmark/volcano_small.png";
    3327     set icon_z11;
    3328     text: auto;
    3329     set text_z11;
     3327    set icon_z0;
     3328    text: auto;
     3329    set text_z0;
    33303330}
    33313331area[natural=cliff]:closed {
     
    39733973node[mountain_pass?] {
    39743974    icon-image: "misc/landmark/mountain_pass.png";
    3975     set icon_z11;
    3976     text: auto;
    3977     set text_z11;
     3975    set icon_z0;
     3976    text: auto;
     3977    set text_z0;
    39783978}
    39793979
     
    41334133node["openGeoDB:location"=locality] {
    41344134    icon-image: "place/settlement/town.png";
    4135     set icon_z11;
    4136     text: auto;
    4137     set text_z11;
     4135    set icon_z0;
     4136    text: auto;
     4137    set text_z0;
    41384138    font-size: 10;
    41394139    font-weight: bold;
     
    41664166node[place=county] {
    41674167    icon-image: "place/settlement/capital.png";
    4168     set icon_z11;
    4169     text: auto;
    4170     set text_z11;
     4168    set icon_z0;
     4169    text: auto;
     4170    set text_z0;
    41714171    font-size: 10;
    41724172    font-weight: bold;
     
    41774177node[place=city] {
    41784178    icon-image: "place/settlement/city.png";
    4179     set icon_z11;
    4180     text: auto;
    4181     set text_z11;
     4179    set icon_z0;
     4180    text: auto;
     4181    set text_z0;
    41824182    font-size: 10;
    41834183    font-weight: bold;
     
    41944194node[place=suburb] {
    41954195    icon-image: "place/settlement/town.png";
    4196     set icon_z11;
    4197     text: auto;
    4198     set text_z11;
     4196    set icon_z0;
     4197    text: auto;
     4198    set text_z0;
    41994199    font-size: 10;
    42004200    font-weight: bold;
     
    42054205node[place=locality] {
    42064206    icon-image: "place/locality.png";
    4207     set icon_z11;
    4208     text: auto;
    4209     set text_z11;
     4207    set icon_z0;
     4208    text: auto;
     4209    set text_z0;
    42104210    font-size: 10;
    42114211    font-weight: bold;
     
    42164216node[place=island] {
    42174217    icon-image: "place/island.png";
    4218     set icon_z11;
    4219     text: auto;
    4220     set text_z11;
     4218    set icon_z0;
     4219    text: auto;
     4220    set text_z0;
    42214221    font-size: 10;
    42224222    font-weight: bold;
     
    42274227node[place=islet] {
    42284228    icon-image: "place/islet.png";
    4229     set icon_z11;
    4230     text: auto;
    4231     set text_z11;
     4229    set icon_z0;
     4230    text: auto;
     4231    set text_z0;
    42324232    font-size: 10;
    42334233    font-weight: bold;
     
    42684268/*
    42694269Summary of different zoom levels:
    4270   |z11-   place=* icons and text is shown
    4271   |z-15   untagged way nodes are hidden completely
    4272   |z16-   fixme=* and note=* symbols
    4273   |z17-   normal POI icons (without text),
    4274           street name along highway=* ways
    4275   |z18-   text for normal POI icons is shown
     4270  (any zoom)    place=* and a few natural icons with their text is shown
     4271  |z-15         untagged way nodes are hidden completely
     4272  |z16-         fixme=* and note=* symbols
     4273  |z17-         normal POI icons (without text),
     4274                street name along highway=* ways
     4275  |z18-         text for normal POI icons is shown
    42764276 
    42774277 * text size and node size is adapted according to zoom level (see style source below)
     
    43204320node[!setting("shrink_nodes")]:connection       { symbol-size: 6; }
    43214321
    4322 node|z-10[setting("hide_icons")] {
    4323     icon-image: none;
    4324 }
    4325 node|z-16[setting("hide_icons")].icon_z17!.icon_z11,
     4322node|z-16[setting("hide_icons")].icon_z17!.icon_z0,
    43264323relation|z-16[type=restriction][setting("hide_icons")] {
    43274324    icon-image: none;
    43284325}
    4329 node|z-10[setting("hide_icons")] {
    4330     text: none;
    4331 }
    4332 node|z-17[setting("hide_icons")]!.text_z11 {
     4326node|z-17[setting("hide_icons")]!.text_z0 {
    43334327    text: none;
    43344328}
Note: See TracChangeset for help on using the changeset viewer.