diff --git a/app/public/app.js b/app/public/app.js index 1cc53e1..96fd2e5 100644 --- a/app/public/app.js +++ b/app/public/app.js @@ -174,7 +174,9 @@ async function flyToHurricane(storm) { const map = mapsOverview.map; if (!map) return; - if (!map.loaded()) await new Promise(resolve => map.once('load', resolve)); + // 'load' fires only once per map, so waiting on it hangs forever whenever tiles are mid-load; + // flyTo works regardless, so just make sure the canvas has its real size first. + map.resize(); map.flyTo({ center: [lon, lat], zoom: 4, duration: 900 });