chore: remove dead api routes and require hazards capability
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user