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

Creates a static map image from locations and markers.

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

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().

Browse the blog