From 450d5dd23998d60129a946bd970af1867df28567 Mon Sep 17 00:00:00 2001 From: aramesh-site deploy Date: Fri, 9 Oct 2026 17:46:11 +0000 Subject: [PATCH] =?UTF-8?q?fix(map):=20=D8=B2=D9=88=D9=85=E2=80=8C=D8=A7?= =?UTF-8?q?=D9=88=D8=AA=20=D8=A2=D8=B2=D8=A7=D8=AF=20=D8=AF=D8=B1=20=D9=86?= =?UTF-8?q?=D9=82=D8=B4=D9=87=D9=94=20=D8=B5=D9=81=D8=AD=D9=87=D9=94=20?= =?UTF-8?q?=D9=BE=D8=B1=D9=88=DA=98=D9=87=20=E2=80=94=20=D8=AD=D8=B0=D9=81?= =?UTF-8?q?=20maxBounds=20=DA=A9=D9=87=20=D8=AC=D8=A7=D8=A8=D9=87=E2=80=8C?= =?UTF-8?q?=D8=AC=D8=A7=DB=8C=DB=8C=20=D8=B1=D8=A7=20=D8=A8=D9=87=20=D9=85?= =?UTF-8?q?=D8=AD=D8=AF=D9=88=D8=AF=D9=87=D9=94=20=D9=BE=D8=B1=D9=88=DA=98?= =?UTF-8?q?=D9=87=20=D9=85=DB=8C=E2=80=8C=D8=A8=D8=B3=D8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/map/ProjectsMapSingle.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/map/ProjectsMapSingle.tsx b/frontend/src/map/ProjectsMapSingle.tsx index e978f7c..498cbd1 100644 --- a/frontend/src/map/ProjectsMapSingle.tsx +++ b/frontend/src/map/ProjectsMapSingle.tsx @@ -1,7 +1,7 @@ import { useMemo } from 'react' import { createPortal } from 'react-dom' import { MdOpenInNew } from 'react-icons/md' -import { boundsForProjects, buildGoogleMapsUrl, type MapProject } from '../data/mapProjects' +import { buildGoogleMapsUrl, type MapProject } from '../data/mapProjects' import { useLang } from '../i18n/lang' import { MapViewport } from './MapViewport' import { POPUP_PRIMARY_CLASS, ProjectPopupCard } from './ProjectPopupCard' @@ -25,11 +25,11 @@ export type ProjectsMapSingleProps = { export function ProjectsMapSingle({ location, images = [], className = '' }: ProjectsMapSingleProps) { const { t } = useLang() const projects = useMemo(() => [location], [location]) - const bounds = useMemo(() => boundsForProjects(projects, 0.008), [projects]) + // بدون maxBounds — زوم‌اوت آزاد تا دید کشوری (هم‌رفتار با نقشهٔ صفحهٔ پروژه‌ها) const { containerRef, map, status, retry } = useMapLibre({ center: [location.lng, location.lat], zoom: 15, - maxBounds: bounds, + minZoom: 5, }) const { popupHost, activeProject, closePopup } = useProjectMarkers(map, projects)