[openstreetmap/openstreetmap-website] Migrate `/export/embed.html` from leaflet to maplibre (PR #6804)

Marwin Hochfelsner notifications at github.com
Sat Mar 21 23:23:40 UTC 2026


@hlfan commented on this pull request.



> +  constructor(options = {}) {
+    const { includeReportLink, credit, ...maplibreOptions } = options;
+    if (includeReportLink) {
+      maplibreOptions.compact = false;
+    }
+    super(maplibreOptions);

Let's shorten this
```suggestion
  constructor({ includeReportLink, credit, ...options } = {}) {
    if (includeReportLink) {
      options.compact = false;
    }
    super(options);
```

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

Message ID: <openstreetmap/openstreetmap-website/pull/6804/review/3987116215 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260321/9d1313df/attachment.htm>


More information about the rails-dev mailing list