mapcomplete/assets/layers/note/note.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

476 lines
17 KiB
JSON
Raw Normal View History

2022-01-08 22:11:24 +01:00
{
"id": "note",
"name": {
2022-04-03 03:17:10 +02:00
"en": "OpenStreetMap notes",
2022-04-09 17:35:21 +02:00
"nl": "OpenStreetMap Notes",
2022-06-07 03:39:45 +02:00
"de": "OpenStreetMap-Hinweise",
2023-09-24 00:46:10 +02:00
"es": "Notas de OpenStreetMap",
2023-10-16 13:38:53 +02:00
"ca": "Notes d'OpenStreetMap",
2024-07-09 13:42:08 +02:00
"cs": "Poznámky OpenStreetMap",
"fr": "Notes OpenStreetMap"
2022-01-08 22:11:24 +01:00
},
"description": "This layer shows notes on OpenStreetMap. Having this layer in your theme will trigger the 'add new note' functionality in the 'addNewPoint'-popup (or if your theme has no presets, it'll enable adding notes)",
2022-01-08 22:11:24 +01:00
"source": {
2023-05-06 12:19:35 +02:00
"osmTags": "date_created~*",
"geoJson": "https://api.openstreetmap.org/api/0.6/notes.json?limit=10000&closed=7&bbox={x_min},{y_min},{x_max},{y_max}",
2024-09-13 12:59:12 +02:00
"geoJsonZoomLevel": 10
2022-01-08 22:11:24 +01:00
},
"calculatedTags": [
"_total_comments:=get(feat)('comments').length",
"_first_comment:=get(feat)('comments')[0].text",
2024-09-13 02:25:06 +02:00
"_all_comments:=get(feat)('comments').map(c => c.text ?? '').join('\\n')",
"_all_usernames:=get(feat)('comments').map(c => c.user ?? 'Anonymous').join('\\n')",
"_opened_by_anonymous_user:=get(feat)('comments')[0].user === undefined",
"_first_user:=get(feat)('comments')[0].user",
"_last_user:=(() => {const comms = get(feat)('comments'); return comms[comms.length - 1].user})()",
2024-09-13 02:25:06 +02:00
"_last_change_date:=(() => {const comms = get(feat)('comments'); return comms[comms.length - 1].date})()",
"_first_user_id:=get(feat)('comments')[0].uid",
"_is_import_note:=(() => {const lines = feat.properties['_first_comment'].split('\\n'); const matchesMapCompleteURL = lines.map(l => l.match(\".*https://mapcomplete.\\(osm.be|org\\)/\\([a-zA-Z_-]+\\)\\(.html\\).*#import\")); const matchedIndexes = matchesMapCompleteURL.map((doesMatch, i) => [doesMatch !== null, i]).filter(v => v[0]).map(v => v[1]); return matchedIndexes[0] })()"
],
2024-09-13 02:25:06 +02:00
"minzoom": 7,
2022-01-08 22:11:24 +01:00
"title": {
"render": {
2022-04-03 03:17:10 +02:00
"en": "Note",
2022-04-13 18:42:40 +02:00
"nl": "Note",
2022-04-18 01:47:54 +02:00
"ca": "Nota",
2022-06-19 22:13:38 +02:00
"de": "Notiz",
2022-11-02 13:47:34 +01:00
"es": "Nota",
2023-09-16 18:52:42 +02:00
"pa_PK": "نوٹ",
2023-10-16 13:38:53 +02:00
"pl": "Notatka",
2024-07-09 13:42:08 +02:00
"cs": "Poznámka",
"fr": "Note"
2022-01-08 22:11:24 +01:00
},
"mappings": [
{
"if": "closed_at~*",
"then": {
2022-04-03 03:17:10 +02:00
"en": "Closed note",
2022-04-18 01:47:54 +02:00
"nl": "Gesloten Note",
2022-06-19 22:13:38 +02:00
"de": "Geschlossene Notiz",
2023-09-16 18:52:42 +02:00
"es": "Nota cerrada",
2023-09-24 00:46:10 +02:00
"pl": "Zamknięta notatka",
2023-10-16 13:38:53 +02:00
"ca": "Nota tancada",
2024-07-09 13:42:08 +02:00
"cs": "Uzavřená poznámka",
"fr": "Note fermée"
2022-01-08 22:11:24 +01:00
}
}
]
},
"titleIcons": [
{
2023-12-26 22:30:27 +01:00
"ariaLabel": {
"en": "See on OpenStreetMap.org",
2024-01-19 01:21:18 +01:00
"nl": "Bekijk op OpenStreetMap.org",
2024-06-24 13:11:35 +02:00
"de": "Auf OpenStreetMap.org ansehen",
2024-07-09 13:42:08 +02:00
"da": "Se på OpenStreetMap.org",
"fr": "Voir sur OpenStreetMap.org"
2023-12-26 22:30:27 +01:00
},
2022-01-08 22:11:24 +01:00
"render": "<a href='https://openstreetmap.org/note/{id}' target='_blank'><img src='./assets/svg/osm-logo-us.svg'></a>"
}
],
"pointRendering": [
{
"location": [
"point",
"centroid"
],
"marker": [
{
"icon": {
2023-11-19 05:21:46 +01:00
"render": "./assets/svg/note.svg",
"mappings": [
{
"if": "closed_at~*",
2023-11-19 05:21:46 +01:00
"then": "./assets/svg/resolved.svg"
}
]
}
}
],
"iconSize": "40,40",
"iconBadges": [
{
"if": "_total_comments>1",
2023-11-19 05:21:46 +01:00
"then": "circle:white;./assets/svg/speech_bubble.svg"
},
{
"if": "_is_import_note~*",
2023-11-19 05:21:46 +01:00
"then": "./assets/svg/addSmall.svg"
}
],
"anchor": "bottom"
}
],
"lineRendering": [],
2022-01-08 22:11:24 +01:00
"tagRenderings": [
{
"id": "conversation",
2023-12-26 22:30:27 +01:00
"classes": "p-0",
2022-01-08 22:11:24 +01:00
"render": "{visualize_note_comments()}"
},
{
"id": "add_image",
"render": "{add_image_to_note()}"
},
{
"id": "comment",
"render": "{add_note_comment()}"
},
{
"id": "nearby-images",
"render": {
"before": {
"en": "<h3>Nearby images</h3>The pictures below are nearby geotagged images and might be helpful to handle this note.",
2022-06-07 03:39:45 +02:00
"de": "<h3>Bilder aus der Nähe</h3>Die folgenden Bilder sind mit Geotags versehene Bilder aus der Nähe und könnten für die Bearbeitung dieser Notiz hilfreich sein.",
2022-06-22 18:56:02 +02:00
"es": "<h3>Imágenes cercanas</h3>Las imágenes de debajo son imágenes geoetiquetadas cercanas y pueden ser útiles para encargarse de esta nota.",
2023-09-24 00:46:10 +02:00
"nl": "<h3>Afbeeldingen in de buurt</h3>Onderstaande afbeeldingen zijn afbeeldingen met geo-referentie en die in de buurt genomen zijn. Mogelijks zijn ze nuttig om deze kaartnota af te handelen.",
2023-10-16 13:38:53 +02:00
"ca": "<h3>Imatges properes</h3>Les imatges de sota són imatges geoetiquetades properes i poden ser útils per a encarregar-se d'aquesta nota.",
2024-07-09 13:42:08 +02:00
"cs": "<h3>Obrázky v okolí</h3>Obrázky níže jsou obrázky s geografickými značkami v okolí a mohou vám pomoci s touto poznámkou.",
"fr": "<h3>Images à proximité</h3>Les images suivantes sont dans les environs de cette note et pourraient aider à sa résolution."
},
"special": {
"type": "nearby_images",
"mode": "open"
}
}
},
2022-01-08 22:11:24 +01:00
{
"id": "report-contributor",
"render": {
2023-05-23 23:09:40 +02:00
"en": "<a href='https://www.openstreetmap.org/reports/new?reportable_id={_first_user_id}&reportable_type=User' target='_blank' class='subtle'>Report {_first_user} for spam or inappropriate messages</a>",
"nl": "<a href='https://www.openstreetmap.org/reports/new?reportable_id={_first_user_id}&reportable_type=User' target='_blank' class='subtle'>{_first_user} melden voor spam of ongepaste opmerkingen</a>",
2023-06-01 23:47:45 +02:00
"de": "<a href='https://www.openstreetmap.org/reports/new?reportable_id={_first_user_id}&reportable_type=User' target='_blank' class='subtle' {_first_user} für Spam oder unangemessene Nachrichten melden</a>",
2023-11-23 15:47:16 +01:00
"es": "<a href='https://www.openstreetmap.org/reports/new?reportable_id={_first_user_id}&reportable_type=User' target='_blank' class='subtle'>Reportar {_first_user} por spam o mensajes inapropiados</a>",
2023-10-30 13:44:27 +01:00
"ca": "<a href='https://www.openstreetmap.org/reports/new?reportable_id={_first_user_id}&reportable_type=User' target='_blank' class='subtle'>Reporta {_first_user} per spam o missatges inapropiats</a>",
2024-07-09 13:42:08 +02:00
"cs": "<a href='https://www.openstreetmap.org/reports/new?reportable_id={_first_user_id}&reportable_type=User' target='_blank' class='subtle'>Nahlásit uživateli {_first_user} spam nebo nevhodné zprávy</ a>",
"fr": "<a href='https://www.openstreetmap.org/reports/new?reportable_id={_first_user_id}&reportable_type=User' target='_blank' class='subtle'>Signaler {_first_user} pour du spam ou des messages inapropriés</a>"
2022-01-08 22:11:24 +01:00
},
"condition": "_opened_by_anonymous_user=false"
},
{
"id": "report-note",
"render": {
2022-04-03 03:17:10 +02:00
"en": "<a href='https://www.openstreetmap.org/reports/new?reportable_id={id}&reportable_type=Note' target='_blank'>Report this note as spam or inappropriate</a>",
2022-05-11 18:39:21 +02:00
"nl": "<a href='https://www.openstreetmap.org/reports/new?reportable_id={id}&reportable_type=Note' target='_blank'>Deze note melden als spam of ongepast</a>",
2022-06-19 22:13:38 +02:00
"de": "<a href='https://www.openstreetmap.org/reports/new?reportable_id={id}&reportable_type=Note' target='_blank'>Notiz als Spam oder unangemessen melden</a>",
2023-09-24 00:46:10 +02:00
"es": "<a href='https://www.openstreetmap.org/reports/new?reportable_id={id}&reportable_type=Note' target='_blank'>Reporta esta nota como spam o inapropiada</a>",
2023-10-30 13:44:27 +01:00
"ca": "<a href='https://www.openstreetmap.org/reports/new?reportable_id={id}&reportable_type=Note' target='_blank'>Reporta aquesta nota com spam o inapropiada</a>",
2024-07-09 13:42:08 +02:00
"cs": "<a href='https://www.openstreetmap.org/reports/new?reportable_id={id}&reportable_type=Note' target='_blank'>Nahlásit tuto poznámku jako spam nebo nevhodnou</a>",
"fr": "<a href='https://www.openstreetmap.org/reports/new?reportable_id={id}&reportable_type=Note' target='_blank'>Signaler cette note comme spam ou contenu inapproprié</a>"
2022-01-08 22:11:24 +01:00
}
}
],
"filter": [
2024-09-13 02:25:06 +02:00
{
"id": "anonymous",
"options": [
{
"osmTags": "_opened_by_anonymous_user=true",
"question": {
"en": "Only show notes opened by an anonymous contributor",
"nl": "Toon enkel de Notes geopend door een anonieme bijdrager",
"de": "Nur Notizen anzeigen, die anonym erstellt wurden",
"es": "Solo mostrar las notas abiertas por contributores anómimos",
"ca": "Sols mostrar les notes obertes per contribuïdors anònims",
"cs": "Zobrazovat pouze poznámky otevřené anonymním přispěvatelem",
"fr": "Montrer uniquement les notes ouvertes par un contributeur anonyme"
}
}
]
},
{
"id": "is_open",
"options": [
{
"osmTags": "closed_at=",
"question": {
"en": "Only show open notes",
"nl": "Toon enkel open Notes",
"de": "Nur offene Notizen anzeigen",
"es": "Solo mostrar las notas abiertas",
"ca": "Sols mostra les notes obertes",
"cs": "Zobrazit pouze otevřené poznámky",
"fr": "Montrer uniquement les notes ouvertes"
}
}
]
},
{
"id": "no_imports",
"options": [
{
"question": {
"en": "All Notes",
"nl": "Alle Notes",
"de": "Alle Notizen",
"es": "Todas las notas",
"ca": "Totes les notes",
"cs": "Všechny poznámky",
"fr": "Toutes les notes"
}
},
{
"osmTags": "_is_import_note=",
"question": {
"en": "Hide import notes",
"nl": "Verberg import Notes",
"de": "Importnotizen ausblenden",
"es": "Ocultar las notas de importación",
"ca": "Oculta les notes d'importació",
"cs": "Skrýt poznámky k importu"
}
},
{
"osmTags": "_is_import_note~*",
"question": {
"en": "Show only import Notes",
"nl": "Toon enkel import Notes",
"de": "Nur Importnotizen anzeigen",
"es": "Solo mostrar las notas de importación",
"ca": "Mostrar només les notes d'importació",
"cs": "Zobrazit pouze poznámky k importu"
}
}
]
},
2022-01-08 22:11:24 +01:00
{
"id": "search",
"options": [
{
"osmTags": "_first_comment~i~.*{search}.*",
2022-01-08 22:11:24 +01:00
"fields": [
{
"name": "search"
}
],
"question": {
2022-04-03 03:17:10 +02:00
"en": "Should mention {search} in the first comment",
2022-04-18 01:47:54 +02:00
"nl": "Moet in de eerste opmerking \"{search}\" bevatten",
2022-06-07 03:39:45 +02:00
"de": "Sollte {search} im ersten Kommentar erwähnen",
2023-09-28 16:56:25 +02:00
"es": "Debe mencionar {search} en el primer comentario",
2023-10-16 13:38:53 +02:00
"ca": "Has de mencionar {search} en el primer comentari",
"cs": "Měl by se zmínit {search} v prvním komentáři"
2022-01-08 22:11:24 +01:00
}
}
]
},
2024-09-13 02:25:06 +02:00
{
"id": "search_any",
"options": [
{
"osmTags": "_all_comments~i~.*{search}.*",
"fields": [
{
"name": "search"
}
],
"question": {
"en": "Should mention {search} in any comment"
}
}
]
},
2022-01-08 22:11:24 +01:00
{
"id": "not",
"options": [
{
"osmTags": "_first_comment!~i~.*{search}.*",
2022-01-08 22:11:24 +01:00
"fields": [
{
"name": "search"
}
],
"question": {
2022-04-03 03:17:10 +02:00
"en": "Should <b>not</b> mention {search} in the first comment",
2022-04-18 01:47:54 +02:00
"nl": "Mag in de eerste opmerking <b>niet</b> \"{search}\" bevatten",
2022-06-07 03:39:45 +02:00
"de": "Sollte <b>nicht</b> {search} im ersten Kommentar erwähnen",
2023-10-06 03:10:56 +02:00
"es": "<b>No</b> debe mencionar {search} en el primer comentario",
2023-10-30 13:44:27 +01:00
"ca": "<b>No</b> s'ha de mencionar {search} al primer comentari",
"cs": "V prvním komentáři by jste <b>neměli</b> zmiňovat {search}"
2022-01-08 22:11:24 +01:00
}
}
]
},
{
"id": "opened_by",
"options": [
{
"osmTags": "_first_user~i~.*{search}.*",
2022-01-08 22:11:24 +01:00
"fields": [
{
"name": "search"
}
],
"question": {
2022-04-03 03:17:10 +02:00
"en": "Opened by contributor {search}",
2022-04-18 01:47:54 +02:00
"nl": "Geopend door bijdrager {search}",
2022-06-07 03:39:45 +02:00
"de": "Erstellt von {search}",
2023-09-16 18:52:42 +02:00
"es": "Abierto por el contributor {search}",
2023-09-28 16:56:25 +02:00
"fr": "Ouverte par {search}",
2023-10-30 13:44:27 +01:00
"ca": "Obert pel contribuïdor {search}",
"cs": "Otevřeno přispěvatelem {search}"
2022-01-08 22:11:24 +01:00
}
}
]
},
{
"id": "not_opened_by",
"options": [
{
"osmTags": "_first_user!~i~.*{search}.*",
2022-01-08 22:11:24 +01:00
"fields": [
{
"name": "search"
}
],
"question": {
2022-04-03 03:17:10 +02:00
"en": "<b>Not</b> opened by contributor {search}",
2022-04-18 01:47:54 +02:00
"nl": "<b>Niet</b> geopend door bijdrager {search}",
2022-06-07 03:39:45 +02:00
"de": "<b>Nicht</b> erstellt von {search}",
2023-09-28 16:56:25 +02:00
"es": "<b>No</b> abierto por el contributor {search}",
2023-10-30 13:44:27 +01:00
"ca": "<b>No</b> obert pel contribuïdor {search}",
2024-07-09 13:42:08 +02:00
"cs": "<b>Není</b> otevřeno přispěvatelem {search}",
"fr": "<b>Exclure</b>les notes ouvertes par {search}"
2022-01-08 22:11:24 +01:00
}
}
]
},
{
2024-09-13 02:25:06 +02:00
"id": "edited_by_any",
"options": [
{
"osmTags": "_all_usernames~i~.*{search}.*",
"fields": [
{
"name": "search"
}
],
"question": {
"en": "Edited or commented on by any user with name {search}"
}
}
]
},
{
"id": "last_edited_by",
"options": [
{
"osmTags": "_last_user~i~.*{search}.*",
"fields": [
{
"name": "search"
}
],
"question": {
2022-04-03 03:17:10 +02:00
"en": "Last edited by contributor {search}",
2022-04-18 01:47:54 +02:00
"nl": "Laatst bewerkt door bijdrager {search}",
2022-06-07 03:39:45 +02:00
"de": "Zuletzt bearbeitet von {search}",
2023-09-28 16:56:25 +02:00
"es": "Editada por última vez por el contributor {search}",
2023-10-30 13:44:27 +01:00
"ca": "Editat per última vega pel contribuïdor {search}",
2024-06-24 13:11:35 +02:00
"cs": "Naposledy upravil přispěvatel {search}",
2024-07-09 13:42:08 +02:00
"da": "Senest redigeret af bidragsyder {search}",
"fr": "Dernière modification par {search}"
}
}
]
},
{
2024-09-13 02:25:06 +02:00
"id": "not_last_edited_by",
"options": [
{
"osmTags": "_last_user!~i~.*{search}.*",
"fields": [
{
"name": "search"
}
],
"question": {
2024-09-13 02:25:06 +02:00
"en": "Not edited as last by {search}"
}
}
]
},
2022-01-08 22:11:24 +01:00
{
"id": "opened_before",
"options": [
{
"osmTags": "date_created<{search}",
"fields": [
{
"name": "search",
"type": "date"
}
],
"question": {
2022-04-03 03:17:10 +02:00
"en": "Created before {search}",
2022-04-18 01:47:54 +02:00
"nl": "Aangemaakt voor {search}",
2022-06-07 03:39:45 +02:00
"de": "Erstellt vor dem {search}",
2023-09-28 16:56:25 +02:00
"es": "Creada antes de {search}",
2023-10-30 13:44:27 +01:00
"ca": "Creada abans de {search}",
2024-07-09 13:42:08 +02:00
"cs": "Vytvořeno před {search}",
"fr": "Créée avant le {search}"
2022-01-08 22:11:24 +01:00
}
}
]
},
{
"id": "opened_after",
"options": [
{
"osmTags": "date_created>{search}",
"fields": [
{
"name": "search",
"type": "date"
}
],
"question": {
2022-04-03 03:17:10 +02:00
"en": "Created after {search}",
2022-04-18 01:47:54 +02:00
"nl": "Aangemaakt na {search}",
2022-06-07 03:39:45 +02:00
"de": "Erstellt nach dem {search}",
2023-09-28 16:56:25 +02:00
"es": "Creada después de {search}",
2023-10-30 13:44:27 +01:00
"ca": "Creada després de {search}",
2024-07-09 13:42:08 +02:00
"cs": "Vytvořeno po {search}",
"fr": "Créée après le {search}"
2022-01-08 22:11:24 +01:00
}
}
]
},
{
2024-09-13 02:25:06 +02:00
"id": "last_edited_before",
2022-01-08 22:11:24 +01:00
"options": [
{
2024-09-13 02:25:06 +02:00
"osmTags": "_last_change_date<{search}",
"fields": [
{
"name": "search",
"type": "date"
}
],
2022-01-08 22:11:24 +01:00
"question": {
2024-09-13 02:25:06 +02:00
"en": "Last edited before {search}"
2022-01-08 22:11:24 +01:00
}
}
]
},
{
2024-09-13 02:25:06 +02:00
"id": "last_edited_after",
2022-01-08 22:11:24 +01:00
"options": [
{
2024-09-13 02:25:06 +02:00
"osmTags": "_last_change_date>{search}",
"fields": [
{
"name": "search",
"type": "date"
}
],
2022-05-02 17:06:44 +02:00
"question": {
2024-09-13 02:25:06 +02:00
"en": "Last edited after {search}"
2022-05-02 17:06:44 +02:00
}
}
]
2022-01-08 22:11:24 +01:00
}
],
"allowMove": false
2023-05-16 03:27:49 +02:00
}