[openstreetmap/openstreetmap-website] Fix vector tile attribution issues (PR #6236)
petr-hajek
notifications at github.com
Wed Jul 23 21:52:13 UTC 2025
@petr-hajek requested changes on this pull request.
I think to avoid code repetition between maptiler and shortbread, best would be to move the logic to leaflet.maplibre.js
```
L.OSM.MaplibreMap = L.MaplibreGL.extend({
_getAttribution: function () {
return this.options.attribution;
},
_blankAttribution: function () {
return "";
},
onAdd: function (map) {
this.getAttribution = this._blankAttribution;
L.MaplibreGL.prototype.onAdd.call(this, map);
this.getAttribution = this._getAttribution;
}
});
```
And then to extend this from both of the files
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6236#pullrequestreview-3049187522
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6236/review/3049187522 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250723/153f97c9/attachment.htm>
More information about the rails-dev
mailing list