[openstreetmap/openstreetmap-website] Use MapLibre class extensions to DRY code (PR #6726)
Marwin Hochfelsner
notifications at github.com
Mon Jan 19 20:59:27 UTC 2026
@hlfan commented on this pull request.
> @@ -0,0 +1,48 @@
+//= require maplibre-gl/dist/maplibre-gl
+//= require maplibre/controls
+//= require maplibre/dom_util
+//= require maplibre/styles
+
+maplibregl.Map.prototype._getUIString = function (key) {
`_getUIString` is already called in the Map constructor to set the ARIA label for the container. A replacement can't be assigned in time for that. I think it's more worth not having an edge case here than replacing it cleanly.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6726#discussion_r2706057586
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6726/review/3679604788 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260119/98eb137d/attachment.htm>
More information about the rails-dev
mailing list