First usable sidewalks theme
This commit is contained in:
parent
02a1d9696f
commit
ff0ee35ec1
19 changed files with 537 additions and 174 deletions
41
assets/layers/left_right_style/left_right_style.json
Normal file
41
assets/layers/left_right_style/left_right_style.json
Normal file
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"id": "left_right_style",
|
||||
"description": "Special meta-style which will show one single line, either on the left or on the right depending on the id. This is used in the small popups with left_right roads",
|
||||
"source": {
|
||||
"osmTags": {
|
||||
"or": [
|
||||
"id=left",
|
||||
"id=right"
|
||||
]
|
||||
}
|
||||
},
|
||||
"mapRendering": [
|
||||
{
|
||||
"width": 6,
|
||||
"offset": {
|
||||
"mappings": [
|
||||
{
|
||||
"if": "id=left",
|
||||
"then": "-5"
|
||||
},
|
||||
{
|
||||
"if": "id=right",
|
||||
"then": "5"
|
||||
}
|
||||
]
|
||||
},
|
||||
"color": {
|
||||
"mappings": [
|
||||
{
|
||||
"if": "id=left",
|
||||
"then": "#00f"
|
||||
},
|
||||
{
|
||||
"if": "id=right",
|
||||
"then": "#f00"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue