diff --git a/public/images/map/map-desktop.jpg b/public/images/map/map-desktop-old.jpg similarity index 100% rename from public/images/map/map-desktop.jpg rename to public/images/map/map-desktop-old.jpg diff --git a/public/images/map/map-mobile.jpg b/public/images/map/map-mobile-old.jpg similarity index 100% rename from public/images/map/map-mobile.jpg rename to public/images/map/map-mobile-old.jpg diff --git a/public/images/map/map-new-desktop.jpg b/public/images/map/map-new-desktop.jpg new file mode 100644 index 0000000..75a9696 Binary files /dev/null and b/public/images/map/map-new-desktop.jpg differ diff --git a/public/images/map/map-new-mobile.jpg b/public/images/map/map-new-mobile.jpg new file mode 100644 index 0000000..e872bb9 Binary files /dev/null and b/public/images/map/map-new-mobile.jpg differ diff --git a/public/images/map/map-original.jpg b/public/images/map/map-original-old.jpg similarity index 100% rename from public/images/map/map-original.jpg rename to public/images/map/map-original-old.jpg diff --git a/src/components/Map.tsx b/src/components/Map.tsx index 17fe102..1dc1300 100644 --- a/src/components/Map.tsx +++ b/src/components/Map.tsx @@ -575,7 +575,7 @@ function Map({ maxZoom = 1 }: MapProps) { {containerRef.current?.clientWidth && ( map { - setIsImageLoaded(false); - }, [marker]); + useEffect(() => setIsImageLoaded(false), [marker]); + + const { data: count } = useQuery({ + queryKey: ["units", "count", `Rove Home ${marker.title}`], + queryFn: () => + api.get(`units/count?project=Rove Home ${marker.title}`).json(), + }); return (

- {marker.unitsCount} units + {count} units