Is it possible to control the rotation gesture?If the user want to zoom in/out in the map should the rotation be locked until the user tries to rotate.
In our latest release - 200.8 - we have added a property to our InteractionOptions that enables you to disable rotation during pinch zoom gestures. This gives you the flexibility of supporting pinch zoom like Google Maps (if you zoom it does not rotate) or Apple Maps (allows rotation when zooming). Note that the latter remains the default.
Please see our release notes and relevant API reference for more info.
Thanks for your feedback on this.
There's not currently a way to make it behave like Google Maps. I'll create an issue in our internal tracker as a feature request.
I want it to work like Google Maps app on iOSIf you zoom it do not rotate!
Also, there's another gesture you can use to zoom. It's like a double-tap, but instead of releasing the second tap, keep your finger down and then drag up or down. This will zoom without any possibility of causing a rotation.
The ArcGISMapViewController has an "interactionOptions" property: https://developers.arcgis.com/flutter/api-reference/reference/arcgis_maps/ArcGISMapViewController/interactionOptions.html
There are several options, but the one you might want is the "snapToNorthThreshold" value. This will be a number in degrees. If, at the end of the user's pinch gesture, the rotation is less than this value, the map will snap to north. This value defaults to 7.5 degrees.
That might not be exactly what you want -- if not, please describe in more detail what sort of behaviour you'd like to see.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.