diff --git a/src/data/fleet/f-metro~losangeles~rail~rt.json b/src/data/fleet/f-metro~losangeles~rail~rt.json
new file mode 100644
index 00000000..8c60395c
--- /dev/null
+++ b/src/data/fleet/f-metro~losangeles~rail~rt.json
@@ -0,0 +1,38 @@
+[
+ {
+ "type": "Heavy Rail Vehicle",
+ "manufacturer": "Breda",
+ "model": "A650",
+ "year": 1991,
+ "regex": "^5[0-9]{2}|^6[0-9]{2}",
+ "image": "/vehicles/metro/A650.jpeg",
+ "credit": "Metro photo"
+ },
+ {
+ "type": "Light Rail Vehicle",
+ "manufacturer": "Siemens",
+ "model": "P2000",
+ "year": 1996,
+ "regex": "^2[0-9]{2}|^3[0-9]{2}",
+ "image": "/vehicles/metro/P2000.jpeg",
+ "credit": "Metro photo"
+ },
+ {
+ "type": "Light Rail Vehicle",
+ "manufacturer": "Ansaldobreda",
+ "model": "P2550",
+ "year": 2006,
+ "regex": "^7[0-9]{2}",
+ "image": "/vehicles/metro/P2550.jpeg",
+ "credit": "Metro photo"
+ },
+ {
+ "type": "Light Rail Vehicle",
+ "manufacturer": "Kinkisharyo",
+ "model": "P3010",
+ "year": 2014,
+ "regex": "^1[0-9]{3}",
+ "image": "/vehicles/metro/P3010.jpeg",
+ "credit": "Metro photo"
+ }
+]
\ No newline at end of file
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index d10e251d..6ede8e61 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -40,6 +40,12 @@
import Artwork from '../components/artwork.svelte';
import mtsFleetData from '../data/fleet/f-mts~rt~onebusaway.json'
+ import metroFleetData from '../data/fleet/f-metro~losangeles~rail~rt.json'
+
+ let fleetData = {
+ "f-mts~rt~onebusaway": mtsFleetData,
+ "f-metro~losangeles~rail~rt": metroFleetData
+ }
let enabledlayerstyle =
'text-black dark:text-white bg-blue-200 dark:bg-gray-700 border border-blue-800 dark:border-blue-200 text-sm md:text-sm';
@@ -2374,19 +2380,15 @@ on:keydown={() => {
{/if}
{/if}
{#if selectedVehicle.properties.agency == 'f-metro~losangeles~rail~rt'}
- {#if selectedVehicle.properties.maptag == 'A'}
-
- {:else if selectedVehicle.properties.maptag == 'B'}
-
- {:else if selectedVehicle.properties.maptag == 'C'}
-
- {:else if selectedVehicle.properties.maptag == 'D'}
-
- {:else if selectedVehicle.properties.maptag == 'E'}
-
- {:else if selectedVehicle.properties.maptag == 'K'}
-
- {/if}
+
+
+ {/if}
+ {#if selectedVehicle.properties.agency == 'f-metro~losangeles~bus~rt'}
+
+
+
+ {selectedVehicle.properties.maptag}
+
{/if}
{#if selectedVehicle.properties.agency == 'f-metrolinktrains~rt'}
@@ -2395,11 +2397,20 @@ on:keydown={() => {
{/if}
+ {#if selectedVehicle.properties.agency == 'f-metra~rt'}
+
+
+
+
+
+ {selectedVehicle.properties.maptag}
+
+ {/if}
{#if selectedVehicle.properties.agency == 'f-amtrak~rt'}
{/if}
- {#if (selectedVehicle.properties.agency != 'f-metro~losangeles~rail~rt')}
+ {#if (selectedVehicle.properties.agency != 'f-metro~losangeles~rail~rt' && selectedVehicle.properties.agency != 'f-metra~rt' && selectedVehicle.properties.agency != 'f-metro~losangeles~bus~rt')}
{selectedVehicle.properties.maptag}
{/if}
@@ -2419,15 +2430,18 @@ on:keydown={() => {
Bearing {selectedVehicle.properties.bearing.toFixed(3)}
{/if}
- {#if selectedVehicle.properties.agency == 'f-mts~rt~onebusaway'}
- {#each mtsFleetData as { type, manufacturer, model, year, regex, home, image, credit }}
+ {#if selectedVehicle.properties.agency == 'f-mts~rt~onebusaway' || selectedVehicle.properties.agency == 'f-metro~losangeles~rail~rt'}
+ {#each fleetData[selectedVehicle.properties.agency] as { type, manufacturer, model, year, regex, home, image, credit }}
{#if (new RegExp(regex)).test(selectedVehicle.properties.vehicleIdLabel || '')}
Type {type}
Vehicle {year || ''} {manufacturer} {model}
- Home {home}
-
+ {#if home}
+ Home {home}
+
+ {/if}
+
{#if image}
{credit}
diff --git a/static/lines/metro.svg b/static/lines/metro.svg
new file mode 100644
index 00000000..245f1fb3
--- /dev/null
+++ b/static/lines/metro.svg
@@ -0,0 +1,8 @@
+
+
diff --git a/static/vehicles/metro/A650.jpeg b/static/vehicles/metro/A650.jpeg
new file mode 100644
index 00000000..d0facd8a
Binary files /dev/null and b/static/vehicles/metro/A650.jpeg differ
diff --git a/static/vehicles/metro/P2000.jpeg b/static/vehicles/metro/P2000.jpeg
new file mode 100644
index 00000000..ea0c76b7
Binary files /dev/null and b/static/vehicles/metro/P2000.jpeg differ
diff --git a/static/vehicles/metro/P2550.jpeg b/static/vehicles/metro/P2550.jpeg
new file mode 100644
index 00000000..2732e23b
Binary files /dev/null and b/static/vehicles/metro/P2550.jpeg differ
diff --git a/static/vehicles/metro/P3010.jpeg b/static/vehicles/metro/P3010.jpeg
new file mode 100644
index 00000000..867fbd9f
Binary files /dev/null and b/static/vehicles/metro/P3010.jpeg differ