Skip to content

Commit

Permalink
Merge pull request #2674 from kocio-pl/small-aerodromes
Browse files Browse the repository at this point in the history
Moving smaller airports to higher zoom levels
  • Loading branch information
kocio-pl authored Jul 30, 2017
2 parents 046bc47 + 157858b commit 5096a9e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 4 additions & 2 deletions amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,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;
Expand Down Expand Up @@ -2045,7 +2046,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%);
Expand Down
10 changes: 10 additions & 0 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -2114,6 +2120,8 @@ Layer:
ELSE NULL
END AS score,
operator,
icao,
iata,
ref,
way_area,
is_building
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5096a9e

Please sign in to comment.