Skip to content

Commit 7542ffd

Browse files
committed
Fix toilet, parking and stop filter icon sizes
1 parent ea90245 commit 7542ffd

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

web/src/components/FilterComponent.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default function FilterComponent(props: LayerFilterProps) {
105105
variant={category === "Bussipysäkki" || category === "Pysäköinti" ? "rounded" : "circular"}
106106
>
107107
<img
108-
style={category === "Vessat" ? {width: 44, height: 44} : {width: 26, height: 26}}
108+
style={category === "Bussipysäkki" || category === "Pysäköinti" || category === "Vessat" ? {width: 38, height: 38} : {width: 26, height: 26}}
109109
src={`/${getCategoryIcon(category)}`}
110110
/>
111111
</Avatar>

web/src/components/style.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ cottage_image.src = `${getCategoryIcon("Leirintä ja majoitus")}`;
101101
const cafe_image: HTMLImageElement = new Image(24, 24);
102102
cafe_image.src = `${getCategoryIcon("Kahvilat ja kioskit")}`;
103103

104-
const toilet_image: HTMLImageElement = new Image(24, 24);
104+
const toilet_image: HTMLImageElement = new Image(32, 32);
105105
toilet_image.src = `${getCategoryIcon("Vessat")}`;
106106

107107
const recycle_image: HTMLImageElement = new Image(24, 24);
@@ -180,8 +180,6 @@ const SYMBOL_LAYOUT: SymbolLayout = {
180180
["string", ["get", "tarmo_category"]],
181181
"Pysäköinti",
182182
1,
183-
"Vessat",
184-
0.9,
185183
0.75
186184
],
187185
"icon-allow-overlap": true,

web/src/utils/utils.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ export const getCategoryColor = (category: string) =>
246246
"Uinti": "#a5407b",
247247
"Talviuinti": "#a5407b",
248248
"Pysäköinti": "#005eb8",
249-
"Bussipysäkki": "#005eb8",
250-
"Rautatieasema": "#005eb8",
251-
"Ratikkapysäkki": "#005eb8",
249+
"Bussipysäkki": "#7361A2",
250+
"Rautatieasema": "#7361A2",
251+
"Ratikkapysäkki": "#7361A2",
252252
"Muinaisjäännökset": "#76280f",
253253
"Leirintä ja majoitus": "#76280f",
254254
"Kahvilat ja kioskit": "#c83e36",

0 commit comments

Comments
 (0)