Xamarin.Forms.GoogleMaps
Xamarin.Forms.GoogleMaps copied to clipboard
Android Pin Icon From View
Hi, I use this code to load image as pin icon.
Pin pin = new Pin() { Position = new Position(u.Latitude, u.Longitude), Icon = BitmapDescriptorFactory.FromView( new ContentView { WidthRequest = 100, HeightRequest = 100,
Content = new CachedImage
{
Aspect = Aspect.AspectFit,
DownsampleWidth = 100,
DownsampleUseDipUnits = true,
LoadingPlaceholder = ImageSource.FromResource("GYMatch.Images.Common.imagecache_loading.gif"),
Source = u.ProfileImageSource,
Transformations = new List<FFImageLoading.Work.ITransformation>
{
new CircleTransformation()
}
}
}),
Label = u.FullName + " | " + u.GenderAndAgeToString,
Type = PinType.Generic,
ZIndex = i++,
Tag = u
};
Icon image is shown only quarter. I use that image on another place and it's okey. Here is some problem with rendering. Please help me. Thanks.
If you create sample project for reproduce, I will try it.
the same for me .. how to solve this ?