xamarin/Xamarin.Forms

[Bug] [UWP] IsShowingUser makes map center over user

Open

#8,673 opened on Nov 26, 2019

 (8 comments) (1 reaction) (0 assignees)C# (1,926 forks)batch import
a/maps :globe_with_meridians:e/2 :clock2:good first issuehelp wantedinactivep/UWPt/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

When setting IsShowingUser = true, the map center over the user and also set some default zoom level. This creates problems when you want to show the user icon, but on the same time set a custom visible area of the map.

This issue was reported in Bugzilla in 2017 but never solved, from what I can see.

Steps to Reproduce

  1. Put a mapcontrol on a page <Map IsShowingUser="True")/>
  2. Use MoveToRegion() when the page appears
  3. The UWP gets an update of your current location, it will center over you

Expected Behavior

User mark should be shown. No change of visible region should be made

Actual Behavior

The map is centered above the user (and a default zoom level is set)

Basic Information

  • Version with issue: XF: 4.3.0.991211
  • Last known good version: Unknown (probably none)
  • IDE: VS 2019 Windows
  • Platform Target Frameworks:
    • UWP: 1903
  • Nuget Packages:
  • Affected Devices:

Screenshots

map_center

Reproduction Link

Contributor guide