예제 #1
0
        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);
        }
예제 #2
0
        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);
        }