From 7670989798785ecb2bc1a563e61df96404cdecf3 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 12 Dec 2024 15:29:54 +0100 Subject: [PATCH] fixup: bigger images from wikipedia --- umap/static/umap/js/modules/rendering/template.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/modules/rendering/template.js b/umap/static/umap/js/modules/rendering/template.js index 9e7487a8..232080dc 100644 --- a/umap/static/umap/js/modules/rendering/template.js +++ b/umap/static/umap/js/modules/rendering/template.js @@ -250,7 +250,7 @@ class Wikipedia extends PopupTemplate { if (!wikipedia) return 'No data' // Wikipedia value should be in form of "{locale}:{title}", according to https://wiki.openstreetmap.org/wiki/Key:wikipedia const [locale, page] = wikipedia.split(':') - const url = `https://${locale}.wikipedia.org/w/api.php?action=query&format=json&origin=*&pithumbsize=280&prop=extracts|pageimages&titles=${page}` + const url = `https://${locale}.wikipedia.org/w/api.php?action=query&format=json&origin=*&pithumbsize=500&prop=extracts|pageimages&titles=${page}` const request = new Request() const response = await request.get(url) if (response?.ok) {