[Feat] Expose props mapping to disableRotation()
on the touch-zoom-rotate handler
#2284
Labels
disableRotation()
on the touch-zoom-rotate handler
#2284
Target Use Case
Currently it's not possible to enable touch zoom but disable touch rotate.
The touch zoom+rotate handlers for both Maplibre and Mapbox expose a
disableRotation()
method, so that sort of granularity is allowed by the base libraries.Proposal
There are different ways the API could look, but an example (that I believe was the case with older versions of this library) is: expose an additional
touchRotate
prop that, iffalse
, will cause callingdisableRotation()
on the touch-zoom-rotate handler.The text was updated successfully, but these errors were encountered: