How to put google map field in my form of my custom module? i like to build a form field based on google map, where user can put in their address, city and country, then the map will automatically search for it.
and then you can put a pin to define the exact location, which the expected output is latitude &amp; longitude which will be saved during form submit.

how to approach this? is there any module in Drupal 8 that i can use during form generation?

maybe something like:

 $form['map'] = array(
      '#type' =&gt; 'gmap',
      '#otherProperty' =&gt; propertyValues,
 );


Thank you,
AnD
use this 
it works for me
https://www.drupal.org/project/google_map_field
.
.
.
.
.
.