Skip to content

Commit 286d098

Browse files
committed
Remove the catchall on road-text
This used to pick up lots of non-rendered features, as well as a few others that will need to be re-instated elsewhere (e.g. admin boundaries).
1 parent c42b5ff commit 286d098

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

project.mml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,7 @@
14801480
],
14811481
"Datasource": {
14821482
"type": "postgis",
1483-
"table": " (select way,highway,name\n from planet_osm_line\n where waterway IS NULL\n and leisure IS NULL\n and landuse IS NULL\n and name is not null\n ) as roads_text_name",
1483+
"table": " (select way, highway, name\n from planet_osm_line\n where highway in ('motorway','motorway_link','trunk','trunk_link','primary','primary_link','secondary','secondary_link','tertiary','tertiary_link','residential','unclassified','road','service','pedestrian','raceway','living_street', 'construction') \n and name is not null\n ) as roads_text_name",
14841484
"extent": "-20037508,-19929239,20037508,19929239",
14851485
"key_field": "",
14861486
"geometry_field": "way",

roads.mss

-13
Original file line numberDiff line numberDiff line change
@@ -2390,19 +2390,6 @@
23902390
text-spacing: 400;
23912391
}
23922392
}
2393-
/* Other things, not just roads */
2394-
[zoom >= 15] {
2395-
text-name: "[name]";
2396-
text-size: 9;
2397-
text-fill: #000;
2398-
text-clip: false;
2399-
text-placement: line;
2400-
text-face-name: @book-fonts;
2401-
text-halo-radius: 1;
2402-
}
2403-
[zoom >= 17] {
2404-
text-size: 11;
2405-
}
24062393
}
24072394

24082395
.directions {

0 commit comments

Comments
 (0)