xamarin/Xamarin.Forms

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

开放

#8,673 创建于 2019年11月26日

 (8 条评论) (1 个反应) (0 位负责人)C# (1,926 个派生)batch import
a/maps :globe_with_meridians:e/2 :clock2:good first issuehelp wantedinactivep/UWPt/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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

贡献者指南