amay077 / Xamarin.Forms.GoogleMaps

Map library for Xamarin.Forms using Google maps API
https://www.nuget.org/packages/Xamarin.Forms.GoogleMaps/
MIT License
544 stars 344 forks source link

Custom map Pins flicker during pan/zoom on Android platform #762

Open jduncalf opened 3 years ago

jduncalf commented 3 years ago

VERSIONS

PLATFORMS

ACTUAL BEHAVIOR

During a CameraMoving() event invocation a call to Xamarin.Forms.GoogleMaps.Pins.Clear() appears to cause a screen refresh (Android platform only), before the CameraMoving() event call is completed.

HOW TO REPRODUCE


     Map.CameraMoving += (sender, args) =>
     {
          // In the following example the single map Pin flickers after the call to Clear() as though the
          // renderer has redrawn the view. I am unable to reproduce this on iOS.
          Xamarin.Forms.GoogleMaps.Pin pin = Map.Pins[0];  // Map contains single pin.
          Map.Pins.Clear();
          Map.Pins.Add(pin);
     };

Thanks.

omersezer commented 2 years ago

i have same problem