Skip to content

[google_maps_flutter_web] Options to disable tilt controls and configure gesture handling #99044

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

Closed
Rexios80 opened this issue Feb 24, 2022 · 1 comment
Labels
c: new feature Nothing broken; request for a new capability p: maps Google Maps plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. platform-web Web applications specifically team-web Owned by Web platform team triaged-web Triaged by Web platform team

Comments

@Rexios80
Copy link
Member

Use case

On web, Google Maps has tilt controls that show up sometimes, these should be toggle-able.

On web, Google Maps will sometimes show an overlay that you must use two fingers or cmd+drag to move the map. The gesture handling options let you change this behavior. Specifically the greedy option makes this overlay go away and lets the user drag the map as usual.

Proposal

Update the google_maps_flutter_web plugin to expose these features

@danagbemava-nc danagbemava-nc added in triage Presently being triaged by the triage team p: first party p: maps Google Maps plugin platform-web Web applications specifically c: new feature Nothing broken; request for a new capability and removed in triage Presently being triaged by the triage team labels Feb 25, 2022
@stuartmorgan-g stuartmorgan-g added the P3 Issues that are less important to the Flutter project label Mar 3, 2022
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
@Hixie Hixie removed the plugin label Jul 6, 2023
@flutter-triage-bot flutter-triage-bot bot added multiteam-retriage-candidate team-web Owned by Web platform team triaged-web Triaged by Web platform team labels Jul 8, 2023
auto-submit bot pushed a commit to flutter/packages that referenced this issue Jul 24, 2023
…ure gesture handling (#3258)

Transferred from flutter/plugins#4916

tiltControlsEnabled: On web, in satellite view, and at close zoom levels, the map displays tilt controls. This lets you disable them.

gestureHandling: On web, without greedy gesture handling the map can have an overlay saying you can only move the map with two fingers or Cmd+drag. This is not ideal, and greedy gestures lets you make that not happen. I added the other gesture handling options from the [Google Maps documentation](https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions.gestureHandling) for completeness.

*List which issues are fixed by this PR. You must list at least one issue.*

[flutter/flutter/#99044](flutter/flutter#99044)

*If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].*
@github-actions
Copy link

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 flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: new feature Nothing broken; request for a new capability p: maps Google Maps plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. platform-web Web applications specifically team-web Owned by Web platform team triaged-web Triaged by Web platform team
Projects
None yet
Development

No branches or pull requests

4 participants