<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=128060241156018&amp;ev=PageView&amp;noscript=1">
Skip to content
  • There are no suggestions because the search field is empty.

How to generate static Map screenshots for email/social media

In order to fetch a snapshot/screenshot of the Stay22 map for your email campaigns, link the image src to our static version of the website by replacing www to static, like so:

https://static.stay22.com/embed/gm?aid=affiliateid&lat=40.742612&lng=-73.987777&venue=Optional%20Text

Example with an <img> tag with 256px/256px:

 

Please wait for the image to be dynamically generated. Once the snapshot is taken, it will be cached indefinitely. Should you want to refresh the cache, simply send &refresh=true as a query param once.

Extra parameters for static:

Name

Type

Default Value

Description

refresh

boolean

false

If you want to flush the cache, then set this as “true”.

resolution

number

2

Set resolution for retina screens (2) or set to (1) for normal.

width

number

800

Set the width in px.

height

number

400

Set the height in px.