From 9878d205993bce47175efc0a2bb7f4c8b914860e Mon Sep 17 00:00:00 2001 From: Umar Adilov <99314948+adilovcode@users.noreply.github.com> Date: Sat, 3 May 2025 16:47:30 +0500 Subject: [PATCH] Added geo location support for map --- src/features/map/ui/yandex-map.tsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/features/map/ui/yandex-map.tsx b/src/features/map/ui/yandex-map.tsx index d36aeca..e7fbbfb 100644 --- a/src/features/map/ui/yandex-map.tsx +++ b/src/features/map/ui/yandex-map.tsx @@ -1,6 +1,10 @@ -import { Map, Placemark, YMaps } from '@pbe/react-yandex-maps'; +import { + GeolocationControl, + Map, + Placemark, + YMaps, +} from '@pbe/react-yandex-maps'; import { isEmpty } from 'lodash'; -import { Dispatch, SetStateAction } from 'react'; import { Point } from '../model'; @@ -58,6 +62,14 @@ export const YandexMap = ({ /> ); })} + );