forked from MapComplete/MapComplete
selected_element layer which highlights the selected element
This commit is contained in:
parent
e8ff43312f
commit
42bd301389
13 changed files with 146 additions and 32 deletions
20
assets/layers/selected_element/selected_element.json
Normal file
20
assets/layers/selected_element/selected_element.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue