I have a page which is being rendered as pdf and in it there is a google static maps image which is not being displayed. This used to work fine but for some reason seems to have stopped working.

The image displays fine if the page is not rendered as a pdf.

https://maps.googleapis.com is included in the Remote Site settings.

The Google Maps API key has had restrictions turned off on it as I thought maybe the pdf render engine was hitting it from a different url to the normal ones.

Any advice or even confirmation from others if they can render google static maps in a visualforce pdf.

1 Answer 1


If you can, I would suggest moving away from your own Google Maps API keys, and the hassel of managing remote sites, and implement the tag in Visualforce - https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_map.htm

If you replace your code with this, does it render as PDF?

  • 1
    It will not work since it is JavaScript-based map, which does not work in PDF renderer engine
    – kurunve
    Jan 14, 2020 at 14:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .