laptop and a wrench

Erro

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
Número de ID do Erro BUG-000170944
EnviadoSeptember 23, 2024
Última ModificaçãoDecember 11, 2024
Aplica-se àArcGIS Maps SDK for .NET
Versão encontrada200.5
Sistema OperacionalAndroid
Versão do Sistema Operacional12.x
StatusWill Not Be Addressed

Informações Adicionais

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.

Etapas para Reproduzir

ID do Erro: BUG-000170944

Software:

  • ArcGIS Maps SDK for .NET

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download