aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-05 11:26:08 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-05 11:26:08 -0700
commita32d656b5fcb2eb445cb984db4844683d49f7c57 (patch)
tree200bf748fffb7e492ca13deac6b90a4402942a5b
parentec213b4d4dbe9a25bfaa26d49bf5b6ffee0632bc (diff)
downloadtrackermap-web-a32d656b5fcb2eb445cb984db4844683d49f7c57.tar.gz
trackermap-web-a32d656b5fcb2eb445cb984db4844683d49f7c57.tar.bz2
trackermap-web-a32d656b5fcb2eb445cb984db4844683d49f7c57.zip
Handle zero zoom
-rw-r--r--modern/src/map/main/MapDefaultCamera.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/map/main/MapDefaultCamera.js b/modern/src/map/main/MapDefaultCamera.js
index 6ccf660e..bb9ea404 100644
--- a/modern/src/map/main/MapDefaultCamera.js
+++ b/modern/src/map/main/MapDefaultCamera.js
@@ -10,7 +10,7 @@ const MapDefaultCamera = () => {
const defaultLatitude = usePreference('latitude');
const defaultLongitude = usePreference('longitude');
- const defaultZoom = usePreference('zoom');
+ const defaultZoom = usePreference('zoom', 0);
const [initialized, setInitialized] = useState(false);