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" ,
"es" : "Notas de OpenStreetMap"
2022-01-08 22:11:24 +01:00
} ,
2022-01-14 01:41:19 +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" : {
"osmTags" : "id~*" ,
2022-01-21 01:57:16 +01:00
"geoJson" : "https://api.openstreetmap.org/api/0.6/notes.json?limit=10000&closed=7&bbox={x_min},{y_min},{x_max},{y_max}" ,
2022-01-08 22:11:24 +01:00
"geoJsonZoomLevel" : 12 ,
"maxCacheAge" : 0
} ,
"minzoom" : 10 ,
"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" ,
"es" : "Nota"
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" ,
"es" : "Nota cerrada"
2022-01-08 22:11:24 +01:00
}
}
]
} ,
"calculatedTags" : [
2022-03-13 02:46:42 +01:00
"_total_comments:=feat.get('comments').length" ,
2022-06-07 03:36:22 +02:00
"_first_comment:=feat.get('comments')[0].text" ,
2022-01-08 22:11:24 +01:00
"_opened_by_anonymous_user:=feat.get('comments')[0].user === undefined" ,
"_first_user:=feat.get('comments')[0].user" ,
2022-06-07 03:36:22 +02:00
"_last_user:=(() => {const comms = feat.get('comments'); return comms[comms.length - 1].user})()" ,
2022-01-21 01:57:16 +01:00
"_first_user_id:=feat.get('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/\\([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] })()"
2022-01-08 22:11:24 +01:00
] ,
"titleIcons" : [
{
"render" : "<a href='https://openstreetmap.org/note/{id}' target='_blank'><img src='./assets/svg/osm-logo-us.svg'></a>"
}
] ,
"tagRenderings" : [
{
"id" : "conversation" ,
"render" : "{visualize_note_comments()}"
} ,
{
"id" : "add_image" ,
"render" : "{add_image_to_note()}"
} ,
{
"id" : "comment" ,
"render" : "{add_note_comment()}"
} ,
2022-05-06 12:41:24 +02:00
{
"id" : "nearby-images" ,
"render" : {
"before" : {
2022-06-04 16:54:31 +02:00
"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." ,
"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."
2022-05-06 12:41:24 +02:00
} ,
"special" : {
"type" : "nearby_images" ,
"mode" : "open"
}
}
} ,
2022-01-08 22:11:24 +01:00
{
"id" : "report-contributor" ,
"render" : {
2022-04-03 03:17:10 +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} as spam</a>" ,
2022-04-18 01:47:54 +02:00
"nl" : "<a href='https://www.openstreetmap.org/reports/new?reportable_id={_first_user_id}&reportable_type=User' target='_blank' class='subtle'>{_first_user} melden als spam</a>" ,
2022-06-07 03:39: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} als Spam melden</a>" ,
"es" : "<a href='https://www.openstreetmap.org/reports/new?reportable_id={_first_user_id}&reportable_type=User' target='_blank' class='subtle'>Reportar {_first_user}"
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>" ,
"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>"
2022-01-08 22:11:24 +01:00
}
}
] ,
"mapRendering" : [
{
"location" : [
"point" ,
"centroid"
] ,
"icon" : {
"render" : "./assets/svg/note.svg" ,
"mappings" : [
{
"if" : "closed_at~*" ,
"then" : "./assets/svg/resolved.svg"
}
]
} ,
2022-03-13 02:46:42 +01:00
"iconSize" : "40,40,bottom" ,
"iconBadges" : [
{
"if" : "_total_comments>1" ,
2022-03-29 00:20:10 +02:00
"then" : "circle:white;speech_bubble"
2022-03-29 21:24:44 +02:00
} ,
{
"if" : "_is_import_note~*" ,
"then" : "addSmall"
2022-03-13 02:46:42 +01:00
}
]
2022-01-08 22:11:24 +01:00
}
] ,
"filter" : [
{
"id" : "search" ,
"options" : [
{
2022-06-07 03:36:22 +02:00
"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" ,
"es" : "Debe mencionar {search} en el primer comentario"
2022-01-08 22:11:24 +01:00
}
}
]
} ,
{
"id" : "not" ,
"options" : [
{
2022-06-07 03:36:22 +02:00
"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" ,
"es" : "<b>No</b> debe mencionar {search} en el primer comentario"
2022-01-08 22:11:24 +01:00
}
}
]
} ,
{
"id" : "opened_by" ,
"options" : [
{
2022-06-07 03:36:22 +02:00
"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}" ,
"es" : "Abierto por el contributor {search}"
2022-01-08 22:11:24 +01:00
}
}
]
} ,
{
"id" : "not_opened_by" ,
"options" : [
{
2022-06-07 03:36:22 +02:00
"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}" ,
"es" : "<b>No</b> abierto por el contributor {search}"
2022-01-08 22:11:24 +01:00
}
}
]
} ,
2022-03-13 02:46:42 +01:00
{
"id" : "edited_by" ,
"options" : [
{
2022-06-07 03:36:22 +02:00
"osmTags" : "_last_user~i~.*{search}.*" ,
2022-03-13 02:46:42 +01:00
"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}" ,
"es" : "Editada por última vez por el contributor {search}"
2022-03-13 02:46:42 +01:00
}
}
]
} ,
{
"id" : "not_edited_by" ,
"options" : [
{
2022-06-07 03:36:22 +02:00
"osmTags" : "_last_user!~i~.*{search}.*" ,
2022-03-13 02:46:42 +01:00
"fields" : [
{
"name" : "search"
}
] ,
"question" : {
2022-04-03 03:17:10 +02:00
"en" : "Opened after {search}" ,
2022-04-18 01:47:54 +02:00
"nl" : "Geopend na {search}" ,
2022-06-07 03:39:45 +02:00
"de" : "Zuletzt bearbeitet nach dem {search}" ,
"es" : "Abierta después de {search}"
2022-03-13 02:46:42 +01:00
}
}
]
} ,
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}" ,
"es" : "Creada antes de {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}" ,
"es" : "Creada después de {search}"
2022-01-08 22:11:24 +01:00
}
}
]
} ,
{
"id" : "anonymous" ,
"options" : [
{
"osmTags" : "_opened_by_anonymous_user=true" ,
"question" : {
2022-04-03 03:17:10 +02:00
"en" : "Only show notes opened by an anonymous contributor" ,
2022-04-18 01:47:54 +02:00
"nl" : "Toon enkel de Notes geopend door een anonieme bijdrager" ,
2022-06-07 03:39:45 +02:00
"de" : "Nur Notizen anzeigen, die anonym erstellt wurden" ,
"es" : "Solo mostrar las notas abiertas por contributores anómimos"
2022-01-08 22:11:24 +01:00
}
}
]
} ,
{
"id" : "is_open" ,
"options" : [
{
"osmTags" : "closed_at=" ,
"question" : {
2022-04-03 03:17:10 +02:00
"en" : "Only show open notes" ,
2022-04-18 01:47:54 +02:00
"nl" : "Toon enkel open Notes" ,
2022-06-07 03:39:45 +02:00
"de" : "Nur offene Notizen anzeigen" ,
"es" : "Solo mostrar las notas abiertas"
2022-01-08 22:11:24 +01:00
}
}
]
2022-01-21 01:57:16 +01:00
} ,
{
"id" : "no_imports" ,
"options" : [
2022-05-11 18:39:21 +02:00
{
2022-05-02 17:06:44 +02:00
"question" : {
"en" : "All Notes" ,
2022-05-14 20:14:08 +02:00
"nl" : "Alle Notes" ,
2022-06-07 03:39:45 +02:00
"de" : "Alle Notizen" ,
"es" : "Todas las notas"
2022-05-02 17:06:44 +02:00
}
} ,
2022-01-21 01:57:16 +01:00
{
"osmTags" : "_is_import_note=" ,
"question" : {
2022-04-03 03:17:10 +02:00
"en" : "Hide import notes" ,
2022-04-18 01:47:54 +02:00
"nl" : "Verberg import Notes" ,
2022-06-07 03:39:45 +02:00
"de" : "Importnotizen ausblenden" ,
"es" : "Ocultar las nostras de importación"
2022-01-21 01:57:16 +01:00
}
2022-05-02 17:06:44 +02:00
} ,
{
"osmTags" : "_is_import_note~*" ,
"question" : {
"en" : "Show only import Notes" ,
2022-05-14 20:14:08 +02:00
"nl" : "Toon enkel import Notes" ,
2022-06-07 03:39:45 +02:00
"de" : "Nur Importnotizen anzeigen" ,
"es" : "Solo mostrar las notas de importación"
2022-05-02 17:06:44 +02:00
}
2022-01-21 01:57:16 +01:00
}
]
2022-01-08 22:11:24 +01:00
}
]
2022-05-11 18:39:21 +02:00
}