Xamarin.Forms.GoogleMaps icon indicating copy to clipboard operation
Xamarin.Forms.GoogleMaps copied to clipboard

Android Pin Icon From View

Open MarkoJk opened this issue 6 years ago • 2 comments

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.

MarkoJk avatar Apr 05 '18 23:04 MarkoJk

If you create sample project for reproduce, I will try it.

amay077 avatar Jul 26 '18 14:07 amay077

the same for me .. how to solve this ?

amrkamal1993 avatar May 27 '20 18:05 amrkamal1993