Added geo location support for map
This commit is contained in:
parent
206f3da23e
commit
9878d20599
@ -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 { isEmpty } from 'lodash';
|
||||||
import { Dispatch, SetStateAction } from 'react';
|
|
||||||
|
|
||||||
import { Point } from '../model';
|
import { Point } from '../model';
|
||||||
|
|
||||||
@ -58,6 +62,14 @@ export const YandexMap = ({
|
|||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
<GeolocationControl
|
||||||
|
options={{
|
||||||
|
position: {
|
||||||
|
bottom: 20,
|
||||||
|
right: 20,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</Map>
|
</Map>
|
||||||
</YMaps>
|
</YMaps>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user