void AddCircles(IList circles)
        {
            foreach (Circle circle in circles)
            {
                var nativeCircle = ACircle.FromPosition(
                    new CLLocationCoordinate2D(circle.Center.Latitude, circle.Center.Longitude),
                    circle.Radius.Meters);
                nativeCircle.StrokeWidth = circle.StrokeWidth;
                nativeCircle.StrokeColor = circle.StrokeColor.ToUIColor();
                nativeCircle.FillColor   = circle.FillColor.ToUIColor();
                //nativeCircle.Tappable = circle.IsClickable;

                circle.Id        = nativeCircle;
                nativeCircle.Map = (MapView)Control;
            }
        }
Beispiel #2
0
 /// <summary>
 /// Creates the circle.
 /// </summary>
 public void CreateCircle()
 {
     if (mapView != null)
     {
         if (circle != null)
         {
             circle.Map = null;
         }
         if (!string.IsNullOrEmpty(Settings.UserLatSettings))
         {
             circle = new Circle
             {
                 FillColor   = UIColor.FromRGB(215, 233, 241).ColorWithAlpha(2f),
                 Position    = new CLLocationCoordinate2D(Convert.ToDouble(Settings.UserLatSettings), Convert.ToDouble(Settings.UserLongSettings)),
                 Radius      = radiusCustom,
                 StrokeColor = UIColor.FromRGB(47, 117, 169),
                 Map         = mapView
             };
         }
     }
 }