Skip to content

Render Cemetery labels - #74

Draft
CharliePlett wants to merge 2 commits into
OpenHistoricalMap:stagingfrom
CharliePlett:staging
Draft

Render Cemetery labels#74
CharliePlett wants to merge 2 commits into
OpenHistoricalMap:stagingfrom
CharliePlett:staging

Conversation

@CharliePlett

@CharliePlett CharliePlett commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

This adds a label and an icon for landuse=cemetery. This pull request closes #1413

@CharliePlett
CharliePlett marked this pull request as draft August 6, 2026 20:11
@CharliePlett
CharliePlett marked this pull request as ready for review August 6, 2026 21:22
]
],
"layout": {
"icon-image": "cross-18",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A simple cross could get confused with a church. Some churches are located on cemetery grounds.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll think up some new icon. Maybe a simple tombstone that's different than the gravestone

]
],
"layout": {
"icon-image": "cross-18",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of duplicating the layer and negating the filter, keep just one layer but replace this property value with an expression. Use match expressions to keep it more readable:

[
  "match",
  ["get", "religion"],
  "christian",
  [
    "match",
    ["get", "denomination"],
    ["jehovahs_witness", "mormon", "iglesia_ni_cristo"],
    "",
    "cross-18"
  ],
  ""
]

You can do something similar with text-offset, but you’ll need to stuff the array in a literal expression, so it doesn’t get misinterpreted as an expression.

@CharliePlett
CharliePlett marked this pull request as draft August 7, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

landuse=cemetery doesn't render name

2 participants