-
-
Notifications
You must be signed in to change notification settings - Fork 4
Render Cemetery labels #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: staging
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6062,6 +6062,77 @@ | |
| "text-halo-width": 1 | ||
| } | ||
| }, | ||
| { | ||
| "id": "landuse_areas_labels_cemetery_christian", | ||
| "type": "symbol", | ||
| "source": "ohm", | ||
| "source-layer": "landuse_points_centroids", | ||
| "minzoom": 14, | ||
| "maxzoom": 24, | ||
| "filter": [ | ||
| "all", | ||
| ["==", ["get", "type"], "cemetery"], | ||
| ["==", ["get", "religion"], "christian"], | ||
| [ | ||
| "!", | ||
| [ | ||
| "in", | ||
| ["get", "denomination"], | ||
| ["literal", ["jehovahs_witness", "mormon", "iglesia_ni_cristo"]] | ||
| ] | ||
| ] | ||
| ], | ||
| "layout": { | ||
| "icon-image": "cross-18", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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",
["get", "religion"],
"christian",
[
"match",
["get", "denomination"],
["jehovahs_witness", "mormon", "iglesia_ni_cristo"],
"",
"cross-18"
],
""
]You can do something similar with |
||
| "text-field": ["get", "name"], | ||
| "text-size": 11, | ||
| "text-anchor": "top", | ||
| "text-offset": [0, 0.75], | ||
| "text-font": ["OpenHistorical"] | ||
| }, | ||
| "paint": { | ||
| "text-color": "rgba(95, 107, 71, 1)", | ||
| "text-halo-color": "rgba(245, 239, 239, 1)", | ||
| "text-halo-width": 1 | ||
| } | ||
| }, | ||
| { | ||
| "id": "landuse_areas_labels_cemetery", | ||
| "type": "symbol", | ||
| "source": "ohm", | ||
| "source-layer": "landuse_points_centroids", | ||
| "minzoom": 14, | ||
| "maxzoom": 24, | ||
| "filter": [ | ||
| "all", | ||
| ["==", ["get", "type"], "cemetery"], | ||
| [ | ||
| "!", | ||
| [ | ||
| "all", | ||
| ["==", ["get", "religion"], "christian"], | ||
| [ | ||
| "!", | ||
| [ | ||
| "in", | ||
| ["get", "denomination"], | ||
| ["literal", ["jehovahs_witness", "mormon", "iglesia_ni_cristo"]] | ||
| ] | ||
| ] | ||
| ] | ||
| ] | ||
| ], | ||
| "layout": { | ||
| "text-field": ["get", "name"], | ||
| "text-size": 11, | ||
| "text-font": ["OpenHistorical"] | ||
| }, | ||
| "paint": { | ||
| "text-color": "rgba(95, 107, 71, 1)", | ||
| "text-halo-color": "rgba(245, 239, 239, 1)", | ||
| "text-halo-width": 1 | ||
| } | ||
| }, | ||
| { | ||
| "id": "landuse_areas_labels_school", | ||
| "type": "symbol", | ||
|
|
||
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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