New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[google_maps_flutter_web] Implement onTap function in infoWindow #67289
Comments
@Sammius |
Hi @darshankawar! I added the link. Regarding But if you need:)
|
Hey @Sammius, can you add a small example of the code that you want to write? I'm not sure I have a good repro case for this feature. Thanks! |
Hi @ditman I just would like to have the same functionality and appearance on Mobile and Web. There is an Right now I am doing something like this:
It's not like in Mobile, but I can't figure out how to catch the event of clicking on a specific And in my opinion, it looks very unstable and ugly. |
@Sammius so the issue is that the (I agree that you shouldn't be doing that weird onclick handler) |
@ditman everything is quite simple there:
|
This definitely should work, I'll work on this next. Thanks for reporting! |
Turns out the InfoWindow class in the JS SDK of google maps does not have a click event (docs)! I'll have to synthesize it. |
* Update package:google_maps to ^3.4.5. * Fix GoogleMapController.getLatLng(): flutter/flutter#67606 * Make InfoWindow contents clickable so onTap works as advertised: flutter/flutter#67289 * Fix InfoWindow snippets when converting initial markers: flutter/flutter#67854
The fix for InfoWindows not responding to tap events is published as |
* Update package:google_maps to ^3.4.5. * Fix GoogleMapController.getLatLng(): flutter/flutter#67606 * Make InfoWindow contents clickable so onTap works as advertised: flutter/flutter#67289 * Fix InfoWindow snippets when converting initial markers: flutter/flutter#67854
Oh~Hi, anyupdate of the infoWindow onTap event? my google map version: My flutter doctor -v: [!] Android toolchain - develop for Android devices (Android SDK version 30.0.3) [√] Chrome - develop for the web [√] Android Studio (version 4.1.0) [√] Connected device (2 available) ! Doctor found issues in 1 category. |
@ShuoShen-Susan please create a new issue here. This should be fixed. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Since this function is implemented in google_maps_flutter...onTap and not google_maps_flutter_web, this creates difficulties for a certain class of tasks. You have to write completely different codes for the Apps and for the Web.
The text was updated successfully, but these errors were encountered: