public LinePathCollection(LinePathStyle style, bool encodePath, IEnumerable <string> points) { if (points is null) { throw new ArgumentNullException(nameof(points)); } Style = style ?? throw new ArgumentNullException(nameof(style)); EncodePath = encodePath; Points = new List <string>(points); if (Points.Count < 2) { throw new ArgumentException("There needs to be at least 2 points in a path for it to be renderable.", nameof(points)); } }
public LinePathCollection(LinePathStyle style, params LatLngPoint[] points) : this(style, false, points) { }
public LinePathCollection(LinePathStyle style, IEnumerable <LatLngPoint> points) : this(style, false, points) { }
public LinePathCollection(LinePathStyle style, params string[] points) : this(style, false, points) { }
public LinePathCollection(LinePathStyle style, IEnumerable <string> points) : this(style, false, points) { }
public LinePathCollection(LinePathStyle style, bool encodePath, params LatLngPoint[] points) : this(style, encodePath, points.AsEnumerable()) { }
public LinePathCollection(LinePathStyle style, bool encodePath, IEnumerable <LatLngPoint> points) : this(style, encodePath, points.Select(p => p.ToString(CultureInfo.InvariantCulture))) { }