Blank Map with WebBrowser in Visual Studio 2022

I am trying to access an OpenStreetMap link using a WebBrowser in Visual Studio 2022. It is a Windows Forms (.Net Framework) application, and the **

** (OpenStreetMap) directly inserted into its properties. When running the code, I get the following errors:

Script error on this page
Line: 29
Character: 255
Error: Expected ‘:’
Code: 0
URL: https://www.openstreetmap.org/assets/application-32f726e33bf44eeb7c7f9de73cb89ca5bd5e9dd5dd43b8e970b440e0e80ddf1e.js

Script error on this page
Line: 1
Character: 21
Error: ‘I18n’ is not defined
Code: 0
URL: https://www.openstreetmap.org/assets/i18n/es-198256f1f9b8e06f498ac39bfd1cd6e1332c22111614a280378de75044b4231c.js

Script error on this page
Line: 8
Character: 249
Error: Syntax error
Code: 0
URL: https://www.openstreetmap.org/assets/index-1621dff231ccbcdb4acedd18253396676ce3d6f5dec0163fb779b056eaef1d08.js

As a result, no map appears. Does anyone know the solution? Thanks in advance.


What are you actually trying to achieve?

If it is “some raster maps in a webview in a desktop application” then I’d suggest just using something like Leaflet - if your webview can run Javascript, it should work.

Embedding an entire site (osm.org) in an application’s webview isn’t guaranteed to work, since the site design makes assumptions about where it’s deployed.

If you “just want map editing”, have a look at things like MapRoulette.