Prototype XL : étiquettes des communes allégées (min_zoom de la tuile), villes en encre

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PWGVn3MeAPFsoCSyLs2zZW
This commit is contained in:
Jules Nény
2026-11-06 15:39:33 +01:00
co-authored by Claude Opus 5.5
parent 0f98449cea
commit 0f3305c722
+3 -3
View File
@@ -107,16 +107,16 @@ function couches(): LayerSpecification[] {
type: 'symbol', type: 'symbol',
source: 'bigorre', source: 'bigorre',
'source-layer': 'places', '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: { layout: {
'text-field': nom, 'text-field': nom,
'text-font': [POLICE], '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]], 'symbol-sort-key': ['-', 0, ['coalesce', ['get', 'population_rank'], 0]],
'text-padding': 4, 'text-padding': 4,
'text-max-width': 8, '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 },
}, },
]; ];
} }