Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cope with airports with iata codes but no names.
  • Loading branch information
SomeoneElseOSM committed Dec 14, 2018
1 parent 5dc6072 commit cf99c4e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Expand Up @@ -5,6 +5,7 @@ This page describes changes made [here](https://github.com/SomeoneElseOSM/Someon
--->
## As yet unreleased
Added icons for ambulance station, mountain rescue and mountain rescue box.
Cope with airports with iata codes but no names.

<!---
On Hetzner only
Expand Down
7 changes: 6 additions & 1 deletion style.lua
Expand Up @@ -4387,7 +4387,12 @@ function filter_tags_generic(keyvalues, nokeys)
( keyvalues["aerodrome:type"] ~= "military" ) and
( keyvalues["military"] == nil )) then
keyvalues["aeroway"] = "large_aerodrome"
keyvalues["name"] = keyvalues["name"] .. " (" .. keyvalues["iata"] .. ")"

if ( keyvalues["name"] == nil ) then
keyvalues["name"] = keyvalues["iata"]
else
keyvalues["name"] = keyvalues["name"] .. " (" .. keyvalues["iata"] .. ")"
end
end

-- ----------------------------------------------------------------------------
Expand Down

0 comments on commit cf99c4e

Please sign in to comment.