You might calculate the center of the polyline at the client side. Very simplified version:public static class GeometryExtension
{
public static MapPoint Center(this Polyline polyline)
{
var path = polyline.Paths[polyline.Paths.Count / 2];
int pointIndex = (path.Count-1)/2;
MapPoint startPoint = path[pointIndex];
MapPoint endPoint = path[pointIndex + 1];
return new MapPoint((startPoint.X + endPoint.X)/2.0, (startPoint.Y + endPoint.Y)/2.0);
}
}
Then you can get the center of a polyline by : MapPoint center= myPolyline.Center(); This is just returning the center of the middle segment but you might enhance the code depending on what you need exactly.