I have been running into an error when zooming the map - particularly, when zooming in with the map maximized on a 4K screen using the shift+click draw box to zoom into a city from pretty much the world extent. The map will throw an error saying:
WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost [http://localhost:5000/InsertMapPageNameHere]
I am unsure what is causing this error nor how to recover from it when it throws. The map becomes blank and unresponsive while the rest of the application continues to work fine. If I attempt to refresh the page, I get an exception thrown in the javascript:
Microsoft.JSInterop.JSException: 'Cannot read property 'getExtension' of null
TypeError: Cannot read property 'getExtension' of null
at new ol.webgl.Context (eval at <anonymous> (http://localhost:5000/js/ThinkGeo/1.0.0/blazor.js:1:1), <anonymous>:1:1001908)
at new ol.renderer.webgl.Map (eval at <anonymous> (http://localhost:5000/js/ThinkGeo/1.0.0/blazor.js:1:1), <anonymous>:1:1118205)
at Function.ol.renderer.webgl.Map.create (eval at <anonymous> (http://localhost:5000/js/ThinkGeo/1.0.0/blazor.js:1:1), <anonymous>:1:1119483)
at t.ol.PluggableMap [as constructor] (eval at <anonymous> (http://localhost:5000/js/ThinkGeo/1.0.0/blazor.js:1:1), <anonymous>:1:215878)
at t.ol.Map [as constructor] (eval at <anonymous> (http://localhost:5000/js/ThinkGeo/1.0.0/blazor.js:1:1), <anonymous>:1:1148628)
at new t (http://localhost:5000/js/ThinkGeo/1.0.0/blazor.js:2:2386)
at Object.createMap (http://localhost:5000/js/ThinkGeo/1.0.0/blazor.js:2:24613)
at http://localhost:5000/_framework/blazor.server.js:8:31421
at new Promise (<anonymous>)
at e.beginInvokeJSFromDotNet (http://localhost:5000/_framework/blazor.server.js:8:31390)'
The javascript error will cause the application to become unresponsive. Any ideas on how to resolve this issue?