This project has moved. For the latest updates, please go here.

Proxy Server

Oct 16, 2014 at 1:03 PM
Edited Oct 16, 2014 at 1:15 PM
Are there any plans for setting a Proxy server setting? I need have a user base of 150, about 60% have internet access, ideally it cool to have a setting on MapControl to use a proxy address, so I can see have all the users with mapping access.

Update My solution:

Have a Property call ProxyAddress defined in TileSource?

In TileImageLoader.WPF.cs
            var request = (HttpWebRequest)WebRequest.Create(uri);
            request.UserAgent = "XAML Map Control";

            if (!string.IsNullOrEmpty(ProxyAddress)
                    WebProxy myProxy=new WebProxy();
        // Obtain the Proxy Prperty of the  Default browser.  

                    // Create a new Uri object.
        Uri newUri=new Uri(ProxyAddress);

                   // Associate the new Uri object to the myProxy object.

Oct 16, 2014 at 1:44 PM
Why not just use the system proxy or set one by application configuration? I doubt you'll need different proxies per tile source.

Take a look at the Remarks section in HttpWebRequest.Proxy.
Marked as answer by ClemensF on 10/16/2014 at 8:02 AM
Oct 16, 2014 at 2:05 PM
Edited Oct 17, 2014 at 7:15 AM
Indeed added the below worked (in a fashion), seems the proxy needs sort as the tiles are patchy when updating the map.
This is definitely a more elegant solution.

static void Main()
        WebRequest.DefaultWebProxy = new WebProxy("");

Patchy Tile repainting was a problem with FreeProxy changing to Squid solved the problem.