laptop and a wrench

Error

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 del error BUG-000175276
EnviadoMarch 24, 2025
Última modificaciónApril 17, 2025
Relacionado conArcGIS Maps SDK for .NET
Versión encontrada200.6
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
EstadoIn Review

Solución alternativa

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);

}

Pasos para reproducir

ID del error: BUG-000175276

Software:

  • ArcGIS Maps SDK for .NET

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga