laptop and a wrench

Erro

In ArcGIS Maps SDK for .NET in a .NET MAUI app, labels for polylines display upside down when rotating the map

ArcGIS Maps SDK for .NET
Número de ID do Erro BUG-000175276
EnviadoMarch 24, 2025
Última ModificaçãoApril 17, 2025
Aplica-se àArcGIS Maps SDK for .NET
Versão encontrada200.6
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusIn Review

Solução Provisória

Calculate the centroid of the polyline and label the point graphics instead of the polyline using the methods below:

public MapPoint GetPolylineCenterPoint(Polyline polyline)

{

  // Ensure the polyline has points

  if (polyline.Parts.Count == 0 || polyline.Parts.First().Points.Count == 0)

  {

    return null;

  }

  // Flatten all points in the polyline

  var allPoints = polyline.Parts.SelectMany(part => part.Points).ToList();

  // Calculate the average of the X and Y coordinates

  double avgX = allPoints.Average(point => point.X);

  double avgY = allPoints.Average(point => point.Y);

  // Create and return the center point

  return new MapPoint(avgX, avgY, polyline.SpatialReference);

}

Etapas para Reproduzir

ID do Erro: BUG-000175276

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