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

Binding to a Pin's Tag property #622

Closed gabrielbunselmeyer closed 4 years ago

gabrielbunselmeyer commented 5 years ago

SUMMARY

Not exactly a feature request, but:

The Tag property of Pin is typed as an object. So, when using the newly added option to bind the pins directly in XAML, the binding for Tag is the actual bind to it.

As in, the binding isn't the int object I'm trying to bind as an id, but the Xamarin.Forms.Binding object referring to it.

image

DETAILS

Changing Tag to int would fix this for me (but, as Pin is sealed, I can't implement it). However, as far as I understand, Tag's supposed to be any kind of identification for the pin (any type), so this may not be the most ideal solution.

PLATFORMS

aherrick commented 4 years ago

Hi @gabrielbunselmeyer did you ever find a solution here? thanks!

gabrielbunselmeyer commented 4 years ago

Hey, sorry for the delay @aherrick. I didn't, no. Just had to do whatever it was I wanted without using a binding, if I remember correctly. Has been a while since I left that project.

This pull request would help, though: #701.

asadullahqmr commented 3 years ago

This never was resolved was it? Would be helpful to have an additional space to store values to the pin without showing a label or address...