Skip to content

Commit

Permalink
Improve legibility of housenumber+unit address labels.
Browse files Browse the repository at this point in the history
Use '/' as a separating character between addr:housenumber and
addr:unit, when addr:unit starts with a digit.
  • Loading branch information
tpikonen committed Nov 6, 2017
1 parent cccf369 commit b49c0f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions addressing.mss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
["addr_housename" != null] {
text-name: [addr_housenumber] + " " + [addr_unit] + "\n" + [addr_housename];
}
["addr_unit"=~"[0-9].*"] {
text-name: [addr_housenumber] + "/" + [addr_unit];
["addr_housename" != null] {
text-name: [addr_housenumber] + "/" + [addr_unit] + "\n" + [addr_housename];
}
}
}
}
}
Expand Down

0 comments on commit b49c0f1

Please sign in to comment.