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

Ground Overlay not showing on iOS

Open Maz47 opened this issue 4 years ago • 2 comments

VERSIONS

  • Xamarin.Forms.GoogleMaps - 3.2.1
  • Xamarin.Forms - 4.7.0.1080

PLATFORMS

  • [ ] Android
  • [x] iOS
  • [ ] UWP

ACTUAL BEHAVIOR

On iOS (iPhone 6s Plus with iOS 13.5.1) ground overlays do not show up on map. When I launch my app on android everything works just fine.

EXPECTED BEHAVIOR

Custom Image shows up as Ground Overlay in map.

HOW TO REPRODUCE

  1. Create new XAMARIN Forms App
  2. Add Google Maps Plugin
  3. Set Maptype to None
  4. Add Ground Overlay

!!! Workaround with setting the transparency of the ground overaly to 0f after it has been added to the map does not work !!!

@amay077 Do you have any ideas?

Maz47 avatar Jul 13 '20 12:07 Maz47

UPDATE:

If I use an image from the app bundle and reference it with BitmapDescriptionFactory.FromBundle("groundoverlay.jpg") everything works fine. But if I load the image from Environment.SpecialFolder.LocalApplicationData with BitmapDescriptionFactroy.FromStream(File.OpenRead(path_to_image)) the ground overlay does not show up on the map.

Maz47 avatar Jul 13 '20 13:07 Maz47

UPDATE:

I just upgraded the version of the Plugin to the current stable 3.3.0. But the overlay does not show up either!

Maz47 avatar Jul 14 '20 13:07 Maz47