forked from MapComplete/MapComplete
Feature: add favourite
This commit is contained in:
parent
a32ab16a5e
commit
f9827dd6ae
68 changed files with 1641 additions and 885 deletions
71
assets/layers/favourite/favourite.json
Normal file
71
assets/layers/favourite/favourite.json
Normal file
|
@ -0,0 +1,71 @@
|
|||
{
|
||||
"pointRendering": [
|
||||
{
|
||||
"location": [
|
||||
"point",
|
||||
"centroid"
|
||||
],
|
||||
"marker": [
|
||||
{
|
||||
"icon": {
|
||||
"render": "heart",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "_favourite=no",
|
||||
"then": "heart_outline"
|
||||
}
|
||||
]
|
||||
},
|
||||
"color": "red"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"description": {
|
||||
"en": "A generic map layer which shows locations that a contributor marked as favourite",
|
||||
"nl": "Een laag met persoonlijke favourieten"
|
||||
},
|
||||
"name": {
|
||||
"en": "Favourites",
|
||||
"nl": "Favorieten"
|
||||
},
|
||||
"id": "favourite",
|
||||
"source": "special",
|
||||
"isShown": "_favourite=yes",
|
||||
"minzoom": 0,
|
||||
"title": {
|
||||
"render": {
|
||||
"en": "Favourite location",
|
||||
"nl": "Favoriete locatie"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "name~*",
|
||||
"then": {
|
||||
"*": "{name}"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tagRenderings": [
|
||||
{
|
||||
"id": "Explanation",
|
||||
"classes": "thanks",
|
||||
"icon": {
|
||||
"class": "large",
|
||||
"path": "heart"
|
||||
},
|
||||
"render": {
|
||||
"en": "You marked this location as a personal favourite. As such, it is shown on every map you load.",
|
||||
"nl": "Je hebt deze locatie als persoonlijke favoriet aangeduid en worden op alle MapComplete-kaarten getoond."
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "show_images",
|
||||
"render": {
|
||||
"*": "{image_carousel()}"
|
||||
}
|
||||
},
|
||||
"all_tags"
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue