Xamarin.forms.googlemaps: Cannot pan or zoom with Xamarin.Forms Shell

Created on 10 May 2019  路  7Comments  路  Source: amay077/Xamarin.Forms.GoogleMaps

VERSIONS

  • Xamarin.Forms.GoogleMaps - 3.2.0
  • Xamarin.Forms - 4.0.0.394984-pre10
  • Visual Studio 2019 Preview 3

PLATFORMS

  • [X ] Android

ACTUAL BEHAVIOR

Cannot pan and zoom in MapView.

HOW TO REPRODUCE

  1. Use shell template application
  2. Add a simple mappage
  3. Try panning or zooming

Demo solution

MapTest.zip

bug workarround

Most helpful comment

I have the same issue without shell using Shell too
Xamarin.Forms 4.2.0.848062
Xamarin.Forms.GoogleMaps 3.2.0, 3.2.1
Platform: Android
Update:
Now I got it. The map got this issue when I put it into a ContentView and that ContentView into a Frame, but when I put the map into ContentPage directly it works fine.

All 7 comments

I had similar issue even though I use the latest preview. This is happening when the map controller are in Shell.

Device: Samsung Galaxy A70 (Pie 9.0)

I experienced this as well, it's an issue with using a map in a Shell application.

The issue has been reported to the Xamarin Forms team here: https://github.com/xamarin/Xamarin.Forms/issues/5306

Experiencing the same issue even without using a Shell application.

I have the same issue without shell using Shell too
Xamarin.Forms 4.2.0.848062
Xamarin.Forms.GoogleMaps 3.2.0, 3.2.1
Platform: Android
Update:
Now I got it. The map got this issue when I put it into a ContentView and that ContentView into a Frame, but when I put the map into ContentPage directly it works fine.

Ended up working for me too with that approach @Amirlmam 馃憤

I am facing the issue within a shell application. The map is not inside a content view but a content page. Has anyone figured any solution? (Acting as a showstopper)

Was this page helpful?
0 / 5 - 0 ratings