Is it possible to remove the google maps navigation button at bottom right when we click on a marker?
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?
Disabling the Default UI To do so, set the map's disableDefaultUI property (within the MapOptions object) to true . This property disables any UI control buttons from the Maps JavaScript API.
If anyone want to remove zoom control. Add zoomControlsEnabled: false to google map view.
To clear the entire markers, you can use the _controller. clearMarkers() method. This will remove entire marker collections from maps.
Find the “Layers” menu in the bottom left corner of the screen. Hover your cursor over the box and wait until more options appear. Click “More” to open the Map Details menu. Under “Map Type,” you'll see a checked box next to “Labels.” Uncheck it to remove all labels.
With google_maps_flutter version 0.5.20 they added support to enable/disable this.
In your GoogleMap widget add:
mapToolbarEnabled: false
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With