Esempio n. 1
0
        public GridUIv2(GridPluginv2 plugin)
        {
            this.plugin = plugin;

            InitializeComponent();

            map.MapProvider = plugin.Host.FDMapType;

            map.Position = plugin.Host.FPMenuMapPosition;
            map.Zoom = 16;

            layerpolygons = new GMapOverlay( "polygons");
            map.Overlays.Add(layerpolygons);

            plugin.Host.FPDrawnPolygon.Points.ForEach(x => { list.Add(x); });

			num_overlap = 50;
			num_sidelap = 60;

            NUM_altitude.Value = 50;
			
            // set and angle that is good
            NUM_angle.Value = (decimal)((getAngleOfLongestSide(list) + 360) % 360);

        }
        public GridUIv2(GridPluginv2 plugin)
        {
            this.plugin = plugin;

            InitializeComponent();

            map.MapProvider = plugin.Host.FDMapType;

            map.Position = plugin.Host.FPMenuMapPosition;
            map.Zoom     = 16;

            layerpolygons = new GMapOverlay("polygons");
            map.Overlays.Add(layerpolygons);

            plugin.Host.FPDrawnPolygon.Points.ForEach(x => { list.Add(x); });

            num_overlap = 50;
            num_sidelap = 60;

            NUM_altitude.Value = 50;

            // set and angle that is good
            NUM_angle.Value = (decimal)((getAngleOfLongestSide(list) + 360) % 360);
        }