diff --git a/addressing.mss b/addressing.mss index 1b3f8cd54d..1c6c5745c0 100644 --- a/addressing.mss +++ b/addressing.mss @@ -12,8 +12,18 @@ #addresses { [zoom >= 17] { + text-name: ""; + text-placement: interior; + text-face-name: @book-fonts; + text-fill: @address-color; + text-halo-radius: @standard-halo-radius; + text-halo-fill: @standard-halo-fill; + text-size: 10; + text-wrap-width: 30; // 3.0 em + text-line-spacing: -1.5; // -0.15 em + text-margin: 3; // 0.3 em text-name: "[addr_housename]"; - ["addr_housenumber" != null] { + ["addr_housenumber" != null]["render" = null] { text-name: [addr_housenumber]; ["addr_housename" != null] { text-name: [addr_housenumber] + "\n" + [addr_housename]; @@ -25,20 +35,17 @@ } } } - text-placement: interior; - text-face-name: @book-fonts; - text-fill: @address-color; - text-halo-radius: @standard-halo-radius; - text-halo-fill: @standard-halo-fill; - text-size: 10; - text-wrap-width: 30; // 3.0 em - text-line-spacing: -1.5; // -0.15 em - text-margin: 3; // 0.3 em + ["addr_unit" != null]["addr_housenumber" = null]["render" = null] { + text-name: [addr_unit]; + ["addr_housename" != null] { + text-name: [addr_unit] + "\n" + [addr_housename]; + } + } + ["render" = "unit-only"] { + text-name: [addr_unit]; + } [zoom >= 18] { text-halo-radius: @standard-halo-radius * 1.25; - ["addr_unit" != null]["addr_housenumber" = null] { - text-name: [addr_unit]; - } } [zoom >= 20] { text-size: 11;