[openstreetmap/openstreetmap-website] Add Human facing error messages when users without WebGL use (PR #6782)

Frank Elsinga notifications at github.com
Wed Mar 4 22:13:25 UTC 2026


@CommanderStorm commented on this pull request.



> @@ -6,6 +6,17 @@ maplibregl.Map.prototype._getUIString = function (key) {
   return OSM.i18n.t(`javascripts.map.${snakeCaseKey}`);
 };
 
+OSM.MapLibre.showWebGLError = function (container) {
+  const containerElement =
+    typeof container === "string" ? document.getElementById(container) : container;
+
+  if (containerElement) {
+    fetch("/panes/webgl_error")

I don't think this is actualyl an issue worth fixing.
Lets rembember how many users this actualy affects.. not that many.

Doing multiple reaquests was one of the choices that comes with pushing this to these ruby pages that are fetched.

I can either have this in ruby and then do web requests, or have this on the js side and not.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6782#discussion_r2886412431
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6782/review/3892342233 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260304/874813ca/attachment.htm>


More information about the rails-dev mailing list