amay077 / Xamarin.Forms.GoogleMaps

Map library for Xamarin.Forms using Google maps API
https://www.nuget.org/packages/Xamarin.Forms.GoogleMaps/
MIT License
544 stars 344 forks source link

Disable Pin.InfoWindow completly #796

Open byme8 opened 1 year ago

byme8 commented 1 year ago

SUMMARY

Some apps have their own "InfoWindows" and show them in a separate control nearby the map. It would be nice to have a way to disable InfoWindow altogether. So it will not appear when the marker is clicked.

Map.DisableInfoWindow = true;
// or 
Pin..DisableInfoWindow = true;

PLATFORMS

byme8 commented 1 year ago

Looks like there is a workaround. You need to set Pin.Label to string.Empty and InfoWindow will be disabled.