Options for MapEffects.capture.
Optional
Device pixels per CSS pixel to render at. It defaults to the map's current ratio. 2 or 3 gives a print-grade capture of the same view. MapLibre clamps to its maxCanvasSize, so measure the ratio you got from the returned canvas rather than assuming.
2
3
maxCanvasSize
Options for MapEffects.capture.