From cdb88746ef0a4cfb4ffa277a83ab17397ad76610 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Tue, 21 Oct 2025 18:06:47 +0200 Subject: Add region-specific stop icons for Vigo and Santiago --- src/frontend/app/routes/map.tsx | 2 +- .../public/maps/spritesheet/Frame 2 (1).svg | 25 +++++++++++++++++++++ src/frontend/public/maps/spritesheet/sprite.json | 12 ++++++++-- src/frontend/public/maps/spritesheet/sprite.png | Bin 1231 -> 1702 bytes .../public/maps/spritesheet/sprite@2x.json | 12 ++++++++-- src/frontend/public/maps/spritesheet/sprite@2x.png | Bin 1940 -> 3368 bytes 6 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 src/frontend/public/maps/spritesheet/Frame 2 (1).svg (limited to 'src') diff --git a/src/frontend/app/routes/map.tsx b/src/frontend/app/routes/map.tsx index c3a1308..88f4e52 100644 --- a/src/frontend/app/routes/map.tsx +++ b/src/frontend/app/routes/map.tsx @@ -158,7 +158,7 @@ export default function StopMap() { type="symbol" source="stops-source" layout={{ - "icon-image": "stop", + "icon-image": `stop-${region}`, "icon-size": ["interpolate", ["linear"], ["zoom"], 11, 0.4, 18, 0.8], "icon-allow-overlap": true, "icon-ignore-placement": true, diff --git a/src/frontend/public/maps/spritesheet/Frame 2 (1).svg b/src/frontend/public/maps/spritesheet/Frame 2 (1).svg new file mode 100644 index 0000000..148c684 --- /dev/null +++ b/src/frontend/public/maps/spritesheet/Frame 2 (1).svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/frontend/public/maps/spritesheet/sprite.json b/src/frontend/public/maps/spritesheet/sprite.json index 044886e..f6b564f 100644 --- a/src/frontend/public/maps/spritesheet/sprite.json +++ b/src/frontend/public/maps/spritesheet/sprite.json @@ -1,10 +1,18 @@ { - "stop": { - "id": "stop", + "stop-vigo": { + "id": "stop-vigo", "x": 0, "y": 0, "width": 32, "height": 32, "pixelRatio": 1 + }, + "stop-santiago": { + "id": "stop-santiago", + "x": 32, + "y": 0, + "width": 32, + "height": 32, + "pixelRatio": 1 } } diff --git a/src/frontend/public/maps/spritesheet/sprite.png b/src/frontend/public/maps/spritesheet/sprite.png index 9631d82..c6b9260 100644 Binary files a/src/frontend/public/maps/spritesheet/sprite.png and b/src/frontend/public/maps/spritesheet/sprite.png differ diff --git a/src/frontend/public/maps/spritesheet/sprite@2x.json b/src/frontend/public/maps/spritesheet/sprite@2x.json index 2a58c5f..b5bfb0b 100644 --- a/src/frontend/public/maps/spritesheet/sprite@2x.json +++ b/src/frontend/public/maps/spritesheet/sprite@2x.json @@ -1,10 +1,18 @@ { - "stop": { - "id": "stop", + "stop-vigo": { + "id": "stop-vigo", "x": 0, "y": 0, "width": 64, "height": 64, "pixelRatio": 2 + }, + "stop-santiago": { + "id": "stop-santiago", + "x": 64, + "y": 0, + "width": 64, + "height": 64, + "pixelRatio": 2 } } diff --git a/src/frontend/public/maps/spritesheet/sprite@2x.png b/src/frontend/public/maps/spritesheet/sprite@2x.png index 58f2226..1f8e7b3 100644 Binary files a/src/frontend/public/maps/spritesheet/sprite@2x.png and b/src/frontend/public/maps/spritesheet/sprite@2x.png differ -- cgit v1.3