diff --git a/.prettierignore b/.prettierignore
index aa41e55..7a27cd4 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -1,2 +1,3 @@
android/
-dist/
\ No newline at end of file
+dist/
+src-tauri/
\ No newline at end of file
diff --git a/eslint.config.mjs b/eslint.config.mjs
index f02b984..18e073a 100644
--- a/eslint.config.mjs
+++ b/eslint.config.mjs
@@ -26,7 +26,7 @@ export default tseslint.config(
],
},
},
- [globalIgnores(["./android", "./dist"])],
+ [globalIgnores(["./android", "./dist", "./src-tauri"])],
{
languageOptions: {
globals: {
diff --git a/index.html b/index.html
index 64a4031..9cd4ae9 100644
--- a/index.html
+++ b/index.html
@@ -3,7 +3,10 @@
-
+
TrafficCue
diff --git a/public/style.json b/public/style.json
index 5a805c6..f2bee8b 100644
--- a/public/style.json
+++ b/public/style.json
@@ -1,7 +1,6 @@
{
"version": 8,
- "sources": {
- },
+ "sources": {},
"sprite": "https://tiles.openfreemap.org/sprites/ofm_f384/ofm",
"glyphs": "https://tiles.openfreemap.org/fonts/{fontstack}/{range}.pbf",
"layers": []
diff --git a/src/lib/components/lnv/FullscreenMap.svelte b/src/lib/components/lnv/FullscreenMap.svelte
index cc352cd..cf6e73a 100644
--- a/src/lib/components/lnv/FullscreenMap.svelte
+++ b/src/lib/components/lnv/FullscreenMap.svelte
@@ -10,7 +10,11 @@
import { location } from "./location.svelte";
import { saved } from "$lib/saved.svelte";
import RoutingLayers from "$lib/services/navigation/RoutingLayers.svelte";
- import { getPMTilesURL, hasPMTiles, protocol } from "$lib/services/OfflineTiles";
+ import {
+ getPMTilesURL,
+ hasPMTiles,
+ protocol,
+ } from "$lib/services/OfflineTiles";
import { layers, worldLayers } from "$lib/mapLayers";
import { PMTilesProtocol } from "svelte-maplibre-gl/pmtiles";
@@ -43,32 +47,26 @@
location.locked = true;
// @ts-expect-error - not typed
window.map = map.value;
-
- // const worldUrl = await getPMTiles("world");
- // if(worldUrl) {
- map.value!.addSource("ne2_shaded", { // TODO: rename to world
- type: "vector",
- url: await getPMTilesURL("world"),
- attribution: "Natural Earth",
-// maxzoom: 6
- })
- // @ts-expect-error - not typed correctly
- worldLayers.forEach(l => map.value!.addLayer(l));
- // }
+ map.value!.addSource("ne2_shaded", {
+ // TODO: rename to world
+ type: "vector",
+ url: await getPMTilesURL("world"),
+ attribution: "Natural Earth",
+ });
- // const url = await getPMTiles("tiles");
- // console.log(url)
- // if(url) {
- map.value!.addSource("openmaptiles", {
- type: "vector",
- url: await hasPMTiles("tiles") ? await getPMTilesURL("tiles") : "pmtiles://https://trafficcue-tiles.picoscratch.de/germany.pmtiles"
- })
+ // @ts-expect-error - not typed correctly
+ worldLayers.forEach((l) => map.value!.addLayer(l));
+ map.value!.addSource("openmaptiles", {
+ type: "vector",
+ url: (await hasPMTiles("tiles"))
+ ? await getPMTilesURL("tiles")
+ : "pmtiles://https://trafficcue-tiles.picoscratch.de/germany.pmtiles",
+ });
- // @ts-expect-error - not typed correctly
- layers.forEach(l => map.value!.addLayer(l));
- // }
+ // @ts-expect-error - not typed correctly
+ layers.forEach((l) => map.value!.addLayer(l));
}}
onclick={(e) => {
if (view.current.type == "main" || view.current.type == "info") {
diff --git a/src/lib/components/lnv/Sidebar.svelte b/src/lib/components/lnv/Sidebar.svelte
index e36f411..14f4956 100644
--- a/src/lib/components/lnv/Sidebar.svelte
+++ b/src/lib/components/lnv/Sidebar.svelte
@@ -27,8 +27,6 @@
import * as Popover from "../ui/popover";
import { routing } from "$lib/services/navigation/routing.svelte";
import InRouteSidebar from "./sidebar/InRouteSidebar.svelte";
- import say from "$lib/services/navigation/TTS";
- import { downloadPMTiles } from "$lib/services/OfflineTiles";
import SettingsSidebar from "./sidebar/settings/SettingsSidebar.svelte";
import AboutSidebar from "./sidebar/settings/AboutSidebar.svelte";
import OfflineMapsSidebar from "./sidebar/settings/OfflineMapsSidebar.svelte";
@@ -45,7 +43,7 @@
settings: SettingsSidebar,
about: AboutSidebar,
"offline-maps": OfflineMapsSidebar,
- "dev-options": DeveloperSidebar
+ "dev-options": DeveloperSidebar,
};
let isDragging = false;
@@ -164,9 +162,11 @@
-