Also I might be wrong, but the screenshot seems to be generated on the server side, hence the couple seconds of wait. But I think it can be achieved much more efficiently using client-side APIs to take a direct screenshot of the `<canvas>` used to render the map. I tried it via inspect element, and it instantly generated the screenshot from the browser itself.. though this would not include the key/branding which needs to be appended programmatically.