diff --git a/admin.mss b/admin.mss index 1fad3dc852..85d8b5d878 100644 --- a/admin.mss +++ b/admin.mss @@ -210,7 +210,11 @@ overlapping borders correctly. text-fill: @admin-boundaries; text-halo-radius: @standard-halo-radius; text-halo-fill: @standard-halo-fill; + text-largest-bbox-only: false; text-placement: line; + text-spacing: 750; + text-repeat-distance: 250; + text-margin: 10; text-clip: true; text-vertical-alignment: middle; text-dy: -10; @@ -222,7 +226,11 @@ overlapping borders correctly. text-fill: green; text-halo-radius: @standard-halo-radius; text-halo-fill: @standard-halo-fill; + text-largest-bbox-only: false; text-placement: line; + text-spacing: 750; + text-repeat-distance: 250; + text-margin: 10; text-clip: true; text-vertical-alignment: middle; text-dy: -10; diff --git a/project.mml b/project.mml index 344d861980..2dd30add6e 100644 --- a/project.mml +++ b/project.mml @@ -869,6 +869,7 @@ Layer: ELSE 'no' END AS link, COALESCE(layer,0) AS layernotnull, + osm_id, z_order FROM planet_osm_line WHERE (tunnel IS NULL OR NOT tunnel IN ('yes', 'building_passage')) @@ -897,6 +898,7 @@ Layer: ELSE 'INT-normal'::text END AS service, 'no' AS link, COALESCE(layer,0) AS layernotnull, + osm_id, z_order FROM planet_osm_line WHERE (tunnel IS NULL OR NOT tunnel IN ('yes', 'building_passage')) @@ -910,7 +912,8 @@ Layer: CASE WHEN substring(feature for 8) = 'railway_' THEN 2 ELSE 1 END, CASE WHEN feature IN ('railway_INT-preserved-ssy', 'railway_INT-spur-siding-yard', 'railway_tram-service') THEN 0 ELSE 1 END, CASE WHEN access IN ('no', 'private') THEN 0 WHEN access IN ('destination') THEN 1 ELSE 2 END, - CASE WHEN int_surface IN ('unpaved') THEN 0 ELSE 2 END + CASE WHEN int_surface IN ('unpaved') THEN 0 ELSE 2 END, + osm_id ) AS roads_fill properties: minzoom: 10 @@ -1885,12 +1888,12 @@ Layer: osm_id, way, COALESCE( - CASE WHEN highway IN ('motorway', 'trunk', 'primary', 'secondary', 'tertiary', 'unclassified', 'residential') THEN highway ELSE NULL END, + CASE WHEN highway IN ('motorway', 'trunk', 'primary', 'secondary', 'tertiary', 'unclassified', 'residential', 'track') THEN highway ELSE NULL END, CASE WHEN aeroway IN ('runway', 'taxiway') THEN aeroway ELSE NULL END ) AS highway, string_to_array(ref, ';') AS refs FROM planet_osm_line - WHERE (highway IN ('motorway', 'trunk', 'primary', 'secondary', 'tertiary', 'unclassified', 'residential') OR aeroway IN ('runway', 'taxiway')) + WHERE (highway IN ('motorway', 'trunk', 'primary', 'secondary', 'tertiary', 'unclassified', 'residential', 'track') OR aeroway IN ('runway', 'taxiway')) AND ref IS NOT NULL ) AS p) AS q WHERE height <= 4 AND width <= 11 @@ -1903,6 +1906,7 @@ Layer: WHEN highway = 'tertiary' THEN 34 WHEN highway = 'unclassified' THEN 33 WHEN highway = 'residential' THEN 32 + WHEN highway = 'track' THEN 30 WHEN highway = 'runway' THEN 6 WHEN highway = 'taxiway' THEN 5 ELSE NULL diff --git a/roads.mss b/roads.mss index 29c5f263c4..ec355db06a 100644 --- a/roads.mss +++ b/roads.mss @@ -3028,6 +3028,34 @@ tertiary is rendered from z10 and is not included in osm_planet_roads. */ } } + [highway = 'track'] { + [zoom >= 15] { + text-name: "[refs]"; + text-size: 8; + text-dy: 5; + + [zoom >= 16] { + text-size: 9; + text-dy: 7; + } + [zoom >= 17] { + text-size: 11; + text-dy: 9; + } + + text-clip: false; + text-fill: #222; + text-face-name: @book-fonts; + text-halo-radius: @standard-halo-radius; + text-halo-fill: @standard-halo-fill; + text-margin: 10; + text-placement: line; + text-spacing: 760; + text-repeat-distance: @major-highway-text-repeat-distance; + text-vertical-alignment: middle; + } + } + [highway = 'runway'], [highway = 'taxiway'] { [zoom >= 15] {