fix: verrouiller la carte sur l'archipel guadeloupéen

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gwadaking
2026-04-14 16:33:10 -04:00
parent 2db067023f
commit 6a6f42e55b

View File

@@ -6,8 +6,8 @@ import './SargassesMap.css';
// Vue initiale : archipel guadeloupéen (Les Saintes → La Désirade → Basse-Terre) // Vue initiale : archipel guadeloupéen (Les Saintes → La Désirade → Basse-Terre)
const INITIAL_VIEW = { longitude: -61.35, latitude: 16.2, zoom: 9 }; const INITIAL_VIEW = { longitude: -61.35, latitude: 16.2, zoom: 9 };
// Limites souples : ~350 km à l'est pour voir les trajectoires approchantes // Carte verrouillée sur l'archipel guadeloupéen (+ ~25 km de marge côtière)
const MAX_BOUNDS = [[-63.5, 13.0], [-57.5, 18.5]]; const MAX_BOUNDS = [[-62.2, 15.5], [-60.5, 16.9]];
const FALLBACK_STYLE = 'https://basemaps.cartocdn.com/gl/positron-gl-style/style.json'; const FALLBACK_STYLE = 'https://basemaps.cartocdn.com/gl/positron-gl-style/style.json';
// ── Cartoon style transformer ────────────────────────────────────────────── // ── Cartoon style transformer ──────────────────────────────────────────────