aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/Map.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/map/Map.js')
-rw-r--r--modern/src/map/Map.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/modern/src/map/Map.js b/modern/src/map/Map.js
index d83c297d..8a43e97b 100644
--- a/modern/src/map/Map.js
+++ b/modern/src/map/Map.js
@@ -93,23 +93,6 @@ const Map = ({ children }) => {
};
}, []);
- useEffect(() => {
- if (mapReady && Object.values(map.getStyle().sources).some(e => e.type === 'raster')) {
- const onIdle = function () {
- const zoom = Math.round(map.getZoom());
- if (zoom !== map.getZoom()) {
- map.zoomTo(zoom);
- }
- };
- map.scrollZoom.setWheelZoomRate(1);
- map.on('idle', onIdle);
- return () => {
- map.scrollZoom.setWheelZoomRate(1/450);
- map.off('idle', onIdle);
- }
- }
- }, [mapReady]);
-
useLayoutEffect(() => {
const currentEl = containerEl.current;
currentEl.appendChild(element);