From e30e3fc444bc833b20e7ebb8fc2a85740a63f961 Mon Sep 17 00:00:00 2001 From: Valentyne Stigloher Date: Sun, 26 May 2024 23:22:51 +0200 Subject: [PATCH] (style) hide country borders and labels from No borders. No nations. Trans liberation. --- components/LanguageMap.vue | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/components/LanguageMap.vue b/components/LanguageMap.vue index 136ec9b7f..424d30900 100644 --- a/components/LanguageMap.vue +++ b/components/LanguageMap.vue @@ -41,7 +41,25 @@ export default dark.extend({ .addAttribution('wals.info') .addTo(map); - new window.L.GridLayer.TinyWorld({ maxZoom: 19 }).addTo(map); + new window.L.GridLayer.TinyWorld({ + minZoom: 1, + maxZoom: 5, + render: { + country_borders: { + style: { + strokeStyle: 'rgba(0, 0, 0, 0)', + }, + }, + country_labels: { + options: { minZoom: 10 }, + }, + lakes: { + style: { + strokeStyle: 'rgba(0, 0, 0, 0)', + }, + }, + }, + }).addTo(map); for (const walsLanguage of walsLanguages) { if (!localesByWalsCode.hasOwnProperty(walsLanguage.id)) {