amay077 / Xamarin.Forms.GoogleMaps

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

How to highlight a pin programmatically? #644

Closed GiuseppePennisi closed 5 years ago

GiuseppePennisi commented 5 years ago

Hi, how can I highlight a pin programatically, simulating a click on it and showing its label?

amay077 commented 5 years ago

Yes you can!

You can set Map.SelectedPin to your pin to highlighting a pin.

https://github.com/amay077/Xamarin.Forms.GoogleMaps/blob/19b140bfc80e80fe676ea98266c9bb81563996a2/XFGoogleMapSample/XFGoogleMapSample/PinsPage.xaml.cs#L98

GiuseppePennisi commented 5 years ago

Thanks! The solution to my problem was simpler than I thought!