private MapElement MapElementBySubCircleFlyZone(SubFlyZoneInformation subFlyZone) { MapElement element = new MapPolygon { FillColor = GetFillColor(subFlyZone.Category, subFlyZone.MaximumFlightHeight), Path = new Geopath(CalculateCircle(BasicGeopositionFromZoneLocation(subFlyZone.Center), subFlyZone.Radius)), }; return(element); }
private MapElement MapElementBySubPolygonFlyZone(SubFlyZoneInformation subFlyZone) { List <BasicGeoposition> vertices = new List <BasicGeoposition>(subFlyZone.Vertices.Count); foreach (var item in subFlyZone.Vertices) { vertices.Add(BasicGeopositionFromZoneLocation(item)); } MapElement element = new MapPolygon { FillColor = GetFillColor(subFlyZone.Category, subFlyZone.MaximumFlightHeight), Path = new Geopath(vertices), }; return(element); }