π‘ Home π Chapter π Prev π Next
β‘Β GMapsBook.com is crafted by Jozef Sorocin (π’Β Book a consulting hour) and powered by:
Remember the last time you took a trip with Uber/Lyft/Bolt? Just as the trip ended, you probably got an email containing the receipt and trip summary. This trip summary then contained the route βscreenshotβ:
Sample Uber trip summary
The map βscreenshotβ is what we call a static map.
In contrast to dynamic maps which you can zoom, pan, and move, static maps are image snapshots (GIF, PNG, or JPEG) of a given viewport.
<aside> π As you remember from the chapter on map tiles, dynamic raster maps are themselves composed of styled image tiles. The Static API lets you request the very same tiles β on demand.
</aside>
In this chapter, youβll learn how to leverage the Google Maps Static API to:
For my ride-hailing app Iβm working on an email that contains an image snapshot of the route. Iβd like to visually differentiate between the origin and the destination. Plus, I need to make sure the map pins are correctly positioned:
A static map consistent with my brand displaying visually distinct markers