Bug 25055 - Xamarin Forms Map scroll and zoom resets immediately after user scrolls or zooms on Android
Summary: Xamarin Forms Map scroll and zoom resets immediately after user scrolls or zo...
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.2.3
Hardware: Macintosh Mac OS
: Highest normal
Target Milestone: ---
Assignee: Jason Smith [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2014-12-03 18:13 UTC by Jon Goldberger [MSFT]
Modified: 2015-06-20 14:11 UTC (History)
9 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Test Project (33.08 KB, application/zip)
2014-12-03 18:13 UTC, Jon Goldberger [MSFT]
Details
Test Project (5.69 KB, text/html)
2015-06-20 08:56 UTC, stiv
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Jon Goldberger [MSFT] 2014-12-03 18:13:01 UTC
Created attachment 8959 [details]
Test Project

## Description

In a most basic implementation of Xamarin Forms Maps, on Android the user can scroll and zoom (both enabled in code) but almost instantly the scroll and zoom reset to the MapSpan defined initially.

## Steps to reproduce

1. Open the attached test solution and Restore the Packages.
2. Add your own Google Maps API key to the Android project and make appropriate settings in your Google API console. See the Android section of this guide if need be: http://developer.xamarin.com/guides/cross-platform/xamarin-forms/working-with/maps/
3. Launch the Android app project to a device.
4. Scroll or zoom the map.

Expected result: Map will stay at the position / view that the user scrolls or zooms to.

Actual result: Map snaps back to the initial MapSpan set when the map is created. 

Xamarin Forms version and Xamarin Forms Maps version: 1.2.3


## Note: 

On iOS the actual result is as expected.

## IDE version info:

=== Xamarin Studio ===

Version 5.5.4 (build 15)
Installation UUID: 2dc9022f-f9a8-424f-8284-bf224cbbfde0
Runtime:
	Mono 3.10.0 ((detached/92c4884)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000031

=== Xamarin.Android ===

Version: 4.20.0.28 (Business Edition)
Android SDK: /Users/apple/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.2    (API level 8)
		2.3    (API level 10)
		3.0    (API level 11)
		3.1    (API level 12)
		3.2    (API level 13)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)

=== Apple Developer Tools ===

Xcode 6.1.1 (6611)
Build 6A2008a

=== Xamarin.iOS ===

Version: 8.4.0.43 (Business Edition)
Hash: 840a925
Branch: 
Build date: 2014-11-16 21:03:22-0500

=== Xamarin.Mac ===

Version: 1.10.0.18 (Business Edition)

=== Build Information ===

Release ID: 505040015
Git revision: f93940a35458a18052f1a25e106e62ca970d9c40
Build date: 2014-11-19 15:32:41-05
Xamarin addins: dc23cbd91a3a0e1d326328e1229e86c942a49ec8

=== Operating System ===

Mac OS X 10.10.1
Darwin Jons-iMac.local 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 2 Jason Smith [MSFT] 2014-12-12 04:53:09 UTC
Fixed in next pre-release
Comment 6 james 2014-12-17 11:52:55 UTC
The flickering pins should really be fixed as part of this bug too since the map is essentially useless if you can't display any information on it.

https://bugzilla.xamarin.com/show_bug.cgi?id=25423
Comment 7 james 2014-12-17 11:54:21 UTC
To clarify: I can confirm Jason's changed fixed the map location resetting issue for me in the latest pre-release. The pin flickering is not resolved though.
Comment 9 Christopher Svanefalk 2014-12-21 07:38:17 UTC
I can confirm it as of the latest stable build, using a minimal implementation (just a Map with default settings).

Xamarin Studio
Version 5.5.4 (build 15)
Installation UUID: fb249e80-2b94-4e1a-bb82-1f0a76379e63
Runtime:
	Mono 3.10.0 ((detached/92c4884)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000031

Apple Developer Tools
Xcode 6.1.1 (6611)
Build 6A2008a

Xamarin.Mac
Version:

Xamarin.iOS
Version: 8.4.0.47 (Business Edition)
Hash: 7244769
Branch: 
Build date: 2014-12-11 14:54:30-0500

Xamarin.Android
Version: 4.20.0.28 (Business Edition)
Android SDK: /Users/csvanefalk/Library/Developer/android-sdk-osx
	Supported Android versions:
		1.6    (API level 4)
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.0    (API level 11)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

Build Information
Release ID: 505040015
Git revision: f93940a35458a18052f1a25e106e62ca970d9c40
Build date: 2014-11-19 15:32:41-05
Xamarin addins: dc23cbd91a3a0e1d326328e1229e86c942a49ec8

Operating System
Mac OS X 10.10.1
Darwin Christophers-MacBook-Pro.local 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 10 Brendan Zagaeski (Xamarin Team, assistant) 2015-01-08 15:37:15 UTC
Resolving because the primary issue for this bug report (scroll and zoom) is fixed in 1.3.0.6292.

For the second issue (flickering pins), it will be best to move any further discussion of that issue to its own bug report. The corresponding bug for that issue is bug 25423. As mentioned briefly in bug 25423, comment 5, a fix for the flicker pins issue was recently committed (on December 26), but the fix has not yet been released.


I have verified that the steps to reproduce in comment 0 are fixed in the latest versions.

Result: The map correctly stays at the position / view that the I scroll or zoom to.


## Version information

Device: LG Optimus L9 (Android 4.1.2)

Xamarin.Android.Support.v4 21.0.3.0
Xamarin.Android.Support.v7.AppCompat 21.0.3.0
Xamarin.Android.Support.v7.MediaRouter 21.0.3.0 
Xamarin.Forms 1.3.0.6292
Xamarin.Forms.Maps 1.3.0.6292 
Xamarin.GooglePlayServices 22.0.0.0

Xamarin.Android 4.20.0.28 (Business Edition)
Hash: ba9bbbdd

Android SDK: /Users/macuser/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /Users/macuser
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

Mac OS X 10.9.5


### I also tested quickly on 1.3.1.6294-pre1

Xamarin.Forms 1.3.1.6294-pre1
Xamarin.Forms.Maps 1.3.1.6294-pre1
Comment 11 stiv 2015-06-20 08:56:49 UTC
Created attachment 11699 [details]
Test Project
Comment 12 Brendan Zagaeski (Xamarin Team, assistant) 2015-06-20 14:11:17 UTC
@stiv, as in comment 10, if you are seeing a problematic behavior with maps in Xamarin.Forms 1.3.0.6292 or higher, please see file a new bug report. The precise bug described by this bug report (in comment 0) has been fixed, so the Xamarin Forms developers will need a new bug report to track any other issues you might still be hitting, even if they appear to be closely related.

Thanks!

-Brendan
Xamarin Customer Support