I’d like to demonstrate how to generate a static map using the Google Maps API
Feel free to check out a demo here: https://tutorials.tadabase.io/street-view-test/default
To start, add a Text Formula to any table that has an Address field. The text formula will be made up of the following parts
https://maps.googleapis.com/maps/api/staticmap?center=
- Add Field > Address - Address field.
&zoom=13&size=600x300&maptype=roadmap&markers=color:red%7Clabel:%7C
- Add Field > Address - Latitude
,
- Add Field > Address - Longitude
-
&key=YOUR_GOOGLE_API_KEY
(You can create an API key in the Google Developers Console.)
The end result should look like this
To add this into a List Component, you may add the following to HTML inside a List. (Change field_id to the Text Formulas field slug)
<p><img src="{!!field_id!!}" alt="" width="100%" /></p>
To add this to a PDF, add an HTML Component and add the following to the Source Code.
Change “Text Formula” to the name of your Text Formula Field.
<p><img src="{!!Text Formula!!}" alt="" /></p>
<p style="display: none;">{Text Formula}</p>