public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. // Create a MapView and set the coordinates/zoom mapView = new MGLMapView(View.Bounds); mapView.SetCenterCoordinate(new CLLocationCoordinate2D(37.745395, -119.594421), false); mapView.SetZoomLevel(11, false); View.AddSubview(mapView); mapView.WeakDelegate = this; button = new UIButton(UIButtonType.RoundedRect); button.Frame = new CoreGraphics.CGRect(10, 10, 150, 40); button.SetTitle("Toggle Contours", UIControlState.Normal); button.Selected = true; button.TouchUpInside += Button_TouchUpInside; mapView.Add(button); }