Https Support
All built-in providers like Bing and ArcGIS are using the HTTP protocol when constructing the web URLs used to download the map tile images.
The protocol can be changed to HTTPS by setting the static ProtocolHelper.UseHttpsScheme
property to true
. This will redirect the built-in provider's tile downloading links to use HTTPS.
Enable HTTPS
public MainWindow()
{
ProtocolHelper.UseHttpsScheme = true;
InitializeComponent();
}
ServicePointManager.SecurityProtocol
property.
Set the security protocol
public MainWindow()
{
ProtocolHelper.UseHttpsScheme = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
InitializeComponent();
}
Set the security protocol in .NET 4
public MainWindow()
{
ProtocolHelper.UseHttpsScheme = true;
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
InitializeComponent();
}