Exemplo n.º 1
0
        private async void LoadPredators()
        {
            CloudDataStore data    = new CloudDataStore();
            var            returns = await data.GetItemsAsync("predators/");

            foreach (var p in returns)
            {
                CoreGraphics.CGPoint loc = new CoreGraphics.CGPoint(p.Latitude, p.Longitude);
                var annotation           = new MKPointAnnotation
                {
                    Coordinate = map.ConvertPoint(loc, map),
                    Title      = p.Name,
                    Subtitle   = p.Date.ToString()
                };
                map.AddAnnotation(annotation);
            }
        }