Afficher la résolution native 0,2 m au lieu d'étirer le niveau 0,4 m

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Antoine Jacquin
2026-09-27 12:50:53 +02:00
parent 759cb96dcc
commit 34152269aa
4 changed files with 18 additions and 10 deletions

View File

@ -208,7 +208,7 @@ def test_map_meta(tmp_path, monkeypatch):
assert meta["tile_url"] == "tiles/{layer}/{z}/{x}/{y}@2x.avif"
assert meta["even_levels"] is True
assert meta["tile_size"] == 512 and meta["zoom_offset"] == -1
assert meta["max_native_zoom"] == 18
assert meta["max_native_zoom"] == 19
assert meta["bounds"] and meta["stamp"] > 0
assert meta["default_layers"] == ["relief_oriente"]
@ -409,6 +409,9 @@ def test_ui_uses_standard_tilelayer():
assert "tileSize: META.tile_size" in _MAP_JS
assert "zoomOffset: META.zoom_offset" in _MAP_JS
assert "maxNativeZoom: META.max_native_zoom" in _MAP_JS
# Le niveau natif impair (19 = 0,2 m/px) est demandé tel quel, jamais
# replié sur le pair inférieur (affichage plafonné à 0,4 m/px).
assert "z % 2 && (maxN === undefined || z < maxN)" in _MAP_JS
# Plus aucune mécanique de l'ancienne carte
for banned in ("quadMatrix3d", "FULL_CAP", "ovTick", "layoutTiles"):
assert banned not in _MAP_JS