Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customize the center location button in Flutter Google Map

I am using google_maps_flutter: ^0.0.3+3

How do I remove the default square button to center location and still keep the blue dot current position ?

If it is not possible, how to customize it ?

enter image description here

like image 440
TSR Avatar asked Feb 03 '19 10:02

TSR


People also ask

How do I show custom locations on Google Maps in Flutter?

First of all, we need to get Google API Key from Google Cloud Console. Create one project and name as per your choice. Enable Google Map SDK for Android & iOS Platforms in Google Developers Console. You will get Google Map API Key through Credential Page.


2 Answers

Set following properties on GoogleMap object:

myLocationButtonEnabled: false,
myLocationEnabled: true,

Work with google_maps_flutter: ^0.5.13

like image 120
Isuru Dilshan Avatar answered Nov 08 '22 23:11

Isuru Dilshan


As it stands this isn't possible, the only possible work around would be to design your UI so that it blocks it.

like image 34
Oliver Series Avatar answered Nov 08 '22 22:11

Oliver Series