private void Initialize() { _MapView = new MKMapView(); _MapView.Frame = new RectangleF(0, 0, Frame.Width, Frame.Height); _MapView.ShowsUserLocation = true; _MapView.Delegate = new MapViewDelegate(this); _RouteView = new UIImageView(); _RouteView.Frame = new RectangleF(0, 0, _MapView.Frame.Width, _MapView.Frame.Height); _RouteView.UserInteractionEnabled = false; this.LineColor = UIColor.FromWhiteAlpha(0.2f, 0.5f); _Routes = new CLLocation[] { }; CalculateRoutesAction = CalculateRoutes; _Client = new RestClient(@"http://maps.googleapis.com/maps/api/directions/"); _Client.AddDefaultUrlSegment("sensor", "false"); _MapView.AddSubview(_RouteView); this.AddSubview(_MapView); }