Creates a static map image from locations and markers.
class Maps method .newStaticMap()
Maps is the Apps Script service.
.newStaticMap() is the method name you will see after a dot in your code.
What it does
Why it's used
- Embed a map image in an email or slide with pinned locations.
- Show store or event locations without a full Maps UI.
Common errors
- Forgetting parentheses on newStaticMap. Write Maps.newStaticMap(), not Maps.newStaticMap or newStaticMap by itself.
- Skipping dots between chained calls. Each step needs a dot, like Maps.newStaticMap().
- Adding spaces where they do not belong. Write Maps.newStaticMap(), not Maps .newStaticMap(), Maps.newStaticMap (), or Maps . newStaticMap().
- Wrong capitalization. Use Maps and newStaticMap, not maps or newstaticmap.
Explore
Related methods
-
.newGeocoder()
Creates a geocoder to turn addresses into coordinates.
-
.newDirectionFinder()
Creates a directions helper to plan routes between places.
More Apps Script
Better Sheets tutorials
No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.
Related blog posts
Written guides about Maps.newStaticMap().
How I Use Google clasp to Write Apps Script with AI
Google clasp keeps your Apps Script in files on your computer, so an AI like Claude Code can read, edit and push it. My setup, my push script, and what broke.
Read post →What's Better Than Google Sheets?
Nothing is better than Google Sheets. You just need to learn more about the unlimited power of Google Sheets. Functions, Formulas, Apps Script and more.
Read post →Learn Google Sheets Apps Script
Learning Google Sheets coding and Apps Script can have several outcomes and results. Become more productive, more of an asset to your company. No matter if you work there or if you own the company.
Read post →