Exemplo n.º 1
0
 private void CreateMapView()
 {
     // Create NMAMapView manually on MainThread because otherwise there is a message "[EAGLContext renderbufferStorage:fromDrawable:] was called from a non-main thread in an implicit transaction! ..." and the map needs more time to be shown.
     MapView = new NMAMapView(View.Frame);
     View.Add(MapView);
     View.SendSubviewToBack(MapView);
 }
Exemplo n.º 2
0
        public void DidReceiveTapAtLocation(NMAMapView mapView, CGPoint location)
        {
            //Create Alert
            var okAlertController = UIAlertController.Create("Info", "You tapped on the map!", UIAlertControllerStyle.Alert);

            //Add Action
            okAlertController.AddAction(UIAlertAction.Create("OK", UIAlertActionStyle.Default, null));

            // Present Alert
            PresentViewController(okAlertController, true, null);
        }