indoors layers added, labels added

This commit is contained in:
AlexanderRebai 2022-07-13 08:53:55 +00:00
parent c33ca35029
commit f5f4d7bdcb
2 changed files with 28 additions and 12 deletions

View file

@ -17,32 +17,32 @@
}, },
"title": { "title": {
"render": { "render": {
"en": "Indoor area" "en": "Indoor area {name}"
}, },
"mappings": [ "mappings": [
{ {
"if": "indoor=room", "if": "indoor=room",
"then": "Indoor Room" "then": "Indoor Room {name}"
}, },
{ {
"if": "indoor=area", "if": "indoor=area",
"then": "Indoor Area" "then": "Indoor Area {name}"
}, },
{ {
"if": "indoor=wall", "if": "indoor=wall",
"then": "Indoor Wall" "then": "Indoor Wall {name}"
}, },
{ {
"if": "indoor=corridor", "if": "indoor=corridor",
"then": "Indoor Corridor" "then": "Indoor Corridor {name}"
}, },
{ {
"if": "indoor=door", "if": "indoor=door",
"then": "Indoor Door" "then": "Indoor Door {name}"
}, },
{ {
"if": "indoor=level", "if": "indoor=level",
"then": "Indoor Level" "then": "Indoor Level {name}"
} }
] ]
}, },
@ -53,14 +53,30 @@
"mapRendering": [ "mapRendering": [
{ {
"color": { "color": {
"render": "red" "render": "#bb004488"
}, },
"width": { "width": {
"render": "4" "render": "8"
}, },
"offset": { "offset": {
"render": "-8" "render": "-4"
} },
"fill": "no"
},
{
"color": "red",
"fill": "no",
"width": "2"
},
{
"label": {
"render": "<div style='margin-top: -20px; color:#013220; background:white' class='rounded-full p-1 font-bold'>{name}</div>",
"condition": "name~*"
},
"location": [
"point",
"centroid"
]
} }
] ]
} }

View file

@ -12,7 +12,7 @@
"startLat": 51.17181, "startLat": 51.17181,
"defaultBackgroundId": "CartoDB.Voyager", "defaultBackgroundId": "CartoDB.Voyager",
"startLon": 4.144383, "startLon": 4.144383,
"startZoom": 16, "startZoom": 14,
"widenFactor": 2, "widenFactor": 2,
"layers": [ "layers": [
"indoors" "indoors"