Closed GoogleCodeExporter closed 9 years ago
Issue 57 has been merged into this issue.
Original comment by fraser.c...@gmail.com
on 6 Oct 2011 at 10:27
Issue 56 has been merged into this issue.
Original comment by fraser.c...@gmail.com
on 6 Oct 2011 at 10:27
Issue 55 has been merged into this issue.
Original comment by fraser.c...@gmail.com
on 6 Oct 2011 at 10:27
Hi,
Thanks for bringing this up...
There is a bug with how the view is set in the
GEToolStrip.NavigationButton_Click method.
Rather than simply flying to the coordinates specified - the controls are
geocoding the query via the v2 maps api and returning a result (which is only
accurate to 4 decimal places). This is causing the discrepancy you are seeing.
Idealy the navigation box should recognise that the input is a pair of deciamal
degrees, forgo the geocoding compleately, and just show the given location.
For this to happen there should be an additional format check on the input -
something like the following at line 396 in GEToolStrip.cs would work well.
--------------------------------------
else if (input.Contains(','))
{
string[] parts = input.Split(',');
if (parts.Length == 2)
{
double latitude;
double longitude;
if (double.TryParse(parts[0], out latitude) && double.TryParse(parts[1], out longitude))
{
GEHelpers.LookAt(this.geplugin, latitude, longitude);
}
}
}
--------------------------------------
It will be fixed in the next commit.
Original comment by fraser.c...@gmail.com
on 7 Oct 2011 at 9:51
Sorry about the duplicate postings of this issue--Google Code kept giving me
a 502 error when I tried to add this as a new issue.
On Fri, Oct 7, 2011 at 5:52 AM, <
winforms-geplugin-control-library@googlecode.com> wrote:
Original comment by kco...@gmail.com
on 7 Oct 2011 at 3:53
I tested your fix and it works well. Just change the single quotes to double
quotes in the first line:
else if (input.Contains(","))
Original comment by kco...@gmail.com
on 7 Oct 2011 at 4:08
ah yea - good catch on the typo too! don't worry about the duplicate posting -
it does that to me now and again!
Original comment by fraser.c...@gmail.com
on 7 Oct 2011 at 6:06
This is fixed in the latest commit.
Original comment by fraser.c...@gmail.com
on 8 Oct 2011 at 12:44
Original issue reported on code.google.com by
kco...@gmail.com
on 6 Oct 2011 at 9:50Attachments: