chore: remove dead api routes and require hazards capability
Some checks failed
TrafficCue CI / check (push) Failing after 1m39s
TrafficCue CI / build (push) Failing after 8m44s
TrafficCue CI / build-android (push) Failing after 13m17s

This commit is contained in:
2025-09-26 20:14:26 +02:00
parent 8f85d5a043
commit d9687e3c8d
3 changed files with 20 additions and 45 deletions

View File

@ -19,6 +19,7 @@
import { PMTilesProtocol } from "svelte-maplibre-gl/pmtiles";
import HazardMarker from "./HazardMarker.svelte";
import { hazards } from "./hazards.svelte";
import RequiresCapability from "./RequiresCapability.svelte";
onMount(() => {
window.addEventListener("resize", map.updateMapPadding);
@ -181,12 +182,13 @@
/>
{/if}
<!-- <HazardMarker hazard="bumpy-road" lat={51.347447} lon={7.4028181} /> -->
{#each hazards as hazard (hazard.latitude + "-" + hazard.longitude)}
<HazardMarker
hazard={hazard.type}
lat={hazard.latitude}
lon={hazard.longitude}
/>
{/each}
<RequiresCapability capability="hazards">
{#each hazards as hazard (hazard.latitude + "-" + hazard.longitude)}
<HazardMarker
hazard={hazard.type}
lat={hazard.latitude}
lon={hazard.longitude}
/>
{/each}
</RequiresCapability>
</MapLibre>