{ "id": "last_click", "description": "This layer defines how to render the 'last click'-location. By default, it will show a marker with the possibility to add a new point (if there are some presets) and/or to add a new note (if the 'note' layer attribute is set). If none are possible, this layer won't show up", "source": "special", "isShown": { "or": [ "has_presets=yes", "has_note_layer=yes" ] }, "name": null, "titleIcons": [], "popupInFloatover": true, "title": { "mappings": [ { "if": { "and": [ "has_note_layer=yes", "has_presets=yes" ] }, "then": { "en": "Add a new point or add a note", "nl": "Voeg een nieuw punt of een nieuwe kaartnota toe", "de": "Objekt oder Hinweis auf der Karte hinzufügen", "ca": "Afegeix un nou punt o nota", "fr": "Ajouter un nouveau point ou ajouter une note", "pl": "Dodaj nowy punkt lub dodaj notatkę" } }, { "if": "has_note_layer=yes", "then": { "en": "Add a new note", "nl": "Voeg een nieuwe kaartnota toe", "de": "Hinweis hinzufügen", "ca": "Afegeix una nova nota", "fr": "Ajouter une nouvelle note", "pl": "Dodaj nową notatkę" } }, { "if": "has_presets=yes", "then": { "en": "Add a new point", "nl": "Voeg een nieuw punt toe", "de": "Objekt hinzufügen", "ca": "Afegeix un nou punt", "fr": "Ajouter un nouveau point", "pl": "Dodaj nowy punkt" } } ] }, "tagRenderings": [ { "id": "add_new", "condition": "has_presets=yes", "render": { "*": "{add_new_point()}" } }, { "id": "add_note", "condition": "has_note_layer=yes", "render": { "*": "{open_note()}" } } ], "filter": [ { "id": "action", "options": [ { "default": true, "question": "only_if_action_is_possible", "osmTags": { "or": [ "has_note_layer=yes", "has_presets=yes" ] } } ] } ], "pointRendering": [ { "icon": { "mappings": [ { "if": { "and": [ "has_note_layer=yes", "has_presets=no" ] }, "then": "./assets/svg/note.svg" }, { "if": "number_of_presets=1", "then": "{first_preset}" } ], "render": "