All Collections
PDF Code Examples
Code Example: Google Maps
Code Example: Google Maps
James Paden avatar
Written by James Paden
Updated over a week ago

Here's how easy it is to make a DocRaptor PDF with a Google Map Static image. After getting a Google Map's API key, just get the static map image URL and put it in your document:

<!DOCTYPE html>
<html>
  <body>
    <img src="https://maps.googleapis.com/maps/api/staticmap?center=40.714728,-73.998672&zoom=12&size=400x400&maptype=roadmap&key">
  </body>
</html>

Note: This example image may not appear as after the example was created, Google removed support for free, keyless Google Map images.

Did this answer your question?