diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-05 11:26:08 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-05 11:26:08 -0700 |
commit | a32d656b5fcb2eb445cb984db4844683d49f7c57 (patch) | |
tree | 200bf748fffb7e492ca13deac6b90a4402942a5b /modern/src | |
parent | ec213b4d4dbe9a25bfaa26d49bf5b6ffee0632bc (diff) | |
download | trackermap-web-a32d656b5fcb2eb445cb984db4844683d49f7c57.tar.gz trackermap-web-a32d656b5fcb2eb445cb984db4844683d49f7c57.tar.bz2 trackermap-web-a32d656b5fcb2eb445cb984db4844683d49f7c57.zip |
Handle zero zoom
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/map/main/MapDefaultCamera.js | 2 |
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); |