Bug 55366 - [UWP] IsShowingUser automatically center over user (Xamarin.Forms.Map)
Summary: [UWP] IsShowingUser automatically center over user (Xamarin.Forms.Map)
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.3.4
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-04-19 11:39 UTC by Andreas
Modified: 2017-06-21 13:21 UTC (History)
3 users (show)

Tags: uwp, maps, location, ac
Is this bug a regression?: ---
Last known good build:

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 for Bug 55366 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Andreas 2017-04-19 11:39:19 UTC
On the Map Control, if IsShowingUser is set to true, UWP _also_ centers on the user. This seems to happen the first time the app runs, after the user answers "YES" to the question about letting Windows use your location. iOS and Android does NOT work this way, so it's a bit annoying. Please fix!
Comment 1 Jimmy [MSFT] 2017-04-24 19:29:48 UTC
I can reproduce this with the Working with Maps sample[1] and confirm that iOS and Android do not do this. 

As mentioned, this appears to happen after the first time the user's location is received[2], but not for location updates from the timer[3].

[1] https://developer.xamarin.com/samples/xamarin-forms/WorkingWithMaps/
[2] https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.Maps.UWP/MapRenderer.cs#L165
[3] https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.Maps.UWP/MapRenderer.cs#L185