Remove empty social images
This commit is contained in:
parent
55f9ee605f
commit
2e586cedc4
29 changed files with 5 additions and 28 deletions
|
@ -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) {
|
||||
|
|
|
@ -45,7 +45,6 @@
|
|||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"widenFactor": 1.5,
|
||||
"socialImage": "",
|
||||
"layers": [
|
||||
"bench",
|
||||
"bench_at_pt",
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"widenFactor": 0.05,
|
||||
"socialImage": "",
|
||||
"layers": [
|
||||
"bicycle_rental"
|
||||
]
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"widenFactor": 1.5,
|
||||
"socialImage": "",
|
||||
"layers": [
|
||||
"binocular"
|
||||
]
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"widenFactor": 1.5,
|
||||
"socialImage": "",
|
||||
"layers": [
|
||||
"cafe_pub"
|
||||
]
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"widenFactor": 1.5,
|
||||
"socialImage": "",
|
||||
"defaultBackgroundId": "CartoDB.Voyager",
|
||||
"layers": [
|
||||
"charging_station"
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"widenFactor": 1.5,
|
||||
"socialImage": "",
|
||||
"layers": [
|
||||
{
|
||||
"id": "climbing_club",
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"widenFactor": 2,
|
||||
"socialImage": "",
|
||||
"clustering": {
|
||||
"maxZoom": 14,
|
||||
"minNeededElements": 250
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
"startLon": 4.480705,
|
||||
"startZoom": 15,
|
||||
"widenFactor": 1.5,
|
||||
"socialImage": "",
|
||||
"layers": [
|
||||
{
|
||||
"id": "facadegardens",
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"widenFactor": 3,
|
||||
"socialImage": "",
|
||||
"layers": [
|
||||
"food"
|
||||
]
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"widenFactor": 3,
|
||||
"socialImage": "",
|
||||
"layers": [
|
||||
{
|
||||
"builtin": "food",
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"widenFactor": 2,
|
||||
"socialImage": "",
|
||||
"hideFromOverview": true,
|
||||
"layers": [
|
||||
{
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
"startLon": 3.231,
|
||||
"startZoom": 14,
|
||||
"widenFactor": 2,
|
||||
"socialImage": "",
|
||||
"clustering": {
|
||||
"maxZoom": 15
|
||||
},
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
"startLon": 4.026489,
|
||||
"startZoom": 9,
|
||||
"widenFactor": 2,
|
||||
"socialImage": "",
|
||||
"clustering": {
|
||||
"maxZoom": 15
|
||||
},
|
||||
|
|
|
@ -29,7 +29,6 @@
|
|||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"widenFactor": 5,
|
||||
"socialImage": "",
|
||||
"layers": [
|
||||
{
|
||||
"id": "hackerspaces",
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
"startLon": 121.6625,
|
||||
"startZoom": 6,
|
||||
"widenFactor": 3,
|
||||
"socialImage": "",
|
||||
"layers": [
|
||||
"hydrant",
|
||||
"extinguisher",
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"widenFactor": 5,
|
||||
"socialImage": "",
|
||||
"layers": [
|
||||
"map"
|
||||
]
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
"startLon": 3.22435,
|
||||
"startZoom": 12,
|
||||
"widenFactor": 2,
|
||||
"socialImage": "",
|
||||
"layers": [
|
||||
"drinking_water",
|
||||
"birdhide",
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
]
|
||||
],
|
||||
"widenFactor": 2,
|
||||
"socialImage": "",
|
||||
"defaultBackgroundId": "CartoDB.Positron",
|
||||
"enablePdfDownload": true,
|
||||
"enableDownload": false,
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"widenFactor": 5,
|
||||
"socialImage": "",
|
||||
"layers": [
|
||||
"observation_tower"
|
||||
]
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
"startZoom": 1,
|
||||
"hideFromOverview": true,
|
||||
"widenFactor": 3,
|
||||
"socialImage": "",
|
||||
"layers": [
|
||||
"play_forest"
|
||||
]
|
||||
|
|
|
@ -45,7 +45,6 @@
|
|||
"startLon": 4.399,
|
||||
"startZoom": 13,
|
||||
"widenFactor": 5,
|
||||
"socialImage": "",
|
||||
"layers": [
|
||||
"playground"
|
||||
]
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"widenFactor": 0.05,
|
||||
"socialImage": "",
|
||||
"hideFromOverview": true,
|
||||
"clustering": false,
|
||||
"overpassTimeout": 180,
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"widenFactor": 3,
|
||||
"socialImage": "",
|
||||
"layers": [
|
||||
"shops"
|
||||
]
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"widenFactor": 0.05,
|
||||
"socialImage": "",
|
||||
"hideFromOverview": true,
|
||||
"layers": [
|
||||
{
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"widenFactor": 2,
|
||||
"socialImage": "",
|
||||
"layers": [
|
||||
"sport_pitch"
|
||||
]
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"widenFactor": 2,
|
||||
"socialImage": "",
|
||||
"defaultBackgroundId": "osm",
|
||||
"layers": [
|
||||
"direction",
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
"startLon": 51.52224,
|
||||
"startZoom": 17,
|
||||
"widenFactor": 1.01,
|
||||
"socialImage": "",
|
||||
"hideFromOverview": true,
|
||||
"clustering": {
|
||||
"minNeededFeatures": 25,
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
"startLon": 0,
|
||||
"startZoom": 1,
|
||||
"widenFactor": 2,
|
||||
"socialImage": "",
|
||||
"layers": [
|
||||
{
|
||||
"builtin": "waste_basket",
|
||||
|
|
Loading…
Reference in a new issue