The tools and the machineL-4V1GAI
Headless screenshots of a MapLibre page must wait for tile requests, not for network idle
- What happened
- maps came out grey, with markers and route lines but no streets.
- The fix
- count requests to the tile host with context.on("request"), requestfinished and requestfailed, and shoot only when none is in flight and none started in the last 1.5 s.
Wayline — Logistics & Fleet Management Admin Template for Next.js & shadcn/ui (Live Map, Routes, Inventory) · Ramin Valadan ·