Ignore:
Timestamp:
2014-09-10T16:08:11+02:00 (5 years ago)
Author:
bastiK
Message:

applied #10468 - Highway label issues in new map style (based on patch by Klumbumbus)

File:
1 edited

Legend:

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

    r7470 r7520  
    3030  type: boolean;
    3131  label: tr("Less obtrusive node symbols at low zoom");
     32  default: true;
     33}
     34
     35setting::highway_labels {
     36  type: boolean;
     37  label: tr("Display street labels (at high zoom)");
    3238  default: true;
    3339}
     
    43354341/*******************/
    43364342
    4337 way|z17-[highway^=motorway],
    4338 way|z17-[highway^=trunk],
    4339 way|z17-[highway^=primary],
    4340 way|z17-[highway^=secondary],
    4341 way|z17-[highway^=tertiary],
    4342 way|z17-[highway=unclassified],
    4343 way|z17-[highway=residential],
    4344 way|z17-[highway=living_street],
    4345 way|z17-[highway=pedestrian][!area?],
    4346 way|z17-[highway=service],
    4347 way|z17-[highway=track] {
     4343way|z17-[highway^=motorway][setting("highway_labels")],
     4344way|z17-[highway^=trunk][setting("highway_labels")],
     4345way|z17-[highway^=primary][setting("highway_labels")],
     4346way|z17-[highway^=secondary][setting("highway_labels")],
     4347way|z17-[highway^=tertiary][setting("highway_labels")],
     4348way|z17-[highway=unclassified][setting("highway_labels")],
     4349way|z17-[highway=residential][setting("highway_labels")],
     4350way|z17-[highway=living_street][setting("highway_labels")],
     4351way|z17-[highway=pedestrian][!area?][setting("highway_labels")],
     4352way|z17-[highway=service][setting("highway_labels")],
     4353way|z17-[highway=track][setting("highway_labels")] {
    43484354    text: auto;
    43494355    text-color: black;
     
    43534359    text-halo-radius: 1.5;
    43544360}
    4355 way|z17-[highway^=motorway] {
     4361way|z17-[highway^=motorway][setting("highway_labels")] {
    43564362    text-halo-color: motorway#809bc0;
    43574363}
    4358 way|z17-[highway^=trunk] {
     4364way|z17-[highway^=trunk][setting("highway_labels")] {
    43594365    text-halo-color: trunk#7fc97f;
    43604366}
    4361 way|z17-[highway^=primary] {
     4367way|z17-[highway^=primary][setting("highway_labels")] {
    43624368    text-halo-color: primary#fb805f;
    43634369}
    4364 way|z17-[highway^=secondary] {
     4370way|z17-[highway^=secondary][setting("highway_labels")] {
    43654371    text-halo-color: secondary#fdbf6f;
    43664372}
    4367 way|z17-[highway^=tertiary] {
     4373way|z17-[highway^=tertiary][setting("highway_labels")] {
    43684374    text-halo-color: tertiary#f7f496;
    43694375}
    4370 way|z17-[highway=unclassified],
    4371 way|z17-[highway=residential],
    4372 way|z17-[highway=living_street] {
     4376way|z17-[highway=unclassified][setting("highway_labels")],
     4377way|z17-[highway=residential][setting("highway_labels")],
     4378way|z17-[highway=living_street][setting("highway_labels")] {
    43734379    text-halo-color: street#c0c0c0;
    43744380}
    4375 way[highway=pedestrian][!area?] {
     4381way[highway=pedestrian][!area?][setting("highway_labels")] {
    43764382    text-halo-color: foot#00ff00;
    43774383}
    4378 way|z17-[highway=service] {
     4384way|z17-[highway=service][setting("highway_labels")] {
    43794385    text-halo-color: service#809bc0;
    43804386}
    4381 way|z17-[highway=track] {
     4387way|z17-[highway=track][setting("highway_labels")] {
    43824388    text-halo-color: highway_track#006600;
    43834389}
    4384 way|z18[highway] {
     4390way|z18[highway][setting("highway_labels")] {
    43854391    font-size: 10;
    43864392}
    4387 way|z19[highway] {
     4393way|z19[highway][setting("highway_labels")] {
    43884394    font-size: 11;
    43894395}
    4390 way|z20-[highway] {
     4396way|z20-[highway][setting("highway_labels")] {
    43914397    font-size: 12;
    43924398}
Note: See TracChangeset for help on using the changeset viewer.