From ed45e941141c7ea2f0fc767946e23e476546c67d Mon Sep 17 00:00:00 2001 From: Boubrid Ihab Date: Mon, 20 Jun 2022 23:28:26 +0100 Subject: remove hardcoded default value --- modern/src/map/core/MapView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modern/src/map/core') 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); -- cgit v1.2.3