From 5355d81fc9d0f16a76a58a6ceca59955aa22a2d1 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 4 Jan 2023 14:16:55 -0800 Subject: Support current location --- modern/src/settings/ServerPage.js | 61 +++++++++++++++++++++++++++------------ modern/src/settings/UserPage.js | 61 +++++++++++++++++++++++++++------------ 2 files changed, 86 insertions(+), 36 deletions(-) (limited to 'modern/src/settings') diff --git a/modern/src/settings/ServerPage.js b/modern/src/settings/ServerPage.js index dccb52c6..d0810e5a 100644 --- a/modern/src/settings/ServerPage.js +++ b/modern/src/settings/ServerPage.js @@ -31,6 +31,7 @@ import useCommonUserAttributes from '../common/attributes/useCommonUserAttribute import { useCatch } from '../reactHelper'; import useServerAttributes from '../common/attributes/useServerAttributes'; import useMapStyles from '../map/core/useMapStyles'; +import { map } from '../map/core/MapView'; const useStyles = makeStyles((theme) => ({ container: { @@ -118,24 +119,6 @@ const ServerPage = () => { ))} - setItem({ ...item, latitude: Number(event.target.value) })} - label={t('positionLatitude')} - /> - setItem({ ...item, longitude: Number(event.target.value) })} - label={t('positionLongitude')} - /> - setItem({ ...item, zoom: Number(event.target.value) })} - label={t('serverZoom')} - /> {t('settingsCoordinateFormat')} - setItem({ ...item, latitude: Number(event.target.value) })} - label={t('positionLatitude')} - /> - setItem({ ...item, longitude: Number(event.target.value) })} - label={t('positionLongitude')} - /> - setItem({ ...item, zoom: Number(event.target.value) })} - label={t('serverZoom')} - /> {t('settingsCoordinateFormat')}