Skip to content

Commit

Permalink
Thin contour of buildings in mid zooms
Browse files Browse the repository at this point in the history
  • Loading branch information
quasart authored and Phyks committed Jul 22, 2021
1 parent 990965f commit 209fe1c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

* Track width at z14 was smaller than in other zoom levels. See #411.
* Add a thin contour on buildings at mid zooms. See #411.


## v0.6
Expand Down
9 changes: 8 additions & 1 deletion base.mss
Original file line number Diff line number Diff line change
Expand Up @@ -522,9 +522,16 @@ Map { background-color: @water; }
#buildings[zoom>=16] {
polygon-fill: @building;

/* Thin contour of buildings in mid zooms important for gray background areas */
line-color: darken(@building,10);
line-width: 0.3;
[zoom=17] {
line-width: 0.5;
}

/* Render perimeter of buildings in high zooms */
[zoom>=18] {
line-color: #b6b2af;
line-color: darken(@building,20);
line-width: 0.75;
}
}

0 comments on commit 209fe1c

Please sign in to comment.