a14n / dart-google-maps

A library to use Google Maps JavaScript API v3 from Dart scripts.
Other
125 stars 63 forks source link

Google Map absorbing clicks to elements higher in a stack #82

Closed randomdude583 closed 2 years ago

randomdude583 commented 4 years ago

If the map is placed in a Stack, and other elements are placed above the map, the map will consume all touch events. Map can be dragged, and onTap fired through the above elements. This issue also seems to be an issue in all libraries I have found that depend on this library.

I also created an issue in the flutter_google_maps repository here

a14n commented 4 years ago

It doesn't look related to _googlemaps package but rather related to its flutter integration.

joaquini commented 4 years ago

Can confirm this issue is happening. Even wrapping the GoogleMap into a IgnorePointer it consumes all the touch events.

tomrozb commented 4 years ago

@a14n looks like all the Flutter packages that provide Google Maps are based on google_maps package and have exactly the same issue. Can it be solved somehow in this package? Any thoughts?

ditman commented 4 years ago

This is a known Flutter Web issue, see this (there's probably more examples):

https://github.com/flutter/flutter/issues/54027

It is not exclusive to google maps, or any of the plugins related to google maps.

a14n commented 2 years ago

Closing as flutter/flutter#54027 is now closed.