From 085887615a27599880a5009859b1ea55ef496c54 Mon Sep 17 00:00:00 2001
From: Alexis <35.alexis.pele@gmail.com>
Date: Fri, 13 Oct 2023 17:44:52 +0200
Subject: [PATCH] Added flyTo support ; targets players
The implementation forces Vue to attach vanilla event handlers, because their VDom doesn't bubble up and there's no way for it to easily communicate with Astro components.
Nanostores aren't an option because .astro files are rendered on the server, so the store can't be used client side (would be nice if it did tho!!!)
---
src/components/maps/WorldMap.astro | 326 +++++++++---------
src/components/maps/overlay/SearchMarkers.vue | 20 +-
src/components/maps/worldStore.ts | 9 -
3 files changed, 179 insertions(+), 176 deletions(-)
diff --git a/src/components/maps/WorldMap.astro b/src/components/maps/WorldMap.astro
index 717e269f..a444813d 100644
--- a/src/components/maps/WorldMap.astro
+++ b/src/components/maps/WorldMap.astro
@@ -12,177 +12,185 @@ const { markers, players } = $world.get()