Google Maps
The Google Map field shows a Google map where the visitor picks a place, for example a delivery address or the location of an event. It is part of the component; no plugin is needed.
What you need
A Google API key with the Maps JavaScript API turned on, and the Maps Static API if you use the {Name:map} image in emails. For the address search also turn on the Places API and the Geocoding API. Google asks for a billing account for these APIs.
Set the key
- Create the key in the Google Cloud console under APIs & Services > Credentials. Restrict it to your domain.
- In JoomForms, open Configuration, tab Configuration, and paste it into Google API Key.
- Save.
Add the field
Add Google Map in the form builder and set its options, see Field types. Result Output decides what is stored: the Address or the Coordinates of the marker.
In emails and the directory, {Name:value} gives the address or coordinates and {Name:map} an image of the map.
When the map stays grey
The key is missing, wrong, not allowed for your domain, or the API is not turned on. Open your browser's console on the form page: Google writes the reason there.