diff options
author | Boubrid Ihab <boubrid.ihab@gmail.com> | 2022-06-20 23:28:26 +0100 |
---|---|---|
committer | Boubrid Ihab <boubrid.ihab@gmail.com> | 2022-06-20 23:28:26 +0100 |
commit | ed45e941141c7ea2f0fc767946e23e476546c67d (patch) | |
tree | fc76181be0c5a5da91dc6b8da26a3bd704915a64 /modern/src/map | |
parent | 0ed9f83afacf0200d62bfd59b06d273c57cb48a9 (diff) | |
download | trackermap-web-ed45e941141c7ea2f0fc767946e23e476546c67d.tar.gz trackermap-web-ed45e941141c7ea2f0fc767946e23e476546c67d.tar.bz2 trackermap-web-ed45e941141c7ea2f0fc767946e23e476546c67d.zip |
remove hardcoded default value
Diffstat (limited to 'modern/src/map')
-rw-r--r-- | modern/src/map/core/MapView.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/map/core/MapView.js b/modern/src/map/core/MapView.js index f7d62c77..38191a94 100644 --- a/modern/src/map/core/MapView.js +++ b/modern/src/map/core/MapView.js @@ -78,7 +78,7 @@ const MapView = ({ children }) => { const [activeMapStyles] = usePersistedState('activeMapStyles', ['locationIqStreets', 'osm', 'carto']); const [defaultMapStyle] = usePersistedState('selectedMapStyle', 'locationIqStreets'); const mapboxAccessToken = useAttributePreference('mapboxAccessToken'); - const maxZoom = useAttributePreference('web.maxZoom') || 16; + const maxZoom = useAttributePreference('web.maxZoom'); useEffect(() => { map.setMaxZoom(maxZoom); |