From 44ce3b40c5eca1c44c4db5ed5b6cd35bd57ec967 Mon Sep 17 00:00:00 2001 From: Legonzaur Date: Sat, 4 Jul 2026 23:18:17 +0200 Subject: [PATCH] feat: select route --- .gitattributes | 3 + app/components/map.client.vue | 114 ++++++++++++++++++++++++++++++++++ app/pages/map.vue | 60 +----------------- nuxt.config.ts | 4 +- package-lock.json | 1 + package.json | 1 + public/clusters.json | 3 + public/lignes.json | 3 + public/routes.json | 3 + 9 files changed, 131 insertions(+), 61 deletions(-) create mode 100644 .gitattributes create mode 100644 app/components/map.client.vue create mode 100644 public/clusters.json create mode 100644 public/lignes.json create mode 100644 public/routes.json diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..5bfa5d2 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +clusters.json filter=lfs diff=lfs merge=lfs -text +lignes.json filter=lfs diff=lfs merge=lfs -text +routes.json filter=lfs diff=lfs merge=lfs -text diff --git a/app/components/map.client.vue b/app/components/map.client.vue new file mode 100644 index 0000000..753df88 --- /dev/null +++ b/app/components/map.client.vue @@ -0,0 +1,114 @@ + + + + + diff --git a/app/pages/map.vue b/app/pages/map.vue index 076c886..84629ab 100644 --- a/app/pages/map.vue +++ b/app/pages/map.vue @@ -1,61 +1,3 @@ - - diff --git a/nuxt.config.ts b/nuxt.config.ts index fa4affe..eb97715 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -5,8 +5,8 @@ export default defineNuxtConfig({ modules: ["@nuxt/eslint", "nuxt-maplibre"], vite: { optimizeDeps: { - noDiscovery: true, - include: ["maplibre-gl"], + // noDiscovery: true, + // include: ["maplibre-gl"], }, }, }); diff --git a/package-lock.json b/package-lock.json index be02618..973d902 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "hasInstallScript": true, "dependencies": { "@nuxt/eslint": "^1.16.0", + "@types/geojson": "^7946.0.16", "eslint": "^10.6.0", "nuxt": "^4.4.8", "nuxt-maplibre": "^1.2.2", diff --git a/package.json b/package.json index 33ff960..a2e80ff 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ }, "dependencies": { "@nuxt/eslint": "^1.16.0", + "@types/geojson": "^7946.0.16", "eslint": "^10.6.0", "nuxt": "^4.4.8", "nuxt-maplibre": "^1.2.2", diff --git a/public/clusters.json b/public/clusters.json new file mode 100644 index 0000000..13af1ce --- /dev/null +++ b/public/clusters.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5dafff3005dd0a723844601139929e4b300956bc314b69e9d23f4ab28e25824b +size 970030 diff --git a/public/lignes.json b/public/lignes.json new file mode 100644 index 0000000..0e40ae5 --- /dev/null +++ b/public/lignes.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c6a9205240875459aab20524b1d730756c60dee0d9968ac389bd420d068196d +size 4145742 diff --git a/public/routes.json b/public/routes.json new file mode 100644 index 0000000..5c269f3 --- /dev/null +++ b/public/routes.json @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce75f8eeb9285a9e3cfe703e5c0557cb50de116ebafe2e6afc1577ce3637396a +size 107688