laptop and a wrench

Bug

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
Bug-ID-Nummer BUG-000175276
EingereichtMarch 24, 2025
Zuletzt geändertApril 17, 2025
Gilt fürArcGIS Maps SDK for .NET
Gefunden in Version200.6
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
StatusIn Review

Workaround

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

}

Schritte zur Reproduzierung

Bug-ID: BUG-000175276

Software:

  • ArcGIS Maps SDK for .NET

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln