Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

How to show MapPin label in Xamarin.Forms.Maps?

$
0
0

I have added a Label in MapPin of Xamarin.Forms.Maps but it is not displaying on UI.

Code:
Pin MapPin = new Pin();
MapPin.Type = PinType.Generic;
MapPin.Position = new Position(SelectedBenefit.latitude,
SelectedBenefit.longitude);
MapPin.Address = SelectedBenefit.street_address;
MapPin.Label = "Benefit Location"; // This text is not appearing on UI
BenefitMap.Pins.Add(MapPin);

Is there any workaround for this?


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>