From 58fcf52cd445180aa15f05087fdca7f5a52f93ed Mon Sep 17 00:00:00 2001 From: SRP-mango Date: Tue, 21 Nov 2023 00:39:14 +0700 Subject: [PATCH] toggle destination card and move when click location on search bar list --- src/components/NavigationMapCard.vue | 38 ++++++++++++++++++++++++++++ src/views/Home.vue | 1 + 2 files changed, 39 insertions(+) create mode 100644 src/components/NavigationMapCard.vue diff --git a/src/components/NavigationMapCard.vue b/src/components/NavigationMapCard.vue new file mode 100644 index 0000000..860c01c --- /dev/null +++ b/src/components/NavigationMapCard.vue @@ -0,0 +1,38 @@ + + + \ No newline at end of file diff --git a/src/views/Home.vue b/src/views/Home.vue index d6d0e65..86c00a9 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -121,6 +121,7 @@ const moveToLocation = (result) => { const lon = parseFloat(result.lon); center.value = [lon, lat]; showSearchBar.value = false; + popupData.value = result; // Set the selected search result as popupData }; const performSearch = async () => {