selected_element layer which highlights the selected element

This commit is contained in:
Pieter Vander Vennet 2022-12-09 13:58:41 +01:00
parent e8ff43312f
commit 42bd301389
13 changed files with 146 additions and 32 deletions

View file

@ -0,0 +1,20 @@
{
"id": "selected_element",
"description": {
"en": "Highlights the currently selected element. Override this layer to have different colors",
"nl": "Toont het geselecteerde element"
},
"source": {
"osmTags": "selected=yes",
"maxCacheAge": 0
},
"mapRendering": [
{
"icon": "circle:red",
"iconSize": "1,1,center",
"location": ["point","projected_centerpoint"],
"css": "box-shadow: red 0 0 20px 20px; z-index: -1; height: 1px; width: 1px;",
"cssClasses": "block relative rounded-full"
}
]
}