public MapForm(ref PokemonGo.RocketAPI.Client client)
        {
            InitializeComponent();

            // Set the client
            Client = client;

            // Initialize map:
            // Use google provider
            gMapControl1.MapProvider = GoogleMapProvider.Instance;

            // Get tiles from server only
            gMapControl1.Manager.Mode = AccessMode.ServerOnly;

            // Do not use proxy
            GMapProvider.WebProxy = null;

            // Zoom min/max
            gMapControl1.CenterPen = new Pen(Color.Red, 2);
            gMapControl1.MinZoom = trackBar.Maximum = 1;
            gMapControl1.MaxZoom = trackBar.Maximum = 20;

            // Set zoom
            trackBar.Value = 17;
            gMapControl1.Zoom = trackBar.Value;
        }
        public MapForm(ref PokemonGo.RocketAPI.Client client)
        {
            InitializeComponent();

            // Set the client
            Client = client;

            // Initialize map:
            // Use google provider
            gMapControl1.MapProvider = GoogleMapProvider.Instance;
            
            // Get tiles from server only
            gMapControl1.Manager.Mode = AccessMode.ServerOnly;
            
            // Do not use proxy
            GMapProvider.WebProxy = null;

            // Zoom min/max
            gMapControl1.CenterPen = new Pen(Color.Red, 2);
            gMapControl1.MinZoom = trackBar.Maximum = 1;
            gMapControl1.MaxZoom = trackBar.Maximum = 20;

            // Set zoom
            trackBar.Value = 17;
            gMapControl1.Zoom = trackBar.Value;
        }
Beispiel #3
0
        internal Manager(int Authentication, double Latitude, double Longitude)
        {
            Auth = (Authentication)Authentication;

            Details = new Settings(Latitude, Longitude);

            Client = new PokemonGo.RocketAPI.Client(Details);
        }