You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Map ID specified, Google Maps API appears to use WebGL, as one of the requested JS scripts is called webgl.js (which doesn't get requested when the default map style is used).
Headless Chromium, used with cypress run, appears to be known to fail with WebGL
We've found a temporary solution: choose raster, not vector, in the settings for a Map ID.
But this comes at the cost of performance, it seems.
"The vector map is the same Google map your users are familiar with using, and offers a number of advantages over the default raster tile map, most notably the sharpness of vector-based images, and the addition of 3D buildings at close zoom levels. The vector map also supports some new features, such as the ability to add 3D content with WebGL Overlay View, programmatic tilt and heading control, enhanced camera control, and fractional zoom for smoother zooming." (source, emphasis mine)
When released, we should switch to the vector map.
With Map ID specified, Google Maps API appears to use WebGL, as one of the requested JS scripts is called
webgl.js
(which doesn't get requested when the default map style is used).Headless Chromium, used with
cypress run
, appears to be known to fail with WebGLFor MapBox, adding an option
preserveDrawingBuffer: true
seems to be a solution.What is the equivalent option for Google Maps?
cf. How to save the canvas image as a PNG with Cypress: https://glebbahmutov.com/blog/canvas-testing/#saving-the-canvas
The text was updated successfully, but these errors were encountered: