diff --git a/img/blue_plaque.svg b/img/blue_plaque.svg
new file mode 100644
index 00000000..ffc85b75
--- /dev/null
+++ b/img/blue_plaque.svg
@@ -0,0 +1,104 @@
+
+
+
+
diff --git a/img/plaque.svg b/img/plaque.svg
new file mode 100644
index 00000000..5aa441c3
--- /dev/null
+++ b/img/plaque.svg
@@ -0,0 +1,104 @@
+
+
+
+
diff --git a/memorial.json b/memorial.json
index bd5b9427..5c75c4b9 100644
--- a/memorial.json
+++ b/memorial.json
@@ -25,14 +25,34 @@
},
"feature": {
"pre": [
- "{% set value = tags.historic %}",
- "{% if tags.historic == 'memorial' and tags.memorial %}",
- " {% set value = tags.historic ~ ' memorial=' ~ tags.memorial %}",
- "{% elseif tags.historic == 'memorial' and attribute(tags, 'memorial:type') %}",
- " {% set value = tags.historic ~ ' memorial=' ~ attribute(tags, 'memorial:type') %}",
+ "{% set memtype = 'yes' %}",
+ "{% if tags.memorial %}",
+ " {% set memtype = tags.memorial %}",
+ "{% elseif attribute(tags, 'memorial:type') %}",
+ " {% set memtype = attribute(tags, 'memorial:type') %}",
+ "{% elseif attribute(tags, 'monument') %}",
+ " {% set memtype = attribute(tags, 'monument') %}",
+ "{% elseif attribute(tags, 'memorial_type') %}",
+ " {% set memtype = attribute(tags, 'memorial_type') %}",
+ "{% endif %}",
+ "",
+ "{% set memgroup = memtype %}",
+ "{% for value, data in const %}",
+ "{% if memtype in data.alias %}",
+ "{% set memgroup = value %}",
+ "{% endif %}",
+ "{% endfor %}"
+ ],
+ "description": [
+ "{{ tagTrans('historic', tags.historic) }}",
+ "",
+ "{% if memtype != 'yes' %}",
+ " ({{ tagTrans('memorial', memtype) }})",
"{% endif %}"
],
- "description": "{{ tagTransList('historic', value) }}",
+ "priority": [
+ "{% if tags.historic == 'monument' %}0[% else %}1{% endif %}"
+ ],
"body": [
"
",
"{% if tags.inscription %}",
@@ -73,7 +93,7 @@
"{% endif %}",
"
"
],
- "markerSign": "{{ const[value].sign|raw }}"
+ "markerSign": "{{ const[memgroup].sign|raw }}"
},
"info": [
"",
@@ -81,7 +101,7 @@
"{% if data.zoom <= map.zoom %}",
" ",
" {{ markerCircle({})|raw }} {{ data.sign|raw }} | ",
- " {{ tagTrans('historic', value) }} | ",
+ " {{ tagTrans('memorial', value) }}{% for alias in data.alias %}, {{ tagTrans('memorial', alias) }}{% endfor %} | ",
"
",
"{% endif %}",
"{% endfor %}",
@@ -94,37 +114,76 @@
"
"
],
"const": {
- "memorial": {
- "sign": "",
+ "plaque": {
+ "alias": [ "plate" ],
+ "sign": "",
+ "zoom": 14
+ },
+ "blue_plaque": {
+ "sign": "",
"zoom": 14
},
- "memorial memorial=plaque": {
+ "statue": {
+ "sign": "",
+ "zoom": 14
+ },
+ "war_memorial": {
+ "alias": [ "war_monument" ],
+ "sign": "",
+ "zoom": 14
+ },
+ "stolperstein": {
+ "sign": "",
+ "zoom": 14
+ },
+ "stone": {
"sign": "",
"zoom": 14
},
- "monument": {
- "sign": "",
- "zoom": 11
+ "bust": {
+ "alias": [ "person" ],
+ "sign": "",
+ "zoom": 14
+ },
+ "stele": {
+ "alias": [ "obelisk" ],
+ "sign": "",
+ "zoom": 14
+ },
+ "sculpture": {
+ "sign": "",
+ "zoom": 14
+ },
+ "ghost_bike": {
+ "sign": "",
+ "zoom": 14
+ },
+ "vehicle": {
+ "alias": [ "tank" ],
+ "sign": "",
+ "zoom": 14
+ },
+ "cross": {
+ "sign": "",
+ "zoom": 14
+ },
+ "flood_mark": {
+ "alias": [ "high_water_mark" ],
+ "sign": "",
+ "zoom": 14
+ },
+ "grave": {
+ "alias": [ "graveyard" ],
+ "sign": "",
+ "zoom": 14
}
},
"filter": {
"type": {
"name": "{{ trans('filter:type') }}",
+ "show_default": "true",
"type": "select",
- "values": {
- "monument": {
- "name": "{{ tagTrans('historic', 'monument') }}",
- "query": "nwr[historic=monument]"
- },
- "memorial": {
- "name": "{{ tagTrans('historic', 'memorial') }}",
- "query": "nwr[historic=memorial]"
- },
- "stolperstein": {
- "name": "{{ tagTrans('historic', 'memorial memorial=stolperstein') }}",
- "query": "(nwr[memorial=stolperstein];nwr[\"memorial:type\"=stolperstein];)"
- }
- }
+ "values": "{% for k, v in const %}{% endfor %}"
},
"conflict": {
"key": "memorial:conflict",