{ "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": [], "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" } }, { "if": "has_note_layer=yes", "then": { "en": "Add a new note", "nl": "Voeg een nieuwe kaartnota toe" } }, { "if": "has_presets=yes", "then": { "en": "Add a new point", "nl": "Voeg een nieuw punt toe" } } ] }, "tagRenderings": [ { "id": "add_new", "condition": "has_presets=yes", "render": { "*": "{add_new_point()}" } }, { "id": "add_note", "condition": "has_note_layer=yes", "render": { "*": "{open_note()}" } } ], "mapRendering": [ { "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": "