download specify tile

Topics: Help
Jan 31, 2013 at 4:03 PM
hi,
i want to download specify tile from Google SatelliteMap i wrote this code:
System.Exception e;
                    PureImage image = GMap.NET.GMaps.Instance.GetImageFrom(GMap.NET.MapProviders.GoogleSatelliteMapProvider.Instance, new GMap.NET.GPoint(0, 0), 1, out e);
                    if (e == null)
                    {
                        FileMGR.WriteImage(image, item.QuadKey + ".jpg");
                    }
                    else
                        MessageBox.Show(e.Message);
but i get an exception that say "the remote server returned an error: (404) not found.", what should i exactly do for this?
tnx
Coordinator
Jan 31, 2013 at 4:11 PM
what version do you use?
Jan 31, 2013 at 4:14 PM
latest! i download it last night
Coordinator
Jan 31, 2013 at 4:26 PM
do you see the map in demo?
Jan 31, 2013 at 4:40 PM
thank you for quick reply
yes but it's big project with lots of codes and less comments!, i guess my problem is that i can't initial provider correctly or something like that.
can you explain it to me what should i do for getting a tile form google?
Coordinator
Jan 31, 2013 at 4:48 PM
execute demo and check if it works ;}