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 Number BUG-000175276
SubmittedMarch 24, 2025
Last ModifiedApril 17, 2025
Applies toArcGIS Maps SDK for .NET
Version found200.6
Operating SystemWindows OS
Operating System Version10.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);

}

Steps to Reproduce

Bug ID: BUG-000175276

Software:

  • ArcGIS Maps SDK for .NET

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options