private static HeroCard GetCard(string orderId) { var map = new StaticMapRequest { Path = new Path { Color = MapColor.FromName("red"), Points = new List <Location> { new Location("Port of Hai Phong, Hai Phong"), new Location("Cam Ranh bay, Khanh Hoa, 650000"), new Location("Saigon Port, Ho Chi Minh city") } }, Center = new Location("Cam Ranh bay, Khanh Hoa, 650000"), Size = new MapSize(500, 500), Zoom = 4 }; return(new HeroCard { Title = $"Order number {orderId}", Subtitle = $"Expected arrive date: {DateTime.Now.AddDays(7).ToShortDateString()}", Text = "Shipment is currently in Cam Ranh bay, Khanh Hoa. The status is Delivered.", Images = new List <CardImage> { new CardImage(map.ToUri().ToString()) } }); }
private static Path GreenTriangleInAdaMN() { return(new Path( new LatLng(47.3017, -96.5299), new LatLng(47.2949, -96.4999), new LatLng(47.2868, -96.5003), new LatLng(47.3017, -96.5299) ) { Color = MapColor.FromName("green") }); }
private static Path RedTriangleNearAdaMN() { return(new Path( new LatLng(47.3105, -96.5326), new LatLng(47.3103, -96.5219), new LatLng(47.3045, -96.5219), new LatLng(47.3105, -96.5326) ) { Color = MapColor.FromName("red") }); }