Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 2328 → Rev 2329

/MKLiveView/v1.0/Source/GMap.NET.WindowsPresentation/GMap.NET.WindowsPresentation/GMapControl.cs
996,7 → 996,7
/// <returns></returns>
public virtual Path CreateRoutePath(List<Point> localPath)
{
return CreateRoutePath(localPath, true);
return CreateRoutePath(localPath, true , null);
}
 
/// <summary>
1004,7 → 1004,7
/// </summary>
/// <param name="pl"></param>
/// <returns></returns>
public virtual Path CreateRoutePath(List<Point> localPath, bool addBlurEffect)
public virtual Path CreateRoutePath(List<Point> localPath, bool addBlurEffect, Brush brush)
{
// Create a StreamGeometry to use to specify myPath.
StreamGeometry geometry = new StreamGeometry();
1038,8 → 1038,10
 
myPath.Effect = ef;
}
 
myPath.Stroke = Brushes.Magenta;
if(brush !=null)
myPath.Stroke = brush;
else
myPath.Stroke = Brushes.Magenta;
myPath.StrokeThickness = 5;
myPath.StrokeLineJoin = PenLineJoin.Round;
myPath.StrokeStartLineCap = PenLineCap.Triangle;
/MKLiveView/v1.0/Source/GMap.NET.WindowsPresentation/GMap.NET.WindowsPresentation/GMapRoute.cs
12,13 → 12,17
public class GMapRoute : GMapMarker, IShapable
{
public readonly List<PointLatLng> Points = new List<PointLatLng>();
 
public GMapRoute(IEnumerable<PointLatLng> points)
public System.Windows.Media.Brush _brush = System.Windows.Media.Brushes.Magenta;
public GMapRoute(IEnumerable<PointLatLng> points, System.Windows.Media.Brush brush)
{
if (brush != null)
_brush = brush;
Points.AddRange(points);
RegenerateShape(null);
}
 
 
public override void Clear()
{
base.Clear();
46,7 → 50,7
localPath.Add(new System.Windows.Point(p.X - offset.X, p.Y - offset.Y));
}
var shape = map.CreateRoutePath(localPath);
var shape = map.CreateRoutePath(localPath,false,_brush);
if(this.Shape is Path)
{