Skip to content

Commit

Permalink
Render old_name on farmland if name is not set.
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeoneElseOSM committed Mar 9, 2022
1 parent 099638d commit cc26021
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ This page describes changes made [here](https://github.com/SomeoneElseOSM/Someon

## As yet unreleased
Render pitch=line as a white line.
Render old_name on farmland if name is not set.

## 23/02/2022
Show flowerbeds as green.
Expand Down
12 changes: 12 additions & 0 deletions style.lua
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,18 @@ function filter_tags_generic(keyvalues, nokeys)
end
end

-- ----------------------------------------------------------------------------
-- Render old names on farmland etc.
-- ----------------------------------------------------------------------------
if ((( keyvalues["landuse"] == "farmland" ) or
( keyvalues["natural"] == "grassland" ) or
( keyvalues["natural"] == "scrub" )) and
( keyvalues["name"] == nil ) and
( keyvalues["old_name"] ~= nil )) then
keyvalues["name"] = "(" .. keyvalues["old_name"] .. ")"
keyvalues["old_name"] = nil
end

-- ----------------------------------------------------------------------------
-- Rationalise the various trail_visibility values
-- Also treat "overgrown=yes" as intermittent. A discussion on talk-gb was
Expand Down

0 comments on commit cc26021

Please sign in to comment.