AnsweredAssumed Answered

Provide OpenStreetmap Implementation with User-Agent

Question asked by Scott_Brady on Jan 21, 2020
Latest reply on Jan 23, 2020 by mnielsen-esristaff

Hi,

 

Referring to the following post. OpenStreetMap as Basemap in WPF with ArcGis 

 

I currently have this problem occurring.

 

I am currently on the 10.2.7 version of the .NET SDK and migrating to 100.7 at the moment is not an option.

 

The solution mentioned in this article was to subclass the TiledLayer class  and override the GetFileDataAsync() method in order to inject a user-agent string into the web request. I can see no way to do this with within this function. Does anyone have any sample code illustrating how to do this.

 

Kind Regards

 

Scott Brady.

Outcomes