themronion / Maui.GoogleMaps

Map library for MAUI using Google maps API
https://www.nuget.org/packages/Onion.Maui.GoogleMaps/
MIT License
79 stars 35 forks source link

PinClickedEventArgs Handled #69

Closed mindport closed 1 month ago

mindport commented 1 month ago

VERSIONS

IDE

PLATFORMS

ACTUAL BEHAVIOR

It seems that when clicking on a pin and making it selected I can't hide the tooltip I think it should be closed when setting the PinClickedEventArgs property Handled to true?

ACTUAL SCREENSHOTS/STACKTRACE

Screenshot 2024-09-17 at 11 44 15

EXPECTED BEHAVIOR

The pin tooltip should be hidden even if pin is selected if Handled is set to true

HOW TO REPRODUCE

Nothing special, maybe creating custom pins have an affect?

themronion commented 1 month ago

No, this is intended behavior. If you don’t want the tooltip don’t make it selected

mindport commented 1 month ago

Ooh, okey so it differs from original Google Maps then? How would I go about to hide the tooltip when selecting a pin?

mindport commented 1 month ago

I mean what does the handled property do then?

themronion commented 1 month ago

It does hide the tooltip. The problem is that most likely you are setting the SelectedPin property or whatsoever. Please see sample app for different scenarios.

mindport commented 1 month ago

Ok, I will look, it's just that it worked with Xamarin.Forms.Googlemaps so something has changed in functionality. But sure I'll check.