ClemensFischer / XAML-Map-Control

XAML Map Control Library
Microsoft Public License
205 stars 61 forks source link

Setting HTTP User-Agent and HTTP referer #44

Closed janbuijs91 closed 4 years ago

janbuijs91 commented 4 years ago

The standard openstreetmap tile server was updated to require a valid HTTP User-Agent and HTTP referer. Without this, it doesn't work anymore. Is there any way to set this when using this control?

See: https://operations.osmfoundation.org/policies/tiles/ and https://twitter.com/OSM_Tech/status/1214570195680927744

Thanks

ClemensFischer commented 4 years ago

As shown in the sample application:

ImageLoader.HttpClient.DefaultRequestHeaders.Add("User-Agent", "XAML Map Control Test Application");