Temporarily remove route draw until we don't find a way to draw it on the fly according to gmaps api.
Temporarily remove route draw until we don't find a way to draw it on the fly according to gmaps api.
diff --git a/PokemonGo.RocketBot.Window/Forms/MainForm.cs b/PokemonGo.RocketBot.Window/Forms/MainForm.cs
index 7ea20f5..d57676a 100644
--- a/PokemonGo.RocketBot.Window/Forms/MainForm.cs
+++ b/PokemonGo.RocketBot.Window/Forms/MainForm.cs
@@ -149,11 +149,13 @@ namespace PokemonGo.RocketBot.Window.Forms
}
else
{
- _settings = new GlobalSettings();
- _settings.ProfilePath = profilePath;
- _settings.ProfileConfigPath = profileConfigPath;
- _settings.GeneralConfigPath = Path.Combine(Directory.GetCurrentDirectory(), "config");
- _settings.TranslationLanguageCode = strCulture;
+ _settings = new GlobalSettings
+ {
+ ProfilePath = profilePath,
+ ProfileConfigPath = profileConfigPath,
+ GeneralConfigPath = Path.Combine(Directory.GetCurrentDirectory(), "config"),
+ TranslationLanguageCode = strCulture
+ };
BoolNeedsSetup = true;
}
@@ -249,16 +251,17 @@ namespace PokemonGo.RocketBot.Window.Forms
_playerOverlay.Markers.Clear();
_playerOverlay.Routes.Clear();
_playerLocations.Clear();
- var routePoint =
+ /*var routePoint =
(from pokeStop in pokeStops
where pokeStop != null
select new PointLatLng(pokeStop.Latitude, pokeStop.Longitude)).ToList();
+ // Temporary removed it since the route is calculated on the fly with gmap api's
var route = new GMapRoute(routePoint, "Walking Path")
{
Stroke = new Pen(Color.FromArgb(128, 0, 179, 253), 4)
};
- _pokestopsOverlay.Routes.Add(route);
+ _pokestopsOverlay.Routes.Add(route);*/
foreach (var pokeStop in pokeStops)
{
@@ -1024,5 +1027,10 @@ namespace PokemonGo.RocketBot.Window.Forms
}
#endregion POKEMON LIST
+
+ private void gMapControl1_Load(object sender, EventArgs e)
+ {
+
+ }
}
}
\ No newline at end of file
diff --git a/PokemonGo.RocketBot.Window/Forms/MainForm.designer.cs b/PokemonGo.RocketBot.Window/Forms/MainForm.designer.cs
index e256ed5..39ee085 100644
--- a/PokemonGo.RocketBot.Window/Forms/MainForm.designer.cs
+++ b/PokemonGo.RocketBot.Window/Forms/MainForm.designer.cs
@@ -53,11 +53,11 @@ namespace PokemonGo.RocketBot.Window.Forms
this.pkmnEvolveTimes = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
this.pkmnNickname = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
this.pkmnLevel = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
+ this.pkmnMove1 = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
+ this.pkmnMove2 = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
this.pkmnTransferButton = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
this.pkmnPowerUpButton = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
this.pkmnEvolveButton = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
- this.pkmnMove1 = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
- this.pkmnMove2 = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
this.cmsPokemonList = new System.Windows.Forms.ContextMenuStrip(this.components);
this.largePokemonImageList = new System.Windows.Forms.ImageList(this.components);
this.smallPokemonImageList = new System.Windows.Forms.ImageList(this.components);
@@ -178,6 +178,7 @@ namespace PokemonGo.RocketBot.Window.Forms
this.gMapControl1.Size = new System.Drawing.Size(605, 239);
this.gMapControl1.TabIndex = 23;
this.gMapControl1.Zoom = 0D;
+ this.gMapControl1.Load += new System.EventHandler(this.gMapControl1_Load);
//
// olvPokemonList
//
@@ -304,6 +305,16 @@ namespace PokemonGo.RocketBot.Window.Forms
this.pkmnLevel.Text = "Lv";
this.pkmnLevel.Width = 50;
//
+ // pkmnMove1
+ //
+ this.pkmnMove1.AspectName = "Move1";
+ this.pkmnMove1.Text = "Move1";
+ //
+ // pkmnMove2
+ //
+ this.pkmnMove2.AspectName = "Move2";
+ this.pkmnMove2.Text = "Move2";
+ //
// pkmnTransferButton
//
this.pkmnTransferButton.AspectName = "Id";
@@ -328,16 +339,6 @@ namespace PokemonGo.RocketBot.Window.Forms
this.pkmnEvolveButton.IsButton = true;
this.pkmnEvolveButton.Text = "";
//
- // pkmnMove1
- //
- this.pkmnMove1.AspectName = "Move1";
- this.pkmnMove1.Text = "Move1";
- //
- // pkmnMove2
- //
- this.pkmnMove2.AspectName = "Move2";
- this.pkmnMove2.Text = "Move2";
- //
// cmsPokemonList
//
this.cmsPokemonList.Name = "cmsPokemonList";
You may download the files in Public Git.