Repository navigation
Replies: 4 comments 13 replies
|
Possibly relevant OSM website issue: openstreetmap/openstreetmap-website#6240 |
|
Thanks for opening a dedicated feature request. I think the main challenge here isn't whether a software renderer would be nice to have - it certainly may improve compatibility sligtly - but whether it is practical to implement and maintain. MapLibre GL JS is fundamentally designed around a GPU rendering pipeline. A software fallback would effectively require a second rendering backend (or a substantial abstraction layer) while still meeting our expectations for rendering correctness, performance, bundle size, and long-term maintenance. At the moment, I don't think we have the maintainer or contributor capacity to take on a project of that scope. If someone can demonstrate a realistic approach for the required feature set with acceptable performance and integration cost, or even a proof of concept, we'd certainly be happy to evaluate it. |
|
I'm not discounting CVEs. We're one CVE from all our phones becoming a giant botnet. However, there have been and will continue to be CVEs in JavaScript, but the world still uses it. There have been CVEs in image formats, and they soldier on. I think you might be less comfortable with WebGL than the world at large. And that's perfectly fine too, as is your request, I just don't see it happening is all. |
|
Some other scenarios where this might be relevant, beyond security:
Now for something like a game I don't think this matters, but OSM embeds seem to be becoming so extremely widespread now. And basic maps not working on what feels like now the majority of pages is going to be a showstopper for many users. E.g. most office tasks will work fine on a machine without 3d acceleration, but if you can't look up how to get to a business location because the map doesn't work, that's a problem. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
User Story
I guess if I should put my own experience here, I just happen to have WebGL disabled because it can be insecure. This impacts almost nothing, most importantly also not Google Maps. Even the normal OpenStreetMap works fine, but I'm coming across an increasing amount of map embeds that no longer work - and many of them seem to be using OSM that appears to be using this library for those. It would be nice if those embeds worked even without WebGL. If that resulted in some details not displaying as nicely or the performance being worse, that would still be preferrable over no map at all.
(It's also not a no-brainer to just enable WebGL for the respective map embed, because especially when it's used as an embed, it might be any random small website with not particularly great security where it's not the best idea to enable it.)
Rationale
WebGL sadly can be rather insecure, e.g. on many mobile phones the GPU drivers can be outdated or buggy and therefore the security boundaries can't really be trusted. Meanwhile, rendering a vector map on a relatively modern machine doesn't require WebGL, see e.g. CoMaps. Many big and widely-used projects, including Stadia Maps and OpenStreetMap, seem to be moving toward MapLibre GL. Therefore, the positive reach of a non-3d render path would potentially be quite huge.
Impact
It would help all those users who are more security aware or who might be using an oddball device with no 3d acceleration driver, if there were a software rendering path available.
AI Assistance
no
All reactions