Add memorial theme, some fixes to benches and artwork to support memorial theme

This commit is contained in:
Pieter Vander Vennet 2024-02-28 02:04:51 +01:00
parent eb47c4d5b9
commit 33d450047d
9 changed files with 343 additions and 64 deletions

View file

@ -1,4 +1,14 @@
[
{
"path": "memorial.svg",
"license": "CC0-1.0",
"authors": [
"OSM-Carto"
],
"sources": [
"https://wiki.openstreetmap.org/wiki/File:Memorial-16.svg"
]
},
{
"path": "plaque.svg",
"license": "CC0-1.0",

View file

@ -2,15 +2,34 @@
"id": "memorial",
"description": "Layer showing memorial plaques, based upon a unofficial theme. Can be expanded to have multiple types of memorials later on",
"source": {
"osmTags": "memorial=plaque"
"osmTags": {
"or": [
"memorial~*",
"historic=memorial"
]
}
},
"name": {
"en": "Memorials"
},
"title": {
"render": {
"en": "Memorial plaque",
"de": "Gedenktafel",
"ca": "Placa commemorativa",
"cs": "Pamětní deska"
}
"cs": "Pamětní deska",
"de": "Gedenktafel"
},
"mappings": [
{
"if": "memorial=plaque",
"then": {
"en": "Memorial plaque",
"de": "Gedenktafel",
"ca": "Placa commemorativa",
"cs": "Pamětní deska"
}
}
]
},
"pointRendering": [
{
@ -24,33 +43,169 @@
"color": "white"
},
{
"icon": "./assets/layers/memorial/plaque.svg"
"icon": {
"render": "./assets/layers/memorial/memorial.svg",
"mappings": [
{
"if": "memorial=plaque",
"then": "./assets/layers/memorial/plaque.svg"
},
{
"if": {
"or": [
"memorial=bench",
"amenity=bench"
]
},
"then": "./assets/layers/bench/bench.svg"
}
]
}
}
]
}
],
"lineRendering": [],
"tagRenderings": [
"images",
{
"id": "memorial-type",
"question": {
"en": "What type of memorial is this?"
},
"mappings": [
{
"if": "memorial=statue",
"then": {
"en": "This is a statue"
},
"addExtraTags": [
"tourism=artwork",
"artwork=statue"
]
},
{
"if": "memorial=plaque",
"then": {
"en": "This is a plaque"
}
},
{
"if": "memorial=bench",
"then": {
"en": "This is a commemorative bench"
},
"addExtraTags": [
"amenity=bench"
]
},
{
"if": "memorial=ghost_bike",
"then": {
"en": "This is a ghost bike - a bicycle painted white to remember a cyclist whom deceased because of a car crash"
}
}
]
},
{
"id": "inscription",
"question": {
"en": "What is the inscription of this plaque?",
"de": "Wie lautet die Inschrift auf dieser Gedenktafel?",
"ca": "Quina és la inscripció d'aquesta placa?",
"cs": "Jaký je nápis na této desce?"
"cs": "Jaký je nápis na této desce?",
"de": "Wie lautet die Inschrift auf dieser Gedenktafel?"
},
"#:condition": "Benches have a separate inscription question",
"condition": "memorial!=bench",
"render": {
"en": "The inscription on this plaque reads: <p><i>{inscription}<i></p>",
"de": "Die Inschrift auf dieser Gedenktafel lautet: <p><i>{inscription}<i></p>",
"ca": "La inscripció d'aquesta placa diu: <p><i>{inscription}<i></p>",
"cs": "Nápis na této desce zní: <p><i>{inscription}<i></p>"
"cs": "Nápis na této desce zní: <p><i>{inscription}<i></p>",
"de": "Die Inschrift auf dieser Gedenktafel lautet: <p><i>{inscription}<i></p>"
},
"freeform": {
"key": "inscription",
"type": "text"
},
"mappings": [
{
"if": "not:inscription=yes",
"then": {
"en": "This memorial does not have an inscription"
},
"addExtraTags": [
"inscription="
]
}
]
},
{
"id": "wikidata",
"freeform": {
"key": "subject:wikidata",
"type": "wikidata",
"helperArgs": [
"subject;memorial:conflict"
]
},
"question": {
"en": "What is the Wikipedia page about the person or event that is remembered here?"
},
"questionHint": {
"en": "If the person or event does not have a Wikipedia page or Wikidata entity, skip this question."
},
"render": {
"special": {
"type": "wikipedia",
"keyToShowWikipediaFor": "subject:wikidata"
},
"before": {
"en": "<h3>Wikipedia page about the remembered event or person</h3>"
}
}
},
{
"question": {
"en": "When was this memorial installed?"
},
"render": {
"nl": "Geplaatst op {start_date}",
"en": "Placed on {start_date}",
"it": "Piazzata in data {start_date}",
"fr": "Placé le {start_date}",
"ru": "Установлен {start_date}",
"de": "Aufgestellt am {start_date}",
"ca": "Col·locat el {start_date}",
"cs": "Umístěno {start_date}"
},
"freeform": {
"key": "start_date",
"type": "date"
},
"id": "start_date"
},
{
"builtin": "bench.bench-questions",
"override": {
"condition": {
"+and": [
"amenity=bench"
]
}
}
}
],
"presets": [
{
"title": {
"en": "a memorial"
},
"tags": [
"historic=memorial"
]
}
],
"minzoom": 9,
"deletion": true,
"allowMove": {
"enableImproveAccuracy": true,

View file

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
version="1.1"
width="512"
height="512"
viewBox="0 0 512 512"
id="svg2"
sodipodi:docname="memorial.svg"
inkscape:version="1.3.2 (1:1.3.2+202311252150+091e20ef0f)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#999999"
borderopacity="1"
inkscape:showpageshadow="2"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="1.0567048"
inkscape:cx="241.78938"
inkscape:cy="304.2477"
inkscape:window-width="1920"
inkscape:window-height="995"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg2" />
<metadata
id="metadata8">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs6" />
<rect
width="16"
height="16"
x="36.960442"
y="-9.9483566"
id="canvas"
style="visibility:hidden;fill:none;stroke:none" />
<path
d="M 172.78315,0 C 133.4374,0 94.091663,39.34576 94.091663,78.691505 V 393.45745 H 408.85762 V 78.691505 C 408.85762,39.34576 369.51187,0 330.16613,0 Z m 39.34574,78.691505 h 78.69149 V 118.03725 H 212.12889 Z M 133.4374,157.38299 h 236.07447 v 39.34575 H 133.4374 Z m 39.34575,78.69149 h 157.38298 v 39.34575 H 172.78315 Z M 54.745919,432.80319 15.400174,472.14894 v 39.34574 H 487.54911 v -39.34574 l -39.34575,-39.34575 z"
id="memorial"
style="fill:#734a08;fill-opacity:1;stroke:none;stroke-width:39.3457" />
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View file

@ -0,0 +1,2 @@
SPDX-FileCopyrightText: OSM-Carto
SPDX-License-Identifier: CC0