Xamarin.forms.googlemaps: Map Pin Callout not refreshing Address

Created on 11 Aug 2016  路  6Comments  路  Source: amay077/Xamarin.Forms.GoogleMaps

not updating address of pin callout when the pin is already selected. need to set the map.selectedPin to null and again set the Pin as map selected pin

discussion

All 6 comments

I confirmed it.
But I wonder this behavior is Google Maps Android API.

I'll check it.

its right,
when i tried to update a value (address) in infoWindow programmically (here the infowindow is already visible), its not getting changed . its only getting updated when i close and then open info window again.

I don't want to write workaround for this to Xamarin.Forms.GoogleMaps.
But I should care about "same behavior" in Android and iOS.

If callout not refreshing in iOS too, then I do nothing.

Any idea on how to solve it? I think moving the pin a little bit redraws it, but as you wrote, it is a workaround...

This is a simple workaround.

pin.Address = "UPDATED";
map.SelectedPin = null;
map.SelectedPin = pin;

This is native Android/iOS Google Maps API behavior.
I hope resolve in native side.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Gavrielo picture Gavrielo  路  3Comments

amay077 picture amay077  路  4Comments

galadril picture galadril  路  3Comments

JKennedy24 picture JKennedy24  路  6Comments

woellij picture woellij  路  4Comments