laptop and a wrench

漏洞

The MapView class from ArcGIS Maps SDK for .NET does not work on Android devices when embedded in a stack layout.

ArcGIS Maps SDK for .NET
漏洞 ID 编号 BUG-000170944
已提交September 23, 2024
上次修改时间December 11, 2024
适用范围ArcGIS Maps SDK for .NET
找到的版本200.5
操作系统Android
操作系统版本12.x
状态Will Not Be Addressed

附加信息

On investigation, the problem reported is actually caused by .NET MAUI. For .NET MAUI, layout passes are greatly inconsistent and are the cause most layout bugs in reported for .NET MAUI. When using StackLayout, it is always necessary to set a size on the control. When no height is provided, the behavior of StackLayout will cause the control to size itself to the smallest size it can be, which on Android is 0. This explains when using a Grid within the StackLayout with HeightRequest/WidthRequest or setting Height/Width on the MapView, resolves the issue. Note, setting MinimumHeight / MinimumWidth will always result in the control adopting that size, never larger, therefore we recommend setting an explicit size (Height/Width). Also note, when not setting properties explicitly and instead relying on default behaviors, results may vary across the platforms supported by .NET MAUI. Thus, to overcome this .NET MAUI behavior/problem, it is suggested the MapView must have a minimum or specific size.

重现步骤

漏洞 ID: BUG-000170944

软件:

  • ArcGIS Maps SDK for .NET

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项