From 157858b7f5312bf6660cecb40814e3ceaab35e07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ko=C4=87?= Date: Wed, 5 Jul 2017 23:41:00 +0200 Subject: [PATCH] Moving smaller airports to higher zoom levels --- amenity-points.mss | 6 ++++-- project.mml | 10 ++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/amenity-points.mss b/amenity-points.mss index 85798a9b52..29e1c26c89 100644 --- a/amenity-points.mss +++ b/amenity-points.mss @@ -890,7 +890,8 @@ marker-fill: @airtransport; } - [feature = 'aeroway_aerodrome'][zoom >= 10][zoom < 14] { + [feature = 'aeroway_aerodrome']['access' != 'private']['icao' != null]['iata' != null][zoom >= 10][zoom < 14], + [feature = 'aeroway_aerodrome'][zoom >= 11][zoom < 14] { marker-file: url('symbols/aerodrome.12.svg'); marker-placement: interior; marker-clip: false; @@ -2040,7 +2041,8 @@ text-wrap-width: @standard-wrap-width; } - [feature = 'aeroway_aerodrome'][zoom >= 10][zoom < 14] { + [feature = 'aeroway_aerodrome']['access' != 'private']['icao' != null]['iata' != null][zoom >= 10][zoom < 14], + [feature = 'aeroway_aerodrome'][zoom >= 11][zoom < 14] { text-name: "[name]"; text-size: @standard-text-size; text-fill: darken(@airtransport, 15%); diff --git a/project.mml b/project.mml index deb63a09f8..5459bbfa3f 100644 --- a/project.mml +++ b/project.mml @@ -1581,6 +1581,8 @@ Layer: tags->'denomination' as denomination, tags->'generator:source' as "generator:source", tags->'power_source' as power_source, + tags->'icao' as icao, + tags->'iata' as iata, CASE WHEN shop IN ('supermarket', 'bag', 'bakery', 'beauty', 'books', 'butcher', 'clothes', 'computer', 'confectionery', 'fashion', 'convenience', 'department_store', 'doityourself', 'hardware', 'fishmonger', 'florist', 'garden_centre', 'hairdresser', 'hifi', 'ice_cream', 'car', 'car_repair', 'bicycle', 'mall', 'pet', @@ -1661,6 +1663,8 @@ Layer: tags->'denomination' as denomination, tags->'generator:source' as "generator:source", tags->'power_source' as power_source, + tags->'icao' as icao, + tags->'iata' as iata, CASE WHEN shop IN ('supermarket', 'bag', 'bakery', 'beauty', 'books', 'butcher', 'clothes', 'computer', 'confectionery', 'fashion', 'convenience', 'department_store', 'doityourself', 'hardware', 'fishmonger', 'florist', 'garden_centre', 'hairdresser', 'hifi', 'ice_cream', 'car', 'car_repair', 'bicycle', 'mall', 'pet', @@ -2038,6 +2042,8 @@ Layer: access, name, tags->'operator' as operator, + tags->'icao' as icao, + tags->'iata' as iata, ref, way_area, CASE WHEN building = 'no' OR building IS NULL THEN 'no' ELSE 'yes' END AS is_building @@ -2114,6 +2120,8 @@ Layer: ELSE NULL END AS score, operator, + icao, + iata, ref, way_area, is_building @@ -2175,6 +2183,8 @@ Layer: END AS elevation, "natural", tags->'operator' as operator, + tags->'icao' as icao, + tags->'iata' as iata, ref, NULL AS way_area, CASE WHEN building = 'no' OR building IS NULL THEN 'no' ELSE 'yes' END AS is_building