This Extra Field Type is available in Profile Builder 2.0, Hobbyist or Pro.
You can use this extra field type to allow users to pin their location.
You can specify the field title, meta-name to be stored in the database, description, Google Maps Api Key, default latitude, default longitude, default zoom level and map height.
Also, you can set whether this field should be required or not.
This is how it looks like in the front-end.
How to create your Google Maps API Key
We will select to Create a new project and click on Continue.
Now the API is enabled for our project. We have to create credentials so we will click on “Go to credentials”.
We can give our API Key a Name like Google Map API Key. Also, we can add multiple HTTP referrers so that we can limit map loading only for these URLs. If you wish to allow an entire domain to load the Google Maps you can add an asterix at the end of the URL.
If we don’t add a HTTP referrer, requests will be accepted from any referrer (domain). To continue we have to click on “Create API key”
Our API Key is now Created. Copy and Paste it in Profile Builder -> Manage Fields -> Map Field -> Google Maps API Key. To finish the process and go to API Manager click on “Done”.