Open randomdude583 opened 4 years ago
I have a similar problem too, I have a Container over the Map in a Stack, when I click in the Container elements, the OnTap of the Container and the OnTap of the map fire at the same time.
Also happens with cursors, when I put a Button which is over the Map, the cursor doesn't change, always appears the hand cursor even though you put another one.
@Pizzacorn, Yep, that sounds exactly like the behavior that I am seeing.
Is there any update on this issue? I would really like to use this in my next roll out.
Thanks,
I'm having similar issues when I tried to use Marker/onInfoWindowTap on web
Same issue. I have a Drawer with ListView, drag listview up and down GoogleMap interactive will fire. Tap ListTiles or any other buttons in Drawer GoogleMap Marker/oninfoWindow onTap or will fire. Try to setState on map interactive false doesn't work. Try to use transparent Container or GestureDetecor on top layer doesn't work. Flutter web user waiting for updates.
I've been looking into this, and it isnt local to this repository. This repo uses the google_maps plugin to generate the map for web, and it has the same problem. There is also this repository, which is a early development version of the google_maps_flutter plugin from the flutter.dev team. It has some features that this repo does not have, but also has a lot of missing features, and also has the transparent click issue, as it is built using the same base plugin.
Hope this helps somebody
Wow! I'm with the same issue in web.
I tried wrapping the GoogleMap
widget into a IgnorePointer
widget and same happens.
Somehow, web native GoogleMap
is always consuming view events.
In Android it works fine (No action allowed at all when wrapped with an IgnorePointer
).
@joaquini, yep, I tried the IgnorePointer as well. Its definitely the JS google map that is consuming all of the touch events. The problem persists in other libraries implementing the google_maps library here
This issue is still reproducible, and makes this plugin mostly unusable in web applications, since you can't properly put any controls on top of the map.
This issue is still reproducible, and makes this plugin mostly unusable in web applications, since you can't properly put any controls on top of the map.
This is a bug in flutter with iframes and will be fixed in framework. We have to wait or look for a good workaround
This is a bug in flutter with iframes and will be fixed in framework. We have to wait or look for a good workaround
Do you have a link with official info about the progress on this?
This is a bug in flutter with iframes and will be fixed in framework. We have to wait or look for a good workaround
Do you have a link with official info about the progress on this?
I'm facing the same issue, is there a possible workaround for this?
Does anyone have an update on this? I am getting this exact behaviour and cant seem to find any fixes or workarounds
Not that anyone is in any doubt but I'll add a plus one. I too have this. Stacks and google maps just don't seem to mix. Not just capturing, or rather listening to all mouse or touch events, but it even stops the cursor changing, e.g. and inkwell on a widget higher in the stack wont cause the cursor to change appropriately. Real shame as screen real estate such a massive issue that hovering buttons over the top of the map is a huge help and while the buttons do also capture a click (any widget requiring a drag gesture is definitely not usable, but single taps are just about okay except...) those widgets don't give a different cursor on mouse-driven devices, so users (especially old ones who don't just try tapping) are convinced a button isn't a button.
This: https://pub.dev/packages/pointer_interceptor Has got round the problem completely for me.
I have a Stack with a button and a GoogleMap. When I click the Button, the onTap from the button AND the GoogleMap fire.
EDIT - It seems to work fine on Mobile, This problem occurs when building for web.