Ejemplo n.º 1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            map.Camera.CenterCoordinate = currentLocation;
            map.Camera.Altitude         = 10000;

            var mapDelegate = new GroceryMapDelegate();

            map.Delegate = mapDelegate;
        }
Ejemplo n.º 2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var mapDelegate = new GroceryMapDelegate();

            mapDelegate.MapViewChanged += () => SearchAsync();

            map.Camera.CenterCoordinate = currentLocation;
            map.Camera.Altitude         = 10000;
            map.Delegate = mapDelegate;
        }
Ejemplo n.º 3
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var mapDelegate = new GroceryMapDelegate();

            mapDelegate.MapViewChanged += () => SearchAsync();

            map.Camera.CenterCoordinate = currentLocation;
            map.Camera.Altitude         = 10000;
            map.Delegate = mapDelegate;

            //add a pin for our location
            map.AddAnnotation(new MKPointAnnotation()
            {
                Title = "My Location", Coordinate = currentLocation
            });

            //add an overlay showing walkable distance
            var circle = MKCircle.Circle(currentLocation, 1600);             //1600m ~ 1 mile

            map.AddOverlay(circle);
        }