The "Google map" element allows you to get the coordinates of a point (latitude and longitude) on the map. This element is located in the "Extra fields". After adding this form element, you must enter the value "Google Maps API Key" in its main settings.
The Google Maps API key can be used the same for both the "Address" element and the "Google Map" element.
In the map settings, you can change the following parameters:
- map type (default, satellite, hybrid and terrain)
- width and height of the map in the form
- map zoom level
- specify the latitude and longitude of the starting point on the map
In addition, it is possible to link the card to the address by selecting the appropriate field from the form.
Thanks to this setting, the address and coordinates on the map will be interconnected. When you change the address, the point on the map will change and when you move the point on the map, the address in the form will automatically change.
In order for the user to be able to move a point on the map, it is necessary to enable the option "Allow to move the marker on the map".
It is also possible to automatically determine the user's geolocation on the map. To do this, enable the option "Automatic detection of user geolocation".
This is how the map will look in the form: