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

@ -962,7 +962,10 @@ def map_meta():
"tile_size": tiles_mod.TILE_SIZE * 2,
"zoom_offset": -1,
"min_zoom": tiles_mod.TILE_MIN_Z,
"max_native_zoom": tiles_mod.TILE_MAX_NATIVE_Z - 1,
# Numérotation standard, comme le niveau de tuile Leaflet (l'URL @2x
# est un cran en dessous via zoom_offset) : 19 = 0,2 m/px natif,
# servi en 18@2x. Annoncer 18 plafonnait l'affichage à 0,4 m/px.
"max_native_zoom": tiles_mod.TILE_MAX_NATIVE_Z,
"bounds": tiles_mod.grid_bounds_wgs84(OUTPUT_DIR),
"stamp": tiles_mod.tiles_stamp(OUTPUT_DIR),
"attribution": ATTRIBUTION,