Maps in email and PDFs
Use Static Maps wherever JavaScript and interactive canvases are unavailable.
Generate the image on your server, store it behind a stable URL, add useful alt text, and link the image to an interactive map when appropriate.
Recommended flow
Generate the image on your server, store it behind a stable URL, add useful alt text, and link the image to an interactive map when appropriate.
Ship the first useful version
Start with one happy path, explicit loading and empty states, and a visible retry action. Add caching, analytics and advanced filtering only after the core result is reliable.
Production checklist
Restrict the API key, validate user input, preserve longitude/latitude order, handle zero results, test Thai and English labels, and keep MapScale attribution visible.