Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public void CanGetUIColorByNumber()
 {
     Assert.IsInstanceOf(typeof(Color), UIColor_list.GetColorByNumber(10));
 }
Exemplo n.º 4
0
 public void CanGenerateRandomUIColor()
 {
     Assert.IsInstanceOf(typeof(Color), UIColor_list.GetRandomColor());
 }