aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/SelectedDeviceMap.js
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2021-12-07 00:53:01 -0600
committerIván Ávalos <avalos@disroot.org>2021-12-07 00:53:01 -0600
commit8164e6b30e007a3eeaea25decf98ccb098d9e85f (patch)
tree332aa2d38bc0f3c3ae3f1001909624e041573428 /modern/src/map/SelectedDeviceMap.js
parenta273d60becc5ccc9e4626325ea2dca20271b36bc (diff)
downloadetbsa-traccar-web-8164e6b30e007a3eeaea25decf98ccb098d9e85f.tar.gz
etbsa-traccar-web-8164e6b30e007a3eeaea25decf98ccb098d9e85f.tar.bz2
etbsa-traccar-web-8164e6b30e007a3eeaea25decf98ccb098d9e85f.zip
Changed stuff
Diffstat (limited to 'modern/src/map/SelectedDeviceMap.js')
-rw-r--r--modern/src/map/SelectedDeviceMap.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/map/SelectedDeviceMap.js b/modern/src/map/SelectedDeviceMap.js
index 6384717..d05394b 100644
--- a/modern/src/map/SelectedDeviceMap.js
+++ b/modern/src/map/SelectedDeviceMap.js
@@ -16,10 +16,10 @@ const SelectedDeviceMap = () => {
useEffect(() => {
if (mapCenter) {
- map.easeTo({ center: mapCenter.position });
+ map.easeTo({ center: mapCenter.position, zoom:18 });
}
}, [mapCenter]);
-
+
return null;
};