Skip to content

Commit

Permalink
Refactoring: cleanup of last incorrect iconSize fields
Browse files Browse the repository at this point in the history
  • Loading branch information
pietervdvn committed Jun 20, 2023
1 parent 140c813 commit f4b7e7e
Show file tree
Hide file tree
Showing 12 changed files with 458 additions and 1,249 deletions.
1,612 changes: 406 additions & 1,206 deletions assets/layers/charging_station/charging_station.json

Large diffs are not rendered by default.

10 changes: 2 additions & 8 deletions assets/layers/charging_station/charging_station.protojson
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"en": "A charging station",
"nl": "Oplaadpunten"
},
"#":"no-question-hint-check",
"#": "no-question-hint-check",
"tagRenderings": [
"images",
{
Expand Down Expand Up @@ -144,7 +144,7 @@
}
},
{
"if": "access=public",
"if": "access=public",
"then": {
"en": "Anyone can use this charging station (payment might be needed)",
"nl": "Toegankelijk voor iedereen (mogelijks met aanmelden en/of te betalen)"
Expand Down Expand Up @@ -804,9 +804,6 @@
"title": {
"en": "charging station for electrical bikes with a normal european wall plug <img src='./assets/layers/charging_station/TypeE.svg' class='w-4 h-4 mx-1 bg-white rounded-full'/>",
"nl": "oplaadpunt voor elektrische fietsen met een gewone, europese stekker <img src='./assets/layers/charging_station/TypeE.svg' class='w-4 h-4 mx-1 bg-white rounded-full'/>"
},
"preciseInput": {
"preferredBackground": "map"
}
},
{
Expand All @@ -818,9 +815,6 @@
"title": {
"en": "charging station for cars",
"nl": "oplaadstation voor elektrische auto's"
},
"preciseInput": {
"preferredBackground": "map"
}
}
],
Expand Down
3 changes: 2 additions & 1 deletion assets/layers/indoors/indoors.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@
}
]
},
"iconSize": "15,15, bottom"
"iconSize": "15,15",
"anchor": "bottom"
}
]
}
3 changes: 2 additions & 1 deletion assets/layers/windturbine/windturbine.json
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@
}
]
},
"iconSize": "40, 40, bottom",
"iconSize": "40, 40",
"anchor": "bottom",
"location": [
"point",
"centroid"
Expand Down
8 changes: 5 additions & 3 deletions assets/themes/cyclofix/cyclofix.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"=mapRendering": [
{
"icon": "pin:#ba2792;./assets/themes/cyclofix/key.svg",
"iconSize": "40,40,bottom",
"iconSize": "40,40",
"anchor": "bottom",
"location": [
"point",
"centroid"
Expand Down Expand Up @@ -82,7 +83,8 @@
"=mapRendering": [
{
"icon": "pin:#ba2792;./assets/themes/cyclofix/key.svg",
"iconSize": "40,40,bottom",
"iconSize": "40,40",
"anchor": "bottom",
"location": [
"point",
"centroid"
Expand Down Expand Up @@ -133,4 +135,4 @@
}
}
]
}
}
4 changes: 2 additions & 2 deletions assets/themes/grb/grb.json
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@
"icon": {
"render": "./assets/svg/robot.svg"
},
"iconSize": "15,15,center"
"iconSize": "15,15"
}
]
}
Expand All @@ -777,4 +777,4 @@
"overpassMaxZoom": 15,
"osmApiTileSize": 17,
"credits": "Pieter Vander Vennet"
}
}
3 changes: 2 additions & 1 deletion assets/themes/mapcomplete-changes/mapcomplete-changes.json
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,8 @@
"point"
],
"icon": "statistics:black",
"iconSize": "30,30,center"
"iconSize": "30,30",
"anchor": "center"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@
"icon": {
"render": "teardrop:#00cc00"
},
"iconSize": "30,30,center"
"iconSize": "30,30",
"anchor": "center"
}
],
"filter": [
Expand Down Expand Up @@ -276,7 +277,8 @@
"point"
],
"icon": "statistics:black",
"iconSize": "30,30,center"
"iconSize": "30,30",
"anchor": "center"
}
]
}
Expand Down
43 changes: 27 additions & 16 deletions assets/themes/onwheels/onwheels.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"mapRendering": [
{
"icon": "./assets/themes/onwheels/cafe.svg",
"iconSize": "40,40,bottom",
"iconSize": "40,40",
"anchor": "bottom",
"label": null
}
]
Expand All @@ -73,8 +74,7 @@
"minzoom": 19,
"mapRendering": [
{
"icon": "circle:white;./assets/themes/onwheels/entrance.svg",
"iconSize": "40,40,center"
"icon": "circle:white;./assets/themes/onwheels/entrance.svg"
}
],
"syncSelection": "theme-only",
Expand Down Expand Up @@ -120,7 +120,8 @@
"mapRendering": [
{
"icon": "./assets/themes/onwheels/restaurant.svg",
"iconSize": "40,40,bottom",
"iconSize": "40,40",
"anchor": "bottom",
"label": null
}
]
Expand Down Expand Up @@ -205,8 +206,9 @@
"mapRendering": [
{
"icon": "./assets/themes/onwheels/parking.svg",
"anchor": "bottom",
"iconSize": {
"render": "20,20,bottom",
"render": "20,20",
"mappings": [
{
"if": {
Expand All @@ -215,7 +217,7 @@
"capacity:disabled=yes"
]
},
"then": "40,40,bottom"
"then": "40,40"
}
]
}
Expand All @@ -237,7 +239,8 @@
"icon": {
"mappings": null
},
"iconSize": "30,30,center",
"iconSize": "40,40",
"anchor": "center",
"iconBadges": [
{
"if": "parking_space=disabled",
Expand Down Expand Up @@ -268,7 +271,8 @@
"mapRendering": [
{
"icon": "./assets/themes/onwheels/shop.svg",
"iconSize": "40,40,bottom",
"iconSize": "40,40",
"anchor": "bottom",
"label": null
},
{
Expand All @@ -285,7 +289,8 @@
"mapRendering": [
{
"icon": "./assets/themes/onwheels/toilet.svg",
"iconSize": "40,40,bottom"
"iconSize": "40,40",
"anchor": "bottom"
}
]
}
Expand All @@ -298,7 +303,8 @@
"mapRendering": [
{
"icon": "./assets/themes/onwheels/pharmacy.svg",
"iconSize": "40,40,bottom",
"iconSize": "40,40",
"anchor": "bottom",
"label": null
}
]
Expand All @@ -312,7 +318,8 @@
"mapRendering": [
{
"icon": "./assets/themes/onwheels/doctor.svg",
"iconSize": "40,40,bottom"
"iconSize": "40,40",
"anchor": "bottom"
}
]
}
Expand All @@ -325,7 +332,8 @@
"mapRendering": [
{
"icon": "./assets/themes/onwheels/hospital.svg",
"iconSize": "40,40,bottom"
"iconSize": "40,40",
"anchor": "bottom"
},
{
"color": "#dd463b"
Expand All @@ -349,7 +357,8 @@
"mapRendering": [
{
"icon": "circle:white;./assets/themes/onwheels/elevator.svg",
"iconSize": "40,40,bottom"
"iconSize": "40,40",
"anchor": "bottom"
}
]
}
Expand All @@ -362,7 +371,8 @@
"mapRendering": [
{
"icon": "./assets/themes/onwheels/hotel.svg",
"iconSize": "40,40,bottom"
"iconSize": "40,40",
"anchor": "bottom"
}
]
}
Expand All @@ -374,7 +384,8 @@
"mapRendering": [
{
"icon": "./assets/themes/onwheels/government.svg",
"iconSize": "40,40,bottom"
"iconSize": "40,40",
"anchor": "bottom"
}
]
}
Expand Down Expand Up @@ -503,4 +514,4 @@
]
},
"enableDownload": true
}
}
6 changes: 3 additions & 3 deletions assets/themes/pets/pets.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"centroid"
],
"icon": "./assets/themes/pets/dog-food.svg",
"iconSize": "30,30,center"
"iconSize": "30,30"
}
],
"=presets": [],
Expand Down Expand Up @@ -131,7 +131,7 @@
}
]
},
"iconSize": "30,30,center"
"iconSize": "30,30"
},
{
"#": "Rendering of a line",
Expand Down Expand Up @@ -220,4 +220,4 @@
}
],
"credits": "Niels Elgaard Larsen"
}
}
4 changes: 2 additions & 2 deletions assets/themes/stations/stations.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"render": null,
"mappings": null
},
"iconSize": "0,0,bottom"
"iconSize": "0,0"
}
]
}
Expand Down Expand Up @@ -404,4 +404,4 @@
]
}
]
}
}
5 changes: 1 addition & 4 deletions assets/themes/toerisme_vlaanderen/toerisme_vlaanderen.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@
],
"title": {
"nl": "laadpunt voor elektrische fietsen"
},
"preciseInput": {
"preferredBackground": "map"
}
}
]
Expand Down Expand Up @@ -250,4 +247,4 @@
"hideFromOverview": true,
"enableMoreQuests": false,
"enableShareScreen": false
}
}

0 comments on commit f4b7e7e

Please sign in to comment.