From 0f3305c722caef6fdf7c3735f68358496616b200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jules=20N=C3=A9ny?= Date: Fri, 6 Nov 2026 15:39:33 +0100 Subject: [PATCH] =?UTF-8?q?Prototype=20XL=20:=20=C3=A9tiquettes=20des=20co?= =?UTF-8?q?mmunes=20all=C3=A9g=C3=A9es=20(min=5Fzoom=20de=20la=20tuile),?= =?UTF-8?q?=20villes=20en=20encre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mesures du lot faites sur ce style : premier affichage 390 x 844, 15 requêtes, 1 616 574 octets transférés, un seul hôte, plage d'octets 206. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01PWGVn3MeAPFsoCSyLs2zZW --- xl/style.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xl/style.ts b/xl/style.ts index ca99805..d30e337 100644 --- a/xl/style.ts +++ b/xl/style.ts @@ -107,16 +107,16 @@ function couches(): LayerSpecification[] { type: 'symbol', source: 'bigorre', 'source-layer': 'places', - filter: ['all', ['==', ['get', 'kind'], 'locality'], ['in', ['get', 'kind_detail'], ['literal', ['city', 'town', 'village']]], ['<=', ['coalesce', ['get', 'min_zoom'], 0], ['+', ['zoom'], 1]]], + filter: ['all', ['==', ['get', 'kind'], 'locality'], ['in', ['get', 'kind_detail'], ['literal', ['city', 'town', 'village']]], ['<=', ['coalesce', ['get', 'min_zoom'], 0], ['zoom']]], layout: { 'text-field': nom, 'text-font': [POLICE], - 'text-size': ['interpolate', ['linear'], ['zoom'], 8, ['match', ['get', 'kind_detail'], 'city', 15, 'town', 12, 10.5], 13, ['match', ['get', 'kind_detail'], 'city', 19, 'town', 16, 14]], + 'text-size': ['interpolate', ['linear'], ['zoom'], 8, ['match', ['get', 'kind_detail'], 'city', 16, 'town', 14, 11], 13, ['match', ['get', 'kind_detail'], 'city', 20, 'town', 17, 14]], 'symbol-sort-key': ['-', 0, ['coalesce', ['get', 'population_rank'], 0]], 'text-padding': 4, 'text-max-width': 8, }, - paint: { 'text-color': PAL.encre2, 'text-halo-color': PAL.papier2, 'text-halo-width': 1.4 }, + paint: { 'text-color': ['match', ['get', 'kind_detail'], 'village', PAL.encre2, PAL.encre], 'text-halo-color': PAL.papier2, 'text-halo-width': 1.4 }, }, ]; }