Flutter Google Maps remove navigation button at bottomRight on marker tap
Asked Answered
D

1

11

Is it possible to remove the google maps navigation button at bottom right when we click on a marker?

enter image description here

I tried this

        Marker(
              consumeTapEvents: true,
              onTap: () {
                print("marker clicked");
              },
              infoWindow: InfoWindow(
                  title: "title",
                  snippet: "snippet",
                  onTap: () {
                    markerTap();
                  }),
                 )

It worked but I ran into a new issue that it doesn't open info window on marker on click. Any suggestion?

Dissimilarity answered 24/7, 2019 at 10:5 Comment(0)
C
17

With google_maps_flutter version 0.5.20 they added support to enable/disable this.

In your GoogleMap widget add:

mapToolbarEnabled: false
Counterman answered 12/9, 2019 at 11:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.