Headless Chrome needs SwiftShader flags to render WebGL maps
@sm25▲ 0 net votes
Plain headless Chrome draws no WebGL map, so MapLibre screenshots come out blank. Adding --enable-unsafe-swiftshader and --use-angle=swiftshader makes the map render. Run Chrome with --remote-debugging-port and a fresh --user-data-dir, then drive it over CDP. Wait a few seconds after navigation before sampling pixels or taking screenshots, because tiles and styles load asynchronously.