From 5f76d30f5dc57020b4ba4e683c248ddcdbc67dd2 Mon Sep 17 00:00:00 2001 From: Math1985 Date: Sun, 4 May 2014 00:31:25 +0100 Subject: [PATCH] Render cycleway areas This resolves 3373 on trac. --- project.mml | 4 ++-- roads.mss | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/project.mml b/project.mml index 7082f69d30..74e3cd9d81 100644 --- a/project.mml +++ b/project.mml @@ -653,7 +653,7 @@ ], "Datasource": { "type": "postgis", - "table": "(select way,coalesce(('highway_' || (case when highway in ('residential','unclassified','pedestrian','service','footway','track','path','platform') then highway else null end)), ('railway_' || (case when railway in ('platform') then railway else null end))) as feature from planet_osm_polygon\n where highway in ('residential','unclassified','pedestrian','service','footway','track','path','platform')\n or railway in ('platform')\n order by z_order,way_area desc) as highway_area_casing", + "table": "(select way,coalesce(('highway_' || (case when highway in ('residential','unclassified','pedestrian','service','footway','cycleway','track','path','platform') then 'cycleway' else null end)), ('railway_' || (case when railway in ('platform') then railway else null end))) as feature from planet_osm_polygon\n where highway in ('residential','unclassified','pedestrian','service','footway','track','path','platform')\n or railway in ('platform')\n order by z_order,way_area desc) as highway_area_casing", "extent": "-20037508,-19929239,20037508,19929239", "key_field": "", "geometry_field": "way", @@ -698,7 +698,7 @@ ], "Datasource": { "type": "postgis", - "table": "(select way,coalesce(('highway_' || (case when highway in ('residential','unclassified','pedestrian','service','footway','living_street','track','path','platform','services') then highway else null end)), ('railway_' || (case when railway in ('platform') then railway else null end)), (('aeroway_' || case when aeroway in ('runway','taxiway','helipad') then aeroway else null end))) as feature from planet_osm_polygon\n where highway in ('residential','unclassified','pedestrian','service','footway','living_street','track','path','platform','services')\n or railway in ('platform')\n or aeroway in ('runway','taxiway','helipad')\n order by z_order,way_area desc) as highway_area_fill", + "table": "(select way,coalesce(('highway_' || (case when highway in ('residential','unclassified','pedestrian','service','footway','cycleway','living_street','track','path','platform','services') then 'cycleway' else null end)), ('railway_' || (case when railway in ('platform') then railway else null end)), (('aeroway_' || case when aeroway in ('runway','taxiway','helipad') then aeroway else null end))) as feature from planet_osm_polygon\n where highway in ('residential','unclassified','pedestrian','service','footway','living_street','track','path','platform','services')\n or railway in ('platform')\n or aeroway in ('runway','taxiway','helipad')\n order by z_order,way_area desc) as highway_area_fill", "extent": "-20037508,-19929239,20037508,19929239", "key_field": "", "geometry_field": "way", diff --git a/roads.mss b/roads.mss index 9011b0cab2..0a8ca1a0f8 100644 --- a/roads.mss +++ b/roads.mss @@ -1762,6 +1762,7 @@ [feature = 'highway_pedestrian'], [feature = 'highway_service'], [feature = 'highway_footway'], + [feature = 'highway_cycleway'], [feature = 'highway_path'] { [zoom >= 14] { line-color: grey; @@ -1800,6 +1801,7 @@ [feature = 'highway_pedestrian'], [feature = 'highway_footway'], + [feature = 'highway_cycleway'], [feature = 'highway_path'] { [zoom >= 14] { polygon-fill: #ededed;