amay077 / Xamarin.Forms.GoogleMaps

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

[BUG] [Android] Map zooms fully in after orientation changed #536

Closed galadril closed 5 years ago

galadril commented 6 years ago

VERSIONS

PLATFORMS

ACTUAL BEHAVIOR

I have a (fullscreen) map shown in portrait mode with some pins and polylines, and the cameraposition set to show all in one screen. But as soon as I rotate the screen, the map is zoomed in! I don't refresh the data/page/viewmodel, only the maps component is zoomed in.

I've tested the same code with GoogleMaps version 3.0.0 and there it works correctly.

This bug is only on Android

ACTUAL SCREENSHOTS/STACKTRACE

Screenshots android on GoogleMaps v3.0.1: start on portrait

after rotate: fully zoomed in

Screenshots when i downgrade to v3.0.0: screenshot_2018-08-02-15-44-12-054_com jfhillebrand myhillebrand

screenshot_2018-08-02-15-44-19-946_com jfhillebrand myhillebrand

EXPECTED BEHAVIOR

I would expect that the map doesn't changes

HOW TO REPRODUCE

  1. show a map in portrait mode, zoomed out with pins/polylines
  2. rotate the screen
  3. your now zoomed in automaticly

Please let me know if it's clear enough

amay077 commented 6 years ago

I can not reproduce.

untitled6

I tried in my sample apps, but looks like works fine.