How to download a map screenshot as a PNG file (screenshot helper)
This example shows how to download the current map view as a PNG file. The screenshot helper is the most convenient way to save map snapshots.
Getting a file directly is a nice option that can be useful to share some debugging context with colleagues, compare multiple styles, or share your creation on social media.
Click on the Take screenshot button to download a image for the current map view
Related examples
An extension of MapLibre GL JS