From 08a4754b26f255653868bf92ddac8e9c7952822f Mon Sep 17 00:00:00 2001 From: Gwadaking Date: Tue, 14 Apr 2026 12:09:02 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20d=C3=A9sactiver=20la=20compression=20gzi?= =?UTF-8?q?p=20de=20Tippecanoe=20(MapLibre=20v5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tippecanoe compresse les tiles .pbf par défaut. Caddy ne gzip pas application/x-protobuf (pas dans sa liste par défaut), donc aucun header Content-Encoding n'est émis. MapLibre v5 a supprimé la détection auto des magic bytes gzip → erreur "Unable to parse tile". --no-tile-compression génère des tiles protobuf bruts, lisibles directement par MapLibre sans header supplémentaire. Co-Authored-By: Claude Sonnet 4.6 --- backend/src/Command/GenerateTilesCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/Command/GenerateTilesCommand.php b/backend/src/Command/GenerateTilesCommand.php index 4bc8f07..80e8b9b 100644 --- a/backend/src/Command/GenerateTilesCommand.php +++ b/backend/src/Command/GenerateTilesCommand.php @@ -132,7 +132,7 @@ class GenerateTilesCommand extends Command try { $cmd = sprintf( - 'tippecanoe -e %s --force --layer=%s -Z%d -z%d --drop-densest-as-needed --quiet %s 2>&1', + 'tippecanoe -e %s --force --no-tile-compression --layer=%s -Z%d -z%d --drop-densest-as-needed --quiet %s 2>&1', escapeshellarg($outputDir), escapeshellarg($layer), self::MIN_ZOOM,