Remove empty social images

This commit is contained in:
pietervdvn 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[] } {
const oldThemeConfig = {...json}
if(oldThemeConfig.socialImage === ""){
delete oldThemeConfig.socialImage
}
if (oldThemeConfig["roamingRenderings"] !== undefined) {
if (oldThemeConfig["roamingRenderings"].length == 0) {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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