Open sqcsabbey opened 1 year ago
I'm working with @sqcsabbey on this project, and would also mention that this implementation is working for our current flutter-mapbox-gl map plugin.
I'm curious if you're doing any custom gesture handling that isn't directly compatible with the user gesture that's passed through the transparent pointer?
As @sqcsabbey mentioned, if there's a way to listen for user initiated gestures, we may be able to avoid using the transparent pointer interception altogether.
If it's helpful to understand our use case, we have a feature that is similar to "follow user location" feature, the one that keeps the user location centered on the map. In our feature, we keep the user location and a selected point visible together as a pair. This calculates the bounds that contain the two points, and zooms the map as close as it can while keeping both points visible. When a user manually pans or zooms, we toggle this feature off, and therefore need to capture the gesture to make this determination.
Bumping this to see if there are any recommended gesture handling best practices with this plugin for our situation?
I've submitted a Discord post on this as well: https://discord.com/channels/1004826913229000704/1093609540362178692
I'm trying to switch from using the flutter-mapbox-gl plugin to this one, and I ran into an issue...
I'm using a transparent pointer over the map, in a Stack widget, so I can turn off some automated panning and zooming if the user starts interacting with the map; I'm interpreting gestures as pans, zooms, and rotates, and also letting the gestures bubble through to the map. This works fine with that other mapbox plugin, but with this one I get:
Is there a way to make this work?
Alternatively, is there a way to listen for user initiated zooms, pans, and rotates with this package?