void DrawPolygon(List <Coordinate> coorList) { Polygon myPolygon = new Polygon(); coorList.ForEach((Coordinate obj) => myPolygon.Positions.Add(new Position(obj.Latitude, obj.Longitude))); myPolygon.IsClickable = true; // Change to anyColor you like, if you think it is not good myPolygon.StrokeColor = UIColor_list.GetRandomColor(); myPolygon.StrokeWidth = 3f; myPolygon.FillColor = Color.FromRgba(255, 0, 0, 64); myPolygon.Tag = "POLYGON"; // Can set any object myMap.Polygons.Add(myPolygon); }
void DrawLine(List <Coordinate> coorList) { Polyline myLine = new Polyline(); coorList.ForEach((Coordinate obj) => myLine.Positions.Add(new Position(obj.Latitude, obj.Longitude))); myLine.IsClickable = true; // Change to anyColor you like, if you think it is not good myLine.StrokeColor = UIColor_list.GetRandomColor(); myLine.StrokeWidth = 5f; myLine.Tag = "POLYLINE"; // Can set any object myMap.Polylines.Add(myLine); }
public void CanGetUIColorByNumber() { Assert.IsInstanceOf(typeof(Color), UIColor_list.GetColorByNumber(10)); }
public void CanGenerateRandomUIColor() { Assert.IsInstanceOf(typeof(Color), UIColor_list.GetRandomColor()); }