fix rendering of Helsinki

Sat, 26 Sep 2020 00:54:51 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Sat, 26 Sep 2020 00:54:51 +0300
changeset 3
89b6a7562889
parent 2
8d4148a8ded4
child 4
34a84c0a427c

fix rendering of Helsinki

project.mml file | annotate | diff | comparison | revisions
style/places.mss file | annotate | diff | comparison | revisions
--- a/project.mml	Tue Sep 15 17:36:45 2020 +0300
+++ b/project.mml	Sat Sep 26 00:54:51 2020 +0300
@@ -399,9 +399,11 @@
 					way,
 					name,
 					bilingual_name,
-					place
+					place,
+					capital
 					FROM planet_osm_point
 					WHERE "place" IN ('city', 'town')
+					ORDER BY population DESC NULLS LAST
 				) AS place_major
 		properties:
 			minzoom: 6
--- a/style/places.mss	Tue Sep 15 17:36:45 2020 +0300
+++ b/style/places.mss	Sat Sep 26 00:54:51 2020 +0300
@@ -31,6 +31,12 @@
 	[zoom >= 13] {
 		text-transform: uppercase;
 	}
+	[capital = 'yes'] {
+		[zoom >= 8] {
+			text-transform: uppercase;
+		}
+		text-face-name: @place-font-bold;
+	}
 	text-halo-radius: @place-halo-radius;
 	text-halo-fill: @place-halo-fill;
 	text-clip: false;

mercurial