diff --git a/src/lib/components/lnv/MapLocationMarker.svelte b/src/lib/components/lnv/MapLocationMarker.svelte
index bef543e..cb05142 100644
--- a/src/lib/components/lnv/MapLocationMarker.svelte
+++ b/src/lib/components/lnv/MapLocationMarker.svelte
@@ -7,8 +7,11 @@
let marker: HTMLImageElement | undefined = $state();
+
9 ? `/img/saved/${MAP_ICONS[store.icon ?? "small.png"]}` : "/img/saved/small.png"}
+ src={map.zoom > 9
+ ? `/img/saved/${MAP_ICONS[store.icon ?? "small.png"]}`
+ : "/img/saved/small.png"}
alt="Work Marker"
bind:this={marker}
style="width: 32px;"
@@ -19,4 +22,4 @@
lng: store.lng,
}}
element={marker}
-/>
\ No newline at end of file
+/>
diff --git a/src/lib/components/lnv/MapLocationMarkers.svelte b/src/lib/components/lnv/MapLocationMarkers.svelte
index a9c5879..c3d3e77 100644
--- a/src/lib/components/lnv/MapLocationMarkers.svelte
+++ b/src/lib/components/lnv/MapLocationMarkers.svelte
@@ -8,4 +8,4 @@
{#each locations.current as location (location.data.lat + "-" + location.data.lng)}
-{/each}
\ No newline at end of file
+{/each}
diff --git a/src/lib/components/lnv/VehicleSelector.svelte b/src/lib/components/lnv/VehicleSelector.svelte
index c02855f..e89c96e 100644
--- a/src/lib/components/lnv/VehicleSelector.svelte
+++ b/src/lib/components/lnv/VehicleSelector.svelte
@@ -60,7 +60,9 @@
{#each vehicles.current as vehicle (vehicle.name)}
-
diff --git a/src/lib/components/lnv/location.svelte.ts b/src/lib/components/lnv/location.svelte.ts
index 3bced27..dcc6d7e 100644
--- a/src/lib/components/lnv/location.svelte.ts
+++ b/src/lib/components/lnv/location.svelte.ts
@@ -20,7 +20,7 @@ export const location = $state({
center: [location.lng, location.lat],
zoom: 16,
duration: 1000,
- bearing: location.heading != null ? location.heading : 0
+ bearing: location.heading != null ? location.heading : 0,
},
{
reason: "location",
@@ -53,7 +53,7 @@ export function watchLocation() {
center: [location.lng, location.lat],
zoom: 16,
duration: 1000,
- bearing: location.heading != null ? location.heading : 0
+ bearing: location.heading != null ? location.heading : 0,
},
{
reason: "location",
diff --git a/src/lib/components/lnv/main/SavedLocations.svelte b/src/lib/components/lnv/main/SavedLocations.svelte
index bec6d20..8e899a6 100644
--- a/src/lib/components/lnv/main/SavedLocations.svelte
+++ b/src/lib/components/lnv/main/SavedLocations.svelte
@@ -11,16 +11,17 @@
const locations = stores("location");
function getName(name: string) {
- if(name == "home") {
+ if (name == "home") {
return m["saved.home"]();
- } else if(name == "work") {
+ } else if (name == "work") {
return m["saved.work"]();
- } else if(name == "school") {
+ } else if (name == "school") {
return m["saved.school"]();
}
return name;
}
+
+ }}
+ >
{@const Icon = ICONS[location.data.icon ?? "pin"] ?? MapPinIcon}
{getName(location.data.name)}
@@ -54,4 +56,4 @@
width: 100%;
max-width: 100%;
}
-
\ No newline at end of file
+
diff --git a/src/lib/components/lnv/sidebar/InfoSidebar.svelte b/src/lib/components/lnv/sidebar/InfoSidebar.svelte
index c2a3c4f..a84564e 100644
--- a/src/lib/components/lnv/sidebar/InfoSidebar.svelte
+++ b/src/lib/components/lnv/sidebar/InfoSidebar.svelte
@@ -185,12 +185,15 @@
{
- updateStore({ name: "home", type: "location" }, {
- lat,
- lng,
- name: "home",
- icon: "home"
- })
+ updateStore(
+ { name: "home", type: "location" },
+ {
+ lat,
+ lng,
+ name: "home",
+ icon: "home",
+ },
+ );
}}
>
@@ -199,12 +202,15 @@
{
- updateStore({ name: "school", type: "location" }, {
- lat,
- lng,
- name: "school",
- icon: "school"
- })
+ updateStore(
+ { name: "school", type: "location" },
+ {
+ lat,
+ lng,
+ name: "school",
+ icon: "school",
+ },
+ );
}}
>
@@ -213,12 +219,15 @@
{
- updateStore({ name: "work", type: "location" }, {
- lat,
- lng,
- name: "work",
- icon: "work"
- })
+ updateStore(
+ { name: "work", type: "location" },
+ {
+ lat,
+ lng,
+ name: "work",
+ icon: "work",
+ },
+ );
}}
>
diff --git a/src/lib/components/lnv/sidebar/MainSidebar.svelte b/src/lib/components/lnv/sidebar/MainSidebar.svelte
index 86d4d19..6211a91 100644
--- a/src/lib/components/lnv/sidebar/MainSidebar.svelte
+++ b/src/lib/components/lnv/sidebar/MainSidebar.svelte
@@ -1,9 +1,5 @@