Example #1
0
        public frmMain()
        {
            InitializeComponent();

            drawingMode = mode.idle;

            FlightPath = new FlightPath();
            Geometry = new Geometry();

            //sets which server the Control will get its map from and what mode it will be in
            gMapMain.MapProvider = GMapProviders.GoogleSatelliteMap;
            gMapMain.Manager.Mode = AccessMode.ServerAndCache;

            //details for access to map servers through school proxy
            /*GMapProvider.WebProxy = WebRequest.GetSystemWebProxy();
            GMapProvider.WebProxy.Credentials = new NetworkCredential("daniel.mann2", "5t3v3n");   */

            gMapMain.SetPositionByKeywords("Gosford, Australia");

            //sets limits and initial value for zoom of map
            trBarZoom.Maximum = gMapMain.MaxZoom = iMaxZoom;
            trBarZoom.Minimum = gMapMain.MinZoom = iMinZoom;
            trBarZoom.Value = iStartZoom;
            gMapMain.Zoom = iStartZoom;

            //adds overlays to the map which markers paths and polygons can then be placed on
            MarkerOverlay = new GMapOverlay("Markers");
            PathOverlay = new GMapOverlay("Path");
            PolyOverlay = new GMapOverlay("Poly");
            gMapMain.Overlays.Add(MarkerOverlay);
            gMapMain.Overlays.Add(PathOverlay);
            gMapMain.Overlays.Add(PolyOverlay);

            //initializes lists of points used for paths and polygons
            lPointsPath = new List<PointLatLng>();
            lPointsPoly = new List<PointLatLng>();
            lPointsConvexHull = new List<PointLatLng>();
        }
Example #2
0
 public FlightPath()
 {
     Geometry = new Geometry();
 }