From f5f4d7bdcbcade2a4443f6284f1c4501c9e9fc2e Mon Sep 17 00:00:00 2001 From: AlexanderRebai Date: Wed, 13 Jul 2022 08:53:55 +0000 Subject: [PATCH] indoors layers added, labels added --- assets/layers/indoors/indoors.json | 38 +++++++++++++++++++++--------- assets/themes/indoors/indoors.json | 2 +- 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/assets/layers/indoors/indoors.json b/assets/layers/indoors/indoors.json index d69ab2aa3..74773da9d 100644 --- a/assets/layers/indoors/indoors.json +++ b/assets/layers/indoors/indoors.json @@ -17,32 +17,32 @@ }, "title": { "render": { - "en": "Indoor area" + "en": "Indoor area {name}" }, "mappings": [ { "if": "indoor=room", - "then": "Indoor Room" + "then": "Indoor Room {name}" }, { "if": "indoor=area", - "then": "Indoor Area" + "then": "Indoor Area {name}" }, { "if": "indoor=wall", - "then": "Indoor Wall" + "then": "Indoor Wall {name}" }, { "if": "indoor=corridor", - "then": "Indoor Corridor" + "then": "Indoor Corridor {name}" }, { "if": "indoor=door", - "then": "Indoor Door" + "then": "Indoor Door {name}" }, { "if": "indoor=level", - "then": "Indoor Level" + "then": "Indoor Level {name}" } ] }, @@ -53,14 +53,30 @@ "mapRendering": [ { "color": { - "render": "red" + "render": "#bb004488" }, "width": { - "render": "4" + "render": "8" }, "offset": { - "render": "-8" - } + "render": "-4" + }, + "fill": "no" + }, + { + "color": "red", + "fill": "no", + "width": "2" + }, + { + "label": { + "render": "
{name}
", + "condition": "name~*" + }, + "location": [ + "point", + "centroid" + ] } ] } \ No newline at end of file diff --git a/assets/themes/indoors/indoors.json b/assets/themes/indoors/indoors.json index b92548a7b..c8964878e 100644 --- a/assets/themes/indoors/indoors.json +++ b/assets/themes/indoors/indoors.json @@ -12,7 +12,7 @@ "startLat": 51.17181, "defaultBackgroundId": "CartoDB.Voyager", "startLon": 4.144383, - "startZoom": 16, + "startZoom": 14, "widenFactor": 2, "layers": [ "indoors"