From 997d4d4967fb5d80d9fd13a0a90daaa26ffcc615 Mon Sep 17 00:00:00 2001 From: log101 Date: Wed, 17 Jan 2024 09:07:38 +0300 Subject: [PATCH] feat: switch to open street map --- package-lock.json | 14 +++ package.json | 1 + public/goal.svg | 1 + src/env.d.ts | 1 + src/layouts/Layout.astro | 55 ++-------- src/pages/index.astro | 219 +++++++++++++++++---------------------- 6 files changed, 122 insertions(+), 169 deletions(-) create mode 100644 public/goal.svg diff --git a/package-lock.json b/package-lock.json index bc504b9..9eec934 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "@astrojs/tailwind": "^5.1.0", "@radix-ui/react-icons": "^1.3.0", "@radix-ui/react-slot": "^1.0.2", + "@types/leaflet": "^1.9.8", "@types/react": "^18.2.47", "@types/react-dom": "^18.2.18", "astro": "^4.1.2", @@ -1325,6 +1326,11 @@ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==" }, + "node_modules/@types/geojson": { + "version": "7946.0.13", + "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.13.tgz", + "integrity": "sha512-bmrNrgKMOhM3WsafmbGmC+6dsF2Z308vLFsQ3a/bT8X8Sv5clVYpPars/UPq+sAaJP+5OoLAYgwbkS5QEJdLUQ==" + }, "node_modules/@types/google.maps": { "version": "3.54.10", "resolved": "https://registry.npmjs.org/@types/google.maps/-/google.maps-3.54.10.tgz", @@ -1339,6 +1345,14 @@ "@types/unist": "*" } }, + "node_modules/@types/leaflet": { + "version": "1.9.8", + "resolved": "https://registry.npmjs.org/@types/leaflet/-/leaflet-1.9.8.tgz", + "integrity": "sha512-EXdsL4EhoUtGm2GC2ZYtXn+Fzc6pluVgagvo2VC1RHWToLGlTRwVYoDpqS/7QXa01rmDyBjJk3Catpf60VMkwg==", + "dependencies": { + "@types/geojson": "*" + } + }, "node_modules/@types/mdast": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.3.tgz", diff --git a/package.json b/package.json index afb1c48..1b57f02 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "@astrojs/tailwind": "^5.1.0", "@radix-ui/react-icons": "^1.3.0", "@radix-ui/react-slot": "^1.0.2", + "@types/leaflet": "^1.9.8", "@types/react": "^18.2.47", "@types/react-dom": "^18.2.18", "astro": "^4.1.2", diff --git a/public/goal.svg b/public/goal.svg new file mode 100644 index 0000000..70d072b --- /dev/null +++ b/public/goal.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/env.d.ts b/src/env.d.ts index d0c240b..623fcd7 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -1,2 +1,3 @@ /// /// +/// diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 8cf4171..3ef0367 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -9,51 +9,18 @@ const googleSdkKey = import.meta.env.MAPS_SDK_KEY; + + - Konulu Konum diff --git a/src/pages/index.astro b/src/pages/index.astro index 55ffcfb..957d7c4 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -20,10 +20,10 @@ import LocationButton from '@/components/LockedContent';
- Ayşe + Abdurrahman -

Aşağıdaki konuma gitmen

+

Aşağıdaki konuma gitmen gerekiyor.

@@ -41,140 +41,109 @@ import LocationButton from '@/components/LockedContent';