touchZoomRotate prevents both rotation and zoom functionality. Can we prevent rotation and allow zoom in-zoom out and drag to users when they touch/pinch the screen?
Hello team,
Can we prevent rotation but still allow zoom in and zoom out in map for mobile devices where user can pinch/touch screen? I tried setting up touchZoomRotate as false but it prevents both rotation and zooming in map using touch gesture. We want to disable the rotation only and allow user to zoom in and zoom out and drag in the map. Is there any way to achieve this?
map.on("load", () => { map.touchZoomRotate.enable(); map.touchZoomRotate.disableRotation(); });
@anjaliD-syn @stepankuzmin I believe this would solve the above problem
Please let me know if this doesn't solve the above issue
It's now map.target.touchZoomRotate.enable(); map.target.touchZoomRotate.disableRotation(); for react-map-gl