Hi,
I am trying to use the pdf helper googleMapsImage to print a map in my pdf. No map is embedded in the PDF.
I have google integration setup and it is working elsewhere in my app.
I have the following API's enabled for my API key:
Directions API
Geocoding API
Maps JavaScript API
Maps Static API
Places API
My PDF template based on account has the following to test this:
PDF Output:
Logs do not contain anything helpful (API key changed for security):
Any help would be appreciated.
I am trying to use the pdf helper googleMapsImage to print a map in my pdf. No map is embedded in the PDF.
I have google integration setup and it is working elsewhere in my app.
I have the following API's enabled for my API key:
Directions API
Geocoding API
Maps JavaScript API
Maps Static API
Places API
My PDF template based on account has the following to test this:
PHP Code:
Shipping:<br>
{{googleMapsImage field='shippingAddress'}}
Billing: <br>
{{googleMapsImage field='billingAddress'}}
Fix loc: <br>
{{googleMapsImage city='New York' country='United States'}}
PHP Code:
Shipping:
Billing:
Fix loc:
PHP Code:
[2021-09-10 04:39:26] DEBUG: Template helper _googleMapsImage: URL: https://maps.googleapis.com/maps/api/staticmap?center=453+Kent+St%2C+Sydney%2C+NSW%2C+A ustraliaformat=jpg;&size=400x400&key=AIzaSyBpV_3m7 z6y1x256fBJS2Etr0000000000&libraries=places&langua ge=en_US. [] []
[2021-09-10 04:39:27] DEBUG: Template helper _googleMapsImage: URL: https://maps.googleapis.com/maps/api/staticmap?center=64+Castlereagh+St%2C+Sydney%2C+NS W%2C+Australiaformat=jpg;&size=400x400&key=AIzaSyB pV_3m7z6y1x256fBJS2Etr0000000000&libraries=places& language=en_US. [] []
[2021-09-10 04:39:27] DEBUG: Template helper _googleMapsImage: URL: https://maps.googleapis.com/maps/api/staticmap?center=New+York%2C+United+Statesformat=j pg;&size=400x400&key=AIzaSyBpV_3m7z6y1x256fBJS2Etr 0000000000&libraries=places&language=en_US. [] []
Any help would be appreciated.
Comment