diff options
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/map/core/MapView.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modern/src/map/core/MapView.js b/modern/src/map/core/MapView.js index 38191a94..98865157 100644 --- a/modern/src/map/core/MapView.js +++ b/modern/src/map/core/MapView.js @@ -81,7 +81,9 @@ const MapView = ({ children }) => { const maxZoom = useAttributePreference('web.maxZoom'); useEffect(() => { - map.setMaxZoom(maxZoom); + if (maxZoom) { + map.setMaxZoom(maxZoom); + } }, [maxZoom]); useEffect(() => { |