2023-04-02 02:59:20 +02:00
|
|
|
|
{
|
2023-10-02 01:23:43 +02:00
|
|
|
|
"id": "last_click",
|
2023-10-30 18:08:38 +01:00
|
|
|
|
"name": null,
|
2024-02-15 17:39:59 +01:00
|
|
|
|
"description": "This 'layer' is not really a layer, but contains part of the code how the popup to 'add a new marker' is displayed",
|
2023-04-02 02:59:20 +02:00
|
|
|
|
"source": "special",
|
2024-06-21 02:36:36 +02:00
|
|
|
|
"isShown": {
|
2024-06-21 12:21:49 +02:00
|
|
|
|
"and": [
|
2024-06-21 02:36:36 +02:00
|
|
|
|
{
|
2024-06-21 12:21:49 +02:00
|
|
|
|
"or": [
|
|
|
|
|
"has_note_layer=yes",
|
|
|
|
|
{
|
|
|
|
|
"and": [
|
|
|
|
|
"has_presets=yes",
|
|
|
|
|
"_addNewEnabled=yes"
|
|
|
|
|
]
|
|
|
|
|
}
|
2024-06-21 02:36:36 +02:00
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
2024-06-21 12:21:49 +02:00
|
|
|
|
"or": [
|
|
|
|
|
{
|
|
|
|
|
"and": [
|
|
|
|
|
"mouse_button=right",
|
|
|
|
|
"_usermode=button_click_right"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"_usermode=button_click",
|
|
|
|
|
"_usermode=click",
|
|
|
|
|
{
|
|
|
|
|
"and": [
|
|
|
|
|
"mouse_button=right",
|
|
|
|
|
"_usermode=click_right"
|
|
|
|
|
]
|
|
|
|
|
}
|
2024-06-21 02:36:36 +02:00
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
2023-04-02 02:59:20 +02:00
|
|
|
|
"title": {
|
|
|
|
|
"mappings": [
|
|
|
|
|
{
|
|
|
|
|
"if": {
|
|
|
|
|
"and": [
|
|
|
|
|
"has_note_layer=yes",
|
|
|
|
|
"has_presets=yes"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"then": {
|
|
|
|
|
"en": "Add a new point or add a note",
|
2023-06-28 22:30:08 +02:00
|
|
|
|
"nl": "Voeg een nieuw punt of een nieuwe kaartnota toe",
|
2023-09-16 18:52:42 +02:00
|
|
|
|
"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",
|
2023-10-16 13:38:53 +02:00
|
|
|
|
"pl": "Dodaj nowy punkt lub dodaj notatkę",
|
2024-11-05 14:14:53 +01:00
|
|
|
|
"cs": "Přidání nového bodu nebo přidání poznámky",
|
|
|
|
|
"es": "Añadir un nuevo punto o añadir una nota"
|
2023-04-02 02:59:20 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"if": "has_note_layer=yes",
|
|
|
|
|
"then": {
|
|
|
|
|
"en": "Add a new note",
|
2023-06-28 22:30:08 +02:00
|
|
|
|
"nl": "Voeg een nieuwe kaartnota toe",
|
2023-09-16 18:52:42 +02:00
|
|
|
|
"de": "Hinweis hinzufügen",
|
|
|
|
|
"ca": "Afegeix una nova nota",
|
|
|
|
|
"fr": "Ajouter une nouvelle note",
|
2023-10-16 13:38:53 +02:00
|
|
|
|
"pl": "Dodaj nową notatkę",
|
2024-11-05 14:14:53 +01:00
|
|
|
|
"cs": "Přidání nové poznámky",
|
|
|
|
|
"es": "Añadir una nueva nota"
|
2023-04-02 02:59:20 +02:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"if": "has_presets=yes",
|
|
|
|
|
"then": {
|
|
|
|
|
"en": "Add a new point",
|
2023-06-28 22:30:08 +02:00
|
|
|
|
"nl": "Voeg een nieuw punt toe",
|
2023-09-16 18:52:42 +02:00
|
|
|
|
"de": "Objekt hinzufügen",
|
|
|
|
|
"ca": "Afegeix un nou punt",
|
|
|
|
|
"fr": "Ajouter un nouveau point",
|
2023-10-16 13:38:53 +02:00
|
|
|
|
"pl": "Dodaj nowy punkt",
|
2024-11-05 14:14:53 +01:00
|
|
|
|
"cs": "Přidání nového bodu",
|
|
|
|
|
"es": "Añadir un nuevo punto"
|
2023-04-02 02:59:20 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
2023-10-30 18:08:38 +01:00
|
|
|
|
"popupInFloatover": true,
|
|
|
|
|
"titleIcons": [],
|
2023-09-19 14:04:13 +02:00
|
|
|
|
"pointRendering": [
|
2023-04-02 02:59:20 +02:00
|
|
|
|
{
|
2023-10-06 23:56:50 +02:00
|
|
|
|
"marker": [
|
|
|
|
|
{
|
|
|
|
|
"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": "<div class='relative'> <img src='./assets/svg/add_pin.svg' class='absolute' style='height: 50px'> <div class='absolute top-0 left-0 rounded-full overflow-hidden noselect' style='width: 40px; height: 40px'><div class='flex slide min-w-min' style='animation: slide linear {number_of_presets}s infinite; width: calc( (1 + {number_of_presets}) * 40px ); height: 40px'>{renderings}{first_preset}</div></div></div>"
|
2023-04-02 02:59:20 +02:00
|
|
|
|
}
|
2023-10-06 23:56:50 +02:00
|
|
|
|
}
|
|
|
|
|
],
|
2023-05-19 01:37:31 +02:00
|
|
|
|
"labelCssClasses": "text-sm min-w-min px-2 rounded-full text-white opacity-65 whitespace-nowrap block-ruby",
|
2023-04-06 01:33:08 +02:00
|
|
|
|
"labelCss": "background: #00000088",
|
2023-04-02 02:59:20 +02:00
|
|
|
|
"label": {
|
|
|
|
|
"render": {
|
|
|
|
|
"ca": "Afegir nou element",
|
|
|
|
|
"cs": "Klikněte zde pro přidání nové položky",
|
|
|
|
|
"da": "Klik her for at tilføje et nyt punkt",
|
|
|
|
|
"de": "Hier klicken, um ein neues Element hinzuzufügen",
|
|
|
|
|
"en": "Click here to add a new item",
|
2024-11-05 14:14:53 +01:00
|
|
|
|
"es": "Haz clic aquí para añadir un nuevo elemento",
|
2023-04-02 02:59:20 +02:00
|
|
|
|
"fil": "I-click ito para mag-dagdag ng bagong bagay",
|
|
|
|
|
"fr": "Cliquez ici pour ajouter un élément",
|
|
|
|
|
"hu": "Új elem hozzáadásához kattints ide",
|
|
|
|
|
"id": "Klik di sini untuk menambahkan item baru",
|
|
|
|
|
"it": "Aggiungi nuovo elemento",
|
|
|
|
|
"nb_NO": "Legg til nytt element",
|
|
|
|
|
"nl": "Klik hier om een item toe te voegen",
|
|
|
|
|
"pt": "Adicionar novo item",
|
2023-09-16 18:52:42 +02:00
|
|
|
|
"zh_Hant": "點這邊新增新項目",
|
2024-10-24 00:56:24 +02:00
|
|
|
|
"pl": "Kliknij tutaj, aby dodać nowy obiekt",
|
|
|
|
|
"uk": "Натисніть тут, щоб додати новий об'єкт"
|
2023-04-06 01:33:08 +02:00
|
|
|
|
},
|
|
|
|
|
"mappings": [
|
|
|
|
|
{
|
|
|
|
|
"if": {
|
|
|
|
|
"and": [
|
|
|
|
|
"has_note_layer=yes",
|
2024-06-21 12:21:49 +02:00
|
|
|
|
"has_presets=no"
|
2023-04-06 01:33:08 +02:00
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"then": {
|
|
|
|
|
"en": "Create a new map note",
|
2023-06-28 22:30:08 +02:00
|
|
|
|
"nl": "Maak een nieuwe kaartnotitie",
|
2023-09-16 18:52:42 +02:00
|
|
|
|
"de": "Hinweis auf der Karte hinzufügen",
|
|
|
|
|
"ca": "Crea una nova nota del mapa",
|
|
|
|
|
"fr": "Créer une nouvelle note de carte",
|
2023-10-16 13:38:53 +02:00
|
|
|
|
"pl": "Utwórz nową notatkę na mapie",
|
2024-11-05 14:14:53 +01:00
|
|
|
|
"cs": "Vytvoření nové mapové poznámky",
|
|
|
|
|
"es": "Crear una nueva nota del mapa"
|
2023-04-06 01:33:08 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
2023-04-02 02:59:20 +02:00
|
|
|
|
},
|
|
|
|
|
"iconBadges": [
|
|
|
|
|
{
|
|
|
|
|
"if": {
|
|
|
|
|
"or": [
|
|
|
|
|
"has_note_layer=yes",
|
|
|
|
|
"has_presets=yes"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"then": "<img class='animate-pulse' src='./assets/svg/addSmall.svg'>"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"location": [
|
|
|
|
|
"point"
|
|
|
|
|
],
|
2023-06-20 03:52:15 +02:00
|
|
|
|
"anchor": "bottom",
|
2023-04-06 01:33:08 +02:00
|
|
|
|
"iconSize": {
|
|
|
|
|
"mappings": [
|
|
|
|
|
{
|
|
|
|
|
"if": {
|
|
|
|
|
"and": [
|
|
|
|
|
"has_note_layer=yes",
|
|
|
|
|
"has_presets=no"
|
|
|
|
|
]
|
|
|
|
|
},
|
2023-06-20 03:52:15 +02:00
|
|
|
|
"then": "40,40"
|
2023-04-06 01:33:08 +02:00
|
|
|
|
}
|
|
|
|
|
],
|
2023-06-20 03:52:15 +02:00
|
|
|
|
"render": "40,50"
|
2023-04-06 01:33:08 +02:00
|
|
|
|
}
|
2023-04-02 02:59:20 +02:00
|
|
|
|
}
|
|
|
|
|
],
|
2023-10-30 18:08:38 +01:00
|
|
|
|
"lineRendering": [],
|
|
|
|
|
"tagRenderings": [
|
|
|
|
|
{
|
|
|
|
|
"id": "add_new",
|
2024-06-21 12:21:49 +02:00
|
|
|
|
"classes": "h-full flex special-add-new-point",
|
2023-10-30 18:08:38 +01:00
|
|
|
|
"condition": "has_presets=yes",
|
|
|
|
|
"render": {
|
|
|
|
|
"*": "{add_new_point()}"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "add_note",
|
|
|
|
|
"condition": "has_note_layer=yes",
|
|
|
|
|
"render": {
|
|
|
|
|
"*": "{open_note()}"
|
|
|
|
|
}
|
2024-06-20 03:30:14 +02:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "debug",
|
|
|
|
|
"metacondition": "__featureSwitchIsDebugging=true",
|
|
|
|
|
"render": "{all_tags()}"
|
2023-10-30 18:08:38 +01:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"filter": [
|
|
|
|
|
{
|
|
|
|
|
"id": "action",
|
|
|
|
|
"options": [
|
|
|
|
|
{
|
|
|
|
|
"default": true,
|
|
|
|
|
"question": "only_if_action_is_possible",
|
|
|
|
|
"osmTags": {
|
|
|
|
|
"or": [
|
|
|
|
|
"has_note_layer=yes",
|
|
|
|
|
"has_presets=yes"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
2024-09-02 10:10:20 +02:00
|
|
|
|
],
|
|
|
|
|
"allowMove": false
|
2023-05-01 01:11:05 +02:00
|
|
|
|
}
|