Remove empty social images

This commit is contained in:
Pieter Vander Vennet 2022-02-19 17:40:51 +01:00
parent 55f9ee605f
commit 2e586cedc4
29 changed files with 5 additions and 28 deletions

View file

@ -126,6 +126,11 @@ class UpdateLegacyTheme extends DesugaringStep<LayoutConfigJson> {
convert(json: LayoutConfigJson, context: string): { result: LayoutConfigJson; errors: string[]; warnings: string[] } { convert(json: LayoutConfigJson, context: string): { result: LayoutConfigJson; errors: string[]; warnings: string[] } {
const oldThemeConfig = {...json} const oldThemeConfig = {...json}
if(oldThemeConfig.socialImage === ""){
delete oldThemeConfig.socialImage
}
if (oldThemeConfig["roamingRenderings"] !== undefined) { if (oldThemeConfig["roamingRenderings"] !== undefined) {
if (oldThemeConfig["roamingRenderings"].length == 0) { if (oldThemeConfig["roamingRenderings"].length == 0) {

View file

@ -45,7 +45,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 1.5, "widenFactor": 1.5,
"socialImage": "",
"layers": [ "layers": [
"bench", "bench",
"bench_at_pt", "bench_at_pt",

View file

@ -19,7 +19,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 0.05, "widenFactor": 0.05,
"socialImage": "",
"layers": [ "layers": [
"bicycle_rental" "bicycle_rental"
] ]

View file

@ -33,7 +33,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 1.5, "widenFactor": 1.5,
"socialImage": "",
"layers": [ "layers": [
"binocular" "binocular"
] ]

View file

@ -22,7 +22,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 1.5, "widenFactor": 1.5,
"socialImage": "",
"layers": [ "layers": [
"cafe_pub" "cafe_pub"
] ]

View file

@ -39,7 +39,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 1.5, "widenFactor": 1.5,
"socialImage": "",
"defaultBackgroundId": "CartoDB.Voyager", "defaultBackgroundId": "CartoDB.Voyager",
"layers": [ "layers": [
"charging_station" "charging_station"

View file

@ -41,7 +41,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 1.5, "widenFactor": 1.5,
"socialImage": "",
"layers": [ "layers": [
{ {
"id": "climbing_club", "id": "climbing_club",

View file

@ -32,7 +32,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 2, "widenFactor": 2,
"socialImage": "",
"clustering": { "clustering": {
"maxZoom": 14, "maxZoom": 14,
"minNeededElements": 250 "minNeededElements": 250

View file

@ -36,7 +36,6 @@
"startLon": 4.480705, "startLon": 4.480705,
"startZoom": 15, "startZoom": 15,
"widenFactor": 1.5, "widenFactor": 1.5,
"socialImage": "",
"layers": [ "layers": [
{ {
"id": "facadegardens", "id": "facadegardens",

View file

@ -20,7 +20,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 3, "widenFactor": 3,
"socialImage": "",
"layers": [ "layers": [
"food" "food"
] ]

View file

@ -16,7 +16,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 3, "widenFactor": 3,
"socialImage": "",
"layers": [ "layers": [
{ {
"builtin": "food", "builtin": "food",

View file

@ -16,7 +16,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 2, "widenFactor": 2,
"socialImage": "",
"hideFromOverview": true, "hideFromOverview": true,
"layers": [ "layers": [
{ {

View file

@ -16,7 +16,6 @@
"startLon": 3.231, "startLon": 3.231,
"startZoom": 14, "startZoom": 14,
"widenFactor": 2, "widenFactor": 2,
"socialImage": "",
"clustering": { "clustering": {
"maxZoom": 15 "maxZoom": 15
}, },

View file

@ -16,7 +16,6 @@
"startLon": 4.026489, "startLon": 4.026489,
"startZoom": 9, "startZoom": 9,
"widenFactor": 2, "widenFactor": 2,
"socialImage": "",
"clustering": { "clustering": {
"maxZoom": 15 "maxZoom": 15
}, },

View file

@ -29,7 +29,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 5, "widenFactor": 5,
"socialImage": "",
"layers": [ "layers": [
{ {
"id": "hackerspaces", "id": "hackerspaces",

View file

@ -37,7 +37,6 @@
"startLon": 121.6625, "startLon": 121.6625,
"startZoom": 6, "startZoom": 6,
"widenFactor": 3, "widenFactor": 3,
"socialImage": "",
"layers": [ "layers": [
"hydrant", "hydrant",
"extinguisher", "extinguisher",

View file

@ -37,7 +37,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 5, "widenFactor": 5,
"socialImage": "",
"layers": [ "layers": [
"map" "map"
] ]

View file

@ -19,7 +19,6 @@
"startLon": 3.22435, "startLon": 3.22435,
"startZoom": 12, "startZoom": 12,
"widenFactor": 2, "widenFactor": 2,
"socialImage": "",
"layers": [ "layers": [
"drinking_water", "drinking_water",
"birdhide", "birdhide",

View file

@ -41,7 +41,6 @@
] ]
], ],
"widenFactor": 2, "widenFactor": 2,
"socialImage": "",
"defaultBackgroundId": "CartoDB.Positron", "defaultBackgroundId": "CartoDB.Positron",
"enablePdfDownload": true, "enablePdfDownload": true,
"enableDownload": false, "enableDownload": false,

View file

@ -32,7 +32,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 5, "widenFactor": 5,
"socialImage": "",
"layers": [ "layers": [
"observation_tower" "observation_tower"
] ]

View file

@ -17,7 +17,6 @@
"startZoom": 1, "startZoom": 1,
"hideFromOverview": true, "hideFromOverview": true,
"widenFactor": 3, "widenFactor": 3,
"socialImage": "",
"layers": [ "layers": [
"play_forest" "play_forest"
] ]

View file

@ -45,7 +45,6 @@
"startLon": 4.399, "startLon": 4.399,
"startZoom": 13, "startZoom": 13,
"widenFactor": 5, "widenFactor": 5,
"socialImage": "",
"layers": [ "layers": [
"playground" "playground"
] ]

View file

@ -22,7 +22,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 0.05, "widenFactor": 0.05,
"socialImage": "",
"hideFromOverview": true, "hideFromOverview": true,
"clustering": false, "clustering": false,
"overpassTimeout": 180, "overpassTimeout": 180,

View file

@ -35,7 +35,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 3, "widenFactor": 3,
"socialImage": "",
"layers": [ "layers": [
"shops" "shops"
] ]

View file

@ -18,7 +18,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 0.05, "widenFactor": 0.05,
"socialImage": "",
"hideFromOverview": true, "hideFromOverview": true,
"layers": [ "layers": [
{ {

View file

@ -39,7 +39,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 2, "widenFactor": 2,
"socialImage": "",
"layers": [ "layers": [
"sport_pitch" "sport_pitch"
] ]

View file

@ -39,7 +39,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 2, "widenFactor": 2,
"socialImage": "",
"defaultBackgroundId": "osm", "defaultBackgroundId": "osm",
"layers": [ "layers": [
"direction", "direction",

View file

@ -24,7 +24,6 @@
"startLon": 51.52224, "startLon": 51.52224,
"startZoom": 17, "startZoom": 17,
"widenFactor": 1.01, "widenFactor": 1.01,
"socialImage": "",
"hideFromOverview": true, "hideFromOverview": true,
"clustering": { "clustering": {
"minNeededFeatures": 25, "minNeededFeatures": 25,

View file

@ -32,7 +32,6 @@
"startLon": 0, "startLon": 0,
"startZoom": 1, "startZoom": 1,
"widenFactor": 2, "widenFactor": 2,
"socialImage": "",
"layers": [ "layers": [
{ {
"builtin": "waste_basket", "builtin": "waste_basket",