Skip to content
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

want to customize MyLocation Button (Google Maps) #29753

Closed
Kreeby opened this issue Mar 21, 2019 · 5 comments
Closed

want to customize MyLocation Button (Google Maps) #29753

Kreeby opened this issue Mar 21, 2019 · 5 comments
Labels
c: new feature Nothing broken; request for a new capability p: maps Google Maps plugin package flutter/packages repository. See also p: labels.

Comments

@Kreeby
Copy link

Kreeby commented Mar 21, 2019

I want to customize the MyLocation Button provided by the Google Maps, so how can I do it?

@justinmc justinmc added the p: maps Google Maps plugin label Mar 22, 2019
@Piinks Piinks added the plugin label Mar 26, 2019
@sh0umik
Copy link

sh0umik commented Apr 5, 2019

I am also having the same problem with my full screen map. Also we should be able to change its current position at least. My full screen map seems weird :(

Screenshot_20190406-011841-01

@annakrih
Copy link

I am having the same problem The button looks different on Android and iOS. On Android it is square and in the top right corner, but on iOS it is round and in the bottom right corner.

I would want to be able to define a callback when the button is pressed and be able to style and position it. Alternatively, I would just want to be able to have the map display the location without adding the button, so I could do my own button.

@timtraversy
Copy link
Contributor

The MyLocation button is created by the native Google Map and isn’t natively customizable, so there isn’t much Flutter can do about it. If you need a custom button you’d have to put a button in a Stack with the Google Map widget, and when it’s pressed fetch the user’s location and animate the camera.

@collinjackson collinjackson changed the title MyLocation Button (Google Maps) want to customize MyLocation Button (Google Maps) Jul 25, 2019
@collinjackson collinjackson added the c: new feature Nothing broken; request for a new capability label Jul 25, 2019
@collinjackson
Copy link
Contributor

Closing this issue since it's not in scope for the functionality of the google_maps plugin - as @timtraversy pointed out, it needs to be done as a widget on top.

Please let me know if I'm mistaken and we can revisit.

@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 Aug 29, 2021
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 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 package flutter/packages repository. See also p: labels.
Projects
None yet
Development

No branches or pull requests

7 participants